• Sam Lantinga's avatar
    Fixed bug #1085 (Jump to NULL function pointer on ALSA_OpenDevice) · e6accab8
    Sam Lantinga authored
     Bruno      2010-12-16 02:41:51 PST
    
    Fix segfault in ALSA_OpenDevice()
    
    When alsa is linked to libsdl instead of being loaded on demand at runtime the
    alsa macro snd_pcm_hw_params_alloca(ptr); misbehaves.
    
    That macro calls snd_pcm_hw_params_sizeof() in order to determine the amount of
    memory to allocate but due to mis-placed define that function is replaced with
    ALSA_snd_pcm_hw_params_sizeof by preprocessor (and in case of link to alsa that
    function pointer is initialized to itself).
    
    Attached patch fixes the issue.
    e6accab8
Name
Last commit
Last update
..
atomic Loading commit data...
audio Loading commit data...
core Loading commit data...
cpuinfo Loading commit data...
events Loading commit data...
file Loading commit data...
haptic Loading commit data...
joystick Loading commit data...
libm Loading commit data...
loadso Loading commit data...
main Loading commit data...
power Loading commit data...
render Loading commit data...
stdlib Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
SDL.c Loading commit data...
SDL_assert.c Loading commit data...
SDL_assert_c.h Loading commit data...
SDL_compat.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...
SDL_hints.c Loading commit data...
SDL_log.c Loading commit data...