xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 19 03:54:22 UTC 2024
hw/xfree86/common/xf86Mode.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit db3aa4e03b180244e8b4b02272c49f1e0c48b463
Author: Yusuf Khan <yusisamerican at gmail.com>
Date: Sat Feb 17 12:38:10 2024 -0800
hw/xfree86: fix NULL pointer refrence to mode name
Potentially, the pointer to the mode name could be unset, this can
occur with the xf86-video-nv DDX, in that case there isnt much we can do
except check if the next mode is any better.
Signed-off-by: Yusuf Khan <yusisamerican at gmail.com>
diff --git a/hw/xfree86/common/xf86Mode.c b/hw/xfree86/common/xf86Mode.c
index 136cd15d0..a28973ead 100644
--- a/hw/xfree86/common/xf86Mode.c
+++ b/hw/xfree86/common/xf86Mode.c
@@ -509,6 +509,8 @@ xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep,
/* scan through the modes in the sort order above */
if ((p->type & type) != type)
continue;
+ if (p->name == NULL)
+ continue;
if (strcmp(p->name, modep->name) == 0) {
More information about the xorg-commit
mailing list