Re: kernel/heap: Avoid heap corruption on invalid Parameter in GlobalFree(), with Test
19 Mar
2006
19 Mar
'06
2:28 p.m.
"Detlef Riekenberg" <wine.dev(a)web.de> wrote:
--- a/dlls/kernel/tests/heap.c +++ b/dlls/kernel/tests/heap.c @@ -25,6 +25,8 @@ #include "winbase.h" #include "wine/test.h"
+#define MAGIC_DEAD 0x00dead00
+ SetLastError(MAGIC_DEAD); + hsecond = GlobalFree(gbl); /* invalid handle: free memory twice */
There is no need to invent a new magic number, a usual convenience for Wine tests is to use 0xdeadbeef. -- Dmitry.
7213
Age (days ago)
7213
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov