Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1102/3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.