93a3d8bf
by Yuxuan Shui at 2025-10-15T11:42:30+02:00
iphlpapi: Give GetBestRoute2 a SOCKETADDR_INET.
In this call chain: GetBestInterface -> GetBestInterfaceEx -> GetBestRoute2, we cast a socketaddr_in
* (16 bytes) is to SOCKETADDR_INET * (28 bytes) before passing it to GetBestRoute2, but
GetBestRoute2 will access all of the 28 bytes, leading to out-of-bound access. So we create a local
SOCKETADDR_INET in GetBestInterfaceEx.
Found by ASan.