Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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


The following reply was made to PR user/3104; it has been noted by GNATS.

From: Jan Johansson <janj+openbsd@wenf.org> To: bugs@openbsd.org
Cc:
Subject: user/3104: Propolice katch kauth. (Patches and testcase). Date: Fri, 28 Feb 2003 00:24:03 +0100

 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.  

  • kerberosV/src/lib/roken/resolve.c.orig Fri Feb 28 00:17:59 2003 +++ kerberosV/src/lib/roken/resolve.c Thu Feb 27 23:18:54 2003 @@ -453,7 +453,7 @@ headp = &(*tt)->next; sum -= (*tt)->u.srv->weight; *tt = NULL;
    • while(*ss == NULL) + while(ss < ee && *ss == NULL) ss++; } }

 This fixes the test case on i386, and reveals another bug on  sparc64.  

 Testcase:  

 #include <stdlib.h>  

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

Do you need help?X

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

     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


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