Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: user/3104: Propolice katch kauth. (Patches and testcase).

From: mho <mho(at)mho.nu>
Date: Fri Feb 28 2003 - 14:56:15 EST


In message <200302281646.h1SGkGoX024677@xerxes.courtesan.com>, "Todd C. Miller"  writes:
>In message <200302281612.h1SGCf59017580@cvs.openbsd.org>

Ooops, when Love fixed the program from GnuC to "C" just before sending, the test apparently broke. (Seems like GCC extensions do not generate the same code as the equivalent C).

Let GCC create the array instead of calling malloc(), and it works/breaks as expected.

Most values below 256 will trigger some kind of crash. For a propolice hit, try 100.

  • mho

 #include <stdlib.h>  

 /* Fixed in NetBSD */
 /* /usr/src/lib/libc/stdlib/random.c:1.20 */  

 int
 main(int argc, char **argv)
 {

     int len = atoi(argv[1]);
     char foo[len];
     char *oldfoo;
 
     oldfoo = initstate(time(NULL), foo, len);
 
     return 0;

 } Received on Fri Feb 28 14:54:44 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:51 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library