libXaw: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun May 15 14:32:50 UTC 2022
src/Pixmap.c | 1 +
src/TextSink.c | 3 +++
2 files changed, 4 insertions(+)
New commits:
commit 49cec54165b46116c73e7db78c46b624948b01c8
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat May 7 10:20:30 2022 -0700
Stop memory leak in error paths in XawTextSinkConvertPropertyList()
Fixes issues reported by Oracle Parfait static analyzer:
Error: Memory leak
Memory leak [memory-leak] (CWE 401):
Memory leak of pointer pointer allocated with XtCalloc(1, 144)
at line 1586 of lib/libXaw/src/TextSink.c in function 'XawTextSinkConvertPropertyList'.
pointer allocated at line 1570 with XtCalloc(1, 144)
pointer leaks when XawFindArgVal(params, "font") != NULL at line 1573
and argval->value != NULL at line 1574
and XLoadQueryFont(screen->display, argval->value) == NULL at line 1577.
Memory leak [memory-leak] (CWE 401):
Memory leak of pointer pointer allocated with XtCalloc(1, 144)
at line 1605 of lib/libXaw/src/TextSink.c in function 'XawTextSinkConvertPropertyList'.
pointer allocated at line 1570 with XtCalloc(1, 144)
pointer leaks when argval->value == NULL at line 1574
and XawFindArgVal(params, "foreground") != NULL at line 1593
and argval->value != NULL at line 1594
and XAllocNamedColor(...) == 0 at line 1595.
Memory leak [memory-leak] (CWE 401):
Memory leak of pointer pointer allocated with XtCalloc(1, 144)
at line 1622 of lib/libXaw/src/TextSink.c in function 'XawTextSinkConvertPropertyList'.
pointer allocated at line 1570 with XtCalloc(1, 144)
pointer leaks when argval->value == NULL at line 1574
and XawFindArgVal(params, "background") != NULL at line 1610
and argval->value != NULL at line 1611
and XAllocNamedColor(...) == 0 at line 1612.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit 11384211b9407eeab475e54e4806e47825fb1790
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sat May 7 10:11:18 2022 -0700
Stop memory leak in GetResourcePixmapPath()
Fixes issue reported by Oracle Parfait static analyzer:
Error: Memory leak
Memory leak [memory-leak] (CWE 401):
Memory leak of pointer pointer allocated with XtMalloc((strlen(value.addr) + 1))
at line 700 of lib/libXaw/src/Pixmap.c in function 'GetResourcePixmapPath'.
pointer allocated at line 679 with XtMalloc((strlen(value.addr) + 1))
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list