ntdll: Protect RtlAllocateHeap and RtlReAllocateHeap against
integer overflows with large values of size.
Robert Shearman
rob at codeweavers.com
Fri May 18 07:24:55 CDT 2007
Chris Robinson wrote:
> On Friday 18 May 2007 05:12:30 am you wrote:
>
>> An example that would break using your logic:
>> 2 + (-1)
>>
>
> SIZE_T (if it follows standard size_t) is unsigned, though. Adding a negative
> wouldn't be possible.
Yes, you're right. The second parameter should probably be SSIZE_T.
--
Rob Shearman
More information about the wine-devel
mailing list