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: Thu Feb 27 2003 - 18:24:03 EST


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 */

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

    int len = atoi(argv[1]);
    char *foo = malloc(len);
    char *oldfoo;

Do you need help?X

    oldfoo = initstate(time(NULL), foo, len);

    return 0;
}

Credits go to lha@stacken.kth.se, mho@mho.nu and art@. Received on Thu Feb 27 19:33:41 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