Zero returned memory.
[rsc] --rw-rw-r-- M 197601 glenda sys 5674 Nov 2 15:49 sys/src/9/port/alloc.c
/n/sourcesdump/2005/1102/plan9/sys/src/9/port/alloc.c:227,232 -
/n/sourcesdump/2005/1103/plan9/sys/src/9/port/alloc.c:227,234
setmalloctag(v, getcallerpc(&size));
setrealloctag(v, 0);
}
+ if(v)
+ memset(v, 0, size);
return v;
}
[rsc] --rw-rw-r-- M 197601 glenda sys 6067 Nov 2 20:42 sys/src/9/boot/boot.c
/n/sourcesdump/2005/1102/plan9/sys/src/9/boot/boot.c:69,74 -
/n/sourcesdump/2005/1103/plan9/sys/src/9/boot/boot.c:69,76
/*
* pick a method and initialize it
*/
+ if(method[0].name == nil)
+ fatal("no boot methods");
mp = rootserver(argc ? *argv : 0);
(*mp->config)(mp);
islocal = strcmp(mp->name, "local") == 0;
[rsc] --rw-rw-r-- M 197601 glenda sys 6067 Nov 2 20:42 sys/src/9/boot/boot.c
|