|
|||||||||||
|
user/3104: Propolice katch kauth. (Patches and testcase).
From: Jan Johansson <janj+openbsd(at)wenf.org>
Date: Fri Feb 28 2003 - 11:12:42 EST
From: Jan Johansson <janj+openbsd@wenf.org>
To: bugs@openbsd.org
On i386 it works because the heap is dirty, on sparc64 it dosen't work because the heap is clean and loop goes on forever. Patch to fix this.
This fixes the test case on i386, and reveals another bug on sparc64. Testcase: #include <stdlib.h>
/* Fixed in NetBSD */
int
int len = atoi(argv[1]);
char *foo = malloc(len);
char *oldfoo;
oldfoo = initstate(time(NULL), foo, len);
return 0;
} Credits go to lha@stacken.kth.se, mho@mho.nu and art@. Received on Fri Feb 28 11:10:55 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:51 EDT |
||||||||||
|
|||||||||||