libXv: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 26 22:33:58 UTC 2024
src/Xv.c | 34 ++++++++++++----------------------
1 file changed, 12 insertions(+), 22 deletions(-)
New commits:
commit fba7bf352678db2938f5a7b173d2a8823595ef3b
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 21 11:27:44 2024 -0700
XvQueryAdaptors: avoid NULL deref if length is 0, but num_adaptors is not
Found by gcc 14.1:
Xv.c: In function ‘XvQueryAdaptors’:
Xv.c:222:31: warning: dereference of NULL ‘<unknown>’ [CWE-476]
[-Wanalyzer-null-dereference]
222 | pa->type = (char) u.pa->type;
| ~~~~^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxv/-/merge_requests/7>
commit 506cebe7bffb19f9310565b82231a08cc8e77ece
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 21 11:22:29 2024 -0700
XvQueryEncodings: avoid NULL deref if length is 0, but num_encodings is not
Found by gcc 14.1:
Xv.c: In function ‘XvQueryEncodings’:
Xv.c:387:31: warning: dereference of NULL ‘<unknown>’ [CWE-476]
[-Wanalyzer-null-dereference]
387 | pe->encoding_id = u.pe->encoding;
| ~~~~^~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxv/-/merge_requests/7>
commit dd8c77a0c0d62ab88cf96ac507562469a7bcbc5a
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Jul 21 11:10:44 2024 -0700
Use calloc instead of malloc and manual loops to zero array contents
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxv/-/merge_requests/7>
More information about the xorg-commit
mailing list