DragonFly commits List (threaded) for 2007-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/bin/sh machdep.h memalloc.c memalloc.h nodes.c.pat
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]