Stefan Dirsch
b16c7a93ba
U_0002-XauFileName-always-go-through-buf-allocation-if-buf-.patch * fixes regression in libXau 1.0.8, which resulted in a crash in Mozilla (bnc#831620,fdo#69929) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXau?expand=0&rev=10
33 lines
824 B
Diff
33 lines
824 B
Diff
From 67beb3d0bc41c3416902c858f595b35306f76704 Mon Sep 17 00:00:00 2001
|
|
From: Fuminobu TAKEYAMA <ftake@geeko.jp>
|
|
Date: Sun, 29 Sep 2013 09:21:05 -0700
|
|
Subject: [PATCH 1/2] XauFileName: reset bsize when malloc failed
|
|
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=69929
|
|
|
|
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
---
|
|
AuFileName.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/AuFileName.c b/AuFileName.c
|
|
index 0904273..63d4956 100644
|
|
--- a/AuFileName.c
|
|
+++ b/AuFileName.c
|
|
@@ -70,8 +70,10 @@ XauFileName (void)
|
|
if (buf)
|
|
free (buf);
|
|
buf = malloc (size);
|
|
- if (!buf)
|
|
+ if (!buf) {
|
|
+ bsize = 0;
|
|
return NULL;
|
|
+ }
|
|
|
|
if (!atexit_registered) {
|
|
atexit(free_filename_buffer);
|
|
--
|
|
1.8.1.4
|
|
|