| Summary: | SDL_GetAudioDeviceName returns default-device name on invalid index for default-device only drivers | ||
|---|---|---|---|
| Product: | SDL | Reporter: | norfanin |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Adds a range check for a positive out-of-range index to DL_GetAudioDeviceName. | ||
|
Description
norfanin
2013-11-03 02:40:32 UTC
Created attachment 1401 [details]
Adds a range check for a positive out-of-range index to DL_GetAudioDeviceName.
I don't know if this is okay with other drivers, but I'll just throw this patch in here that adds a range check.
Fixed, thanks! https://hg.libsdl.org/SDL/rev/915b9b6c9fa0 |