[PATCH]libXt-1.0.8/src/Resources.c avoid possible NULL reference
walter harms
wharms at bfs.de
Fri Oct 22 10:33:27 PDT 2010
value.addr could become NULL, add check
re,
wh
Signed-off-by: wharms at bfs.de
--- libXt-1.0.8/src/Resources.c.org 2010-09-22 22:37:23.000000000 +0200
+++ libXt-1.0.8/src/Resources.c 2010-10-20 21:37:01.000000000 +0200
@@ -971,8 +971,11 @@
if (cache_ptr && *cache_ptr)
cache_ptr++;
} else {
+ // value.addr can be NULL see: !already_copied
+ if (value.addr)
*((XtTranslations *)&widget->core.tm.current_state) =
*((XtTranslations *)value.addr);
+
}
}
}
More information about the xorg-devel
mailing list