| Summary: | Missing error checking in testaudioinfo and testaudiohotplug | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Simon Hug <chli.hug> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch that adds some error checking and fixes an access violation issue. | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/636499ff46f8 |
Created attachment 2448 [details] Patch that adds some error checking and fixes an access violation issue. The two tests test/testaudioinfo.c and test/testaudiohotplug.c are missing error checking when they call SDL_GetAudioDeviceName. This function can return NULL which the tests pass straight to SDL_Log. The attached patch adds some error checking and also fixes an access violation issue in testaudiohotplug.