Menu

#78 Wrong length in UDP protocol

v1.0 (example)
open
None
5
2015-03-27
2015-03-27
Taro Labs
No

SS5Mod_proxy.c

Line 350:
len=(unsigned char)pd->UdpRecv[4] + 5;
if( len > sizeof(pd->UdpRecv) )
len=sizeof(pd->UdpRecv);

bug the pd->UdpRecv is a pointer
sizeof( pd->UdpRecv ) = 4 bytes in 32 bit program and sizeof( pd->UdpRecv ) is 8 bytes in 64 bit program.

so the len always equal 4 or 8 bytes.

Discussion


Log in to post a comment.

Monday.com Logo