xrandr: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 16 16:32:28 UTC 2025
.gitignore | 4 -
Makefile.am | 6 -
configure.ac | 4 -
keystone.5c | 26 +++----
xrandr.c | 202 ++++++++++++++++++++++++++++++++---------------------------
5 files changed, 130 insertions(+), 112 deletions(-)
New commits:
commit 5ea32007758bac1db51841c782a921096155cde4
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Aug 9 17:29:39 2025 -0700
Add more checks for malloc()/calloc() failure
Handles 12 warnings from gcc 15.1 -fanalyzer:
In function ‘set_name_string’,
inlined from ‘set_name’ at xrandr.c:672:2:
xrandr.c:624:9: warning: dereference of NULL ‘name’ [CWE-476]
[-Wanalyzer-null-dereference]
In function ‘set_name_xid’,
inlined from ‘set_name’ at xrandr.c:668:2:
xrandr.c:631:9: warning: dereference of NULL ‘name’ [CWE-476]
[-Wanalyzer-null-dereference]
In function ‘set_name_index’,
inlined from ‘set_name’ at xrandr.c:670:2:
xrandr.c:638:9: warning: dereference of NULL ‘name’ [CWE-476]
[-Wanalyzer-null-dereference]
xrandr.c: In function ‘get_monitors.part.0’:
xrandr.c:2644:17: warning: dereference of possibly-NULL ‘monitors’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c: In function ‘main’:
xrandr.c:3011:24: warning: dereference of possibly-NULL ‘prop’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3182:21: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3195:23: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3209:23: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3223:23: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3282:28: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3285:21: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
xrandr.c:3319:21: warning: dereference of possibly-NULL ‘m’ [CWE-690]
[-Wanalyzer-possible-null-dereference]
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xrandr/-/merge_requests/19>
commit 6fc8985ff30a8d54e13b445c0d66ca6b08190476
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat Aug 9 16:50:50 2025 -0700
Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`
`git diff -w` & `git diff -b` show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xrandr/-/merge_requests/19>
More information about the xorg-commit
mailing list