ntdll: Protect RtlAllocateHeap and RtlReAllocateHeap against integer overflows with large values of size.

Chris Robinson chris.kcat at gmail.com
Fri May 18 07:16:12 CDT 2007

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.

More information about the wine-devel mailing list