[SDL] [ann] zziplib sdl_rwops example
guidod-2001q3 at gmx.de
Sat Aug 18 12:11:01 PDT 2001
"Ryan C. Gordon" <icculus at clutteredmind.org> wrote
> Okay, this isn't really a fix so much as a cleanup, but seeing
> comments like "/* Caution: potential buffer overflow! */" drives
> me nuts, so I fixed it.
> Attached is a patch to clean up such a warning in the Linux SDL
> CD-ROM code.
heh, now the comment has been changed to
/* maybe you'll get lucky next time. */
instead of a potential buffer overflow there's now a
potential infinite loop. to the effect of "while(!malloc(x))"
actually, i don't know if that's really a problem. in my
experience, the OS always kills an app when it runs out of
memory. (but that may not always be the case?)
More information about the SDL