pjsip / pjproject

PJSIP project
http://www.pjsip.org
GNU General Public License v2.0
2.07k stars 786 forks source link

iocp: fix interger overflow (pointer conversion error) #4134

Closed jimying closed 2 weeks ago

jimying commented 2 weeks ago

on windows x64: sizeof(DWORD) = 4 sizeof(long) = 4 sizeof(UPTR_LONG) = 8 sizeof(void*) = 8

convert pointer value to DWORD may lead to interger overflow error.

PS: iocp is not stable now, this is a simple bug i can fix.