Ubuntu Pastebin

Paste from zyga at Tue, 3 May 2016 23:34:44 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
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__)
Download as text