Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Empty bootargs ....
> Excerpts from netbsd: 19-Dec-96 Re: Empty bootargs ....
> ws%kurt.tools.de@localhost (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
Home |
Main Index |
Thread Index |
Old Index