Description: never return NULL from get_progname This patch fixes a crash that occurs if SDL is used inside a snappy package. The NULL return value of get_progname, which on snappy cannot inspect a particular /proc location, is subsequently strdup'ed which results in a crash. Origin: vendor Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: 2015-05-04 --- libsdl1.2-1.2.15+dfsg1.orig/src/audio/pulse/SDL_pulseaudio.c +++ libsdl1.2-1.2.15+dfsg1/src/audio/pulse/SDL_pulseaudio.c @@ -371,6 +371,8 @@ static char *get_progname(void) } } fclose(fp); + } else { + return "unknown"; } return(progname); #elif defined(__NetBSD__)