Re: Bugs in dlls/wsock32/socket.c

2007-11-08 Thread Gerald Pfeifer
On Sun, 4 Nov 2007, Juan Lang wrote: > Heh - no, that's not the intended purpose ;) I'll send a patch. Cool, thanks a bunch! :-) Gerald

Re: Bugs in dlls/wsock32/socket.c

2007-11-04 Thread Juan Lang
Hi Gerald, On Nov 3, 2007 9:58 AM, Gerald Pfeifer <[EMAIL PROTECTED]> wrote: > dlls/wsock32/socket.c has the following code: > >DWORD routeTableSize, numRoutes, ndx, ret; > >numRoutes = min(routeTableSize - sizeof(MIB_IPFORWARDTABLE), >0) / sizeof(MIB_IPFORWARDROW) + 1;

Bugs in dlls/wsock32/socket.c

2007-11-03 Thread Gerald Pfeifer
dlls/wsock32/socket.c has the following code: DWORD routeTableSize, numRoutes, ndx, ret; numRoutes = min(routeTableSize - sizeof(MIB_IPFORWARDTABLE), 0) / sizeof(MIB_IPFORWARDROW) + 1; The problem here is that both routeTableSize and sizeof(...) are of an unsigned type,