[SDL] Buffer overflow fix.

Ryan C. Gordon icculus at clutteredmind.org
Tue Aug 7 09:06:01 PDT 2001


> No there isn't. If it can't allocate memory, it goes on to the next entry
> in the mount table (which is, according to "man setmntent") stored in a
> preallocated, static buffer. If at that moment, there is miraculously 10
> bytes of memory available to allocate a string like "/dev/cdrom", then
> processing continues, otherwise, you'll iterate through the entire mount
> table without processing anything, and continue on.

Oh my lord, what was I thinking when I sent this? My apologies for my
awful grammar; run that through your ZeroWing filter if any of it doesn't
make sense.

--ryan.







More information about the SDL mailing list