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

Robert Shearman rob at codeweavers.com
Mon May 21 08:29:34 CDT 2007


Add tests for some of these boundary conditions.
---
  dlls/kernel32/tests/heap.c |    9 +++++++++
  dlls/ntdll/heap.c          |   32 +++++++++++++++++++++++++++++---
  2 files changed, 38 insertions(+), 3 deletions(-)

Try 2, changing the second parameter to safe_add to be signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 557ffdd84fddbdcb9cf3ae569bc855fc96250463.diff
Type: text/x-patch
Size: 3824 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070521/0b21f2db/557ffdd84fddbdcb9cf3ae569bc855fc96250463.bin


More information about the wine-patches mailing list