cvs commit: src/bin/sh machdep.h memalloc.c memalloc.h nodes.c.pat

Peter Avalos pavalos at crater.dragonflybsd.org
Sat Jan 13 20:05:38 PST 2007


pavalos     2007/01/13 19:59:57 PST

DragonFly src repository

  Modified files:
    bin/sh               memalloc.c memalloc.h nodes.c.pat 
  Removed files:
    bin/sh               machdep.h 
  Log:
  Protect malloc, realloc and free calls with INT{ON,OFF} directly in chkalloc,
  ckrealloc and ckfree (added), respectively.  sh jumps out of the signal handler
  using longjmp which is obviously a bad idea during malloc calls.
  
  Use the ALIGN macro from <sys/param.h> instead of defining our own
  version in machdep.h. Delete machdep.h.
  
  Obtained-from:  FreeBSD
  
  Revision  Changes    Path
  1.5       +70 -51    src/bin/sh/memalloc.c
  1.4       +2 -3      src/bin/sh/memalloc.h
  1.4       +2 -2      src/bin/sh/nodes.c.pat


http://www.dragonflybsd.org/cvsweb/src/bin/sh/memalloc.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/sh/memalloc.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/sh/nodes.c.pat.diff?r1=1.3&r2=1.4&f=u





More information about the Commits mailing list