We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's a segfault because SDL_GetAudioDeviceName(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK) returns NULL, which is used as an argument to SDL_strdup.
SDL_GetAudioDeviceName(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)
NULL
SDL_strdup
SDL/test/testaudio.c
Line 1016 in a4f962f
Line 971 in a4f962f
Line 988 in a4f962f
stacktrace:
__strlen_avx2 0x00007ffff7b7f8dd SDL_strlen_REAL SDL_string.c:561 SDL_strdup_REAL SDL_string.c:855 SDL_strdup SDL_dynapi_procs.h:1020 CreatePhysicalDeviceThing testaudio.c:988 CreateDefaultPhysicalDevice testaudio.c:1016 SDL_AppInit testaudio.c:1100 SDL_InitMainCallbacks SDL_main_callbacks.c:99 SDL_EnterAppMainCallbacks_REAL SDL_sysmain_callbacks.c:42 SDL_EnterAppMainCallbacks SDL_dynapi_procs.h:171 SDL_main SDL_main_impl.h:59 SDL_RunApp_REAL SDL_runapp.c:40 SDL_RunApp_DEFAULT SDL_dynapi_procs.h:709 SDL_RunApp SDL_dynapi_procs.h:709 main SDL_main_impl.h:208
The text was updated successfully, but these errors were encountered:
5631c6d
Gosh, how long has this been broken?!
Sorry, something went wrong.
Oh, only since e232573, where this used to handle NULL just fine and then I wrapped it in an SDL_strdup.
icculus
No branches or pull requests
There's a segfault because
SDL_GetAudioDeviceName(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)
returnsNULL
,which is used as an argument to
SDL_strdup
.SDL/test/testaudio.c
Line 1016 in a4f962f
SDL/test/testaudio.c
Line 971 in a4f962f
SDL/test/testaudio.c
Line 988 in a4f962f
stacktrace:
The text was updated successfully, but these errors were encountered: