Subject: Re: Empty bootargs ....
To: Andrew Cagney <cagney@tpgi.com.au>
From: Dale Rahn <drahn@pacific.urbana.mcd.mot.com>
List: port-powerpc
Date: 12/20/1996 17:11:55
> Excerpts from netbsd: 19-Dec-96 Re: Empty bootargs .... ws@kurt.tools.de (858*)
> 
> > > 	  for (cp = bootpath + strlen(bootpath) + 1; --cp >= bootpath;) {
> 
> > Hmm, arguably this isn't unsafe, as the boot code guarrantees that the
> > arguments are not empty.
> 
> Worse than that, the change above doesn't fix the problem any way :-(

I found that it was necessary to copy the string passed into a different
buffer in initppc. Otherwise the string being accessed was from the
memory space of the boot program not the kernels memory space.
(Ok,  as I recall it was on the stack and stack not 1-1 on my system ...)

Dale