[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc and mint-libs PL46



What you wrote:
> Actually, in all likelyhood it's *not* the kernel that's crashing in
> this case - it's the library function _unx2dos()!
> (The kernel's Fopen() always runs in supervisor mode, and (char*)0 is
> a completely valid address while in supervisor mode...)
> 
> I'd suggest to simply change _unx2dos() to return a null string
> if NULL is passed as an input parameter - this should fix the problem
> for all higher-level functions that deal with filenames...

This sounds perfectly reasonable to me.

I wonder if there are any other things like this lurking in the libs...

-- 
----------========================================================----------
Chris Herborth, R&D Technical Writer       Arcane  Dragon     chrish@qnx.com
QNX Software Systems, Ltd.                  -==(UDIC)==-         |||  JAGUAR
http://quest.jpl.nasa.gov/Info-ZIP/people/cjh/chris.html        / | \ 64-bit