| Summary: | SDL_SetError fails on on NULL on systems with vsnprintf | ||
|---|---|---|---|
| Product: | SDL | Reporter: | sfalexrog |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | sfalexrog |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Android (All) | ||
| Attachments: | A possible solution to the crashing problem | ||
|
Description
sfalexrog
2014-06-20 18:17:39 UTC
Created attachment 1695 [details] A possible solution to the crashing problem I did exactly the same thing as in https://hg.libsdl.org/SDL/rev/5ba49d7a39a0 (In reply to sfalexrog from comment #0) > On systems with vsnprintf call SDL_SetError fails when passed a NULL as an > argument. SDL's implementation checks for NULL (as seen in the commit: > https://hg.libsdl.org/SDL/rev/5ba49d7a39a0), but system implementation may > crash. > > Please add a check if text == NULL at SDL_string.c, line 1279. A correction: I've meant the fmt pointer, not text. Fixed, thanks! https://hg.libsdl.org/SDL/rev/75c7095a5e8e |