SDK unit test 'tests\standalone_2\io\socket_info_ipv6_test.dart' fails on Windows 10 #51778
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
os-windows
Socket.remoteAddress
returns incorrect address. The issue appears on any IPv6 address.This tracker is for issues related to:
dart:io
Dart SDK Version (
dart --version
):Dart SDK version: 2.19.3 (stable) (Tue Feb 28 15:52:19 2023 +0000) on "windows_x64"
Error message:
I've made preliminary code research and found weird function:
https://github.com/dart-lang/sdk/blob/main/runtime/bin/socket_base_win.cc#L181
getpeername()
writes to eaw.addr and whenGetAddrPort()
andSetAddrPort()
read and write other fields of the union. Not sure is this union of different addresses family have well specified memory map to be united.WSAAddressToString()
but it calls nowhere in the SDKRelated issue: #23031
The text was updated successfully, but these errors were encountered: