libxkbfile: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 30 23:34:34 UTC 2024
configure.ac | 4 ++--
src/XKBfileInt.h | 23 +++++++++++++++++++++++
src/cout.c | 2 +-
src/maprules.c | 27 ++++++++++++++-------------
src/xkbconfig.c | 6 +++---
src/xkmread.c | 5 ++---
6 files changed, 45 insertions(+), 22 deletions(-)
New commits:
commit 439f40b7b6be39da244a883c9056f2522a9bcea2
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Aug 26 13:10:14 2024 -0700
Use _XkbReallocF to avoid memory leaks when realloc() fails
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/20>
commit 56a4ce41cfdea20b5856eb19f99d8fbb535955b3
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Aug 26 13:00:13 2024 -0700
Use _XkbTypedReallocF to avoid memory leaks when realloc() fails
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/20>
commit 72a0065465efe211dade98ab5bfc42e3bee976b5
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Aug 26 12:57:36 2024 -0700
Add _XkbReallocF & _XkbTypedReallocF definitions
Uses reallocf() variant of realloc() that frees old pointer on failure
to make avoiding memory leaks easier.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/20>
commit b8229647395b33b851ea1a52af95c9183c170d96
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Aug 26 12:40:48 2024 -0700
XkbRF_AddVarToDescribe: avoid memory leak if only one of the malloc fails
If one malloc failed and the other succeeded, we assumed both failed,
and let the successful one leak.
Found by gcc 14.1:
maprules.c: In function ‘XkbRF_AddVarToDescribe’:
maprules.c:1125:22: warning: leak of ‘<unknown>’ [CWE-401]
[-Wanalyzer-malloc-leak]
1125 | rules->extra = NULL;
| ^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/20>
commit ccdc50c37ce068679746fb9a27fbfb21c96c171e
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Mon Aug 26 12:28:01 2024 -0700
Fix 4 -Wuseless-cast warnings from gcc 14.1
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/20>
More information about the xorg-commit
mailing list