diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-04-18 02:38:23 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-04-18 02:38:23 +0000 |
commit | 1a27beb4a6fe337f8f06152bc0c5fff03ef8a5b5 (patch) | |
tree | 89e3a1820b6fd63725777a25df5bf13fe57275ef /user/xf86-video-nouveau/dont-strcmp-null.patch | |
parent | 3babf26bb558415176c88b84e3f5e11386f31a5e (diff) | |
download | packages-1a27beb4a6fe337f8f06152bc0c5fff03ef8a5b5.tar.gz packages-1a27beb4a6fe337f8f06152bc0c5fff03ef8a5b5.tar.bz2 packages-1a27beb4a6fe337f8f06152bc0c5fff03ef8a5b5.tar.xz packages-1a27beb4a6fe337f8f06152bc0c5fff03ef8a5b5.zip |
user/xf86-video-nouveau: bump to 1.0.16
Diffstat (limited to 'user/xf86-video-nouveau/dont-strcmp-null.patch')
-rw-r--r-- | user/xf86-video-nouveau/dont-strcmp-null.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/user/xf86-video-nouveau/dont-strcmp-null.patch b/user/xf86-video-nouveau/dont-strcmp-null.patch deleted file mode 100644 index 23c4fd216..000000000 --- a/user/xf86-video-nouveau/dont-strcmp-null.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 69aecdd305defdd014bc92b82acc6000988511cf Mon Sep 17 00:00:00 2001 -From: Adam Jackson <ajax@redhat.com> -Date: Tue, 13 Jun 2017 09:23:42 -0400 -Subject: modesetting: Validate the atom for enum properties - -The client could have said anything here, and if what they said doesn't -actually name an atom NameForAtom() will return NULL, and strcmp() will -be unhappy about that. - -[copied from xserver d4995a3936ae283b9080fdaa0905daa669ebacfc] - -Signed-off-by: Adam Jackson <ajax@redhat.com> ---- - src/drmmode_display.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/drmmode_display.c b/src/drmmode_display.c -index 2b71c9c..04a0b57 100644 ---- a/src/drmmode_display.c -+++ b/src/drmmode_display.c -@@ -1081,7 +1081,8 @@ drmmode_output_set_property(xf86OutputPtr output, Atom property, - if (value->type != XA_ATOM || value->format != 32 || value->size != 1) - return FALSE; - memcpy(&atom, value->data, 4); -- name = NameForAtom(atom); -+ if (!(name = NameForAtom(atom))) -+ return FALSE; - - /* search for matching name string, then set its value down */ - for (j = 0; j < p->mode_prop->count_enums; j++) { --- -cgit v1.1 - |