libXaw-1.0.16-1.fc41

List of Defects

Error: CPPCHECK_WARNING (CWE-457): [#def1]
libXaw-1.0.16-build/libXaw-1.0.16/src/Actions.c:610: error[uninitvar]: Uninitialized variable: c_1
#  608|       case 1:
#  609|         XtSetArg(arg, XrmQuarkToString(resource->qname),
#  610|-> 	       from.addr = (XPointer)&c_1);
#  611|         break;
#  612|       case 2:

Error: CPPCHECK_WARNING (CWE-457): [#def2]
libXaw-1.0.16-build/libXaw-1.0.16/src/Actions.c:614: error[uninitvar]: Uninitialized variable: c_2
#  612|       case 2:
#  613|         XtSetArg(arg, XrmQuarkToString(resource->qname),
#  614|->                from.addr = (XPointer)&c_2);
#  615|         break;
#  616|       case 4:

Error: CPPCHECK_WARNING (CWE-457): [#def3]
libXaw-1.0.16-build/libXaw-1.0.16/src/Actions.c:618: error[uninitvar]: Uninitialized variable: c_4
#  616|       case 4:
#  617|         XtSetArg(arg, XrmQuarkToString(resource->qname),
#  618|->                from.addr = (XPointer)&c_4);
#  619|         break;
#  620|   #ifdef LONG64

Error: CPPCHECK_WARNING: [#def4]
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c: scope_hint: In function 'InitStringOrFile'
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c:1488:18: warning[-Wanalyzer-null-argument]: use of NULL '*((struct _WidgetRec *)src).core.popup_list' where non-null expected
/usr/include/X11/IntrinsicP.h:51: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c:39: included_from: Included from here.
/usr/include/X11/Xos.h:88: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c:41: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of 'open' must be non-null
# 1486|   
# 1487|       if (!src->ascii_src.is_tempfile) {
# 1488|-> 	int fd = open(src->ascii_src.string, (int)open_mode, 0666);
# 1489|   
# 1490|   	if (fd != -1) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c: scope_hint: In function 'LoadPieces'
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c:1527:17: warning[-Wanalyzer-null-argument]: use of NULL 'file' where non-null expected
libXaw-1.0.16-build/libXaw-1.0.16/src/AsciiSrc.c:35: included_from: Included from here.
/usr/include/stdio.h:769:12: note: argument 1 of 'fseek' must be non-null
# 1525|   	    if (src->ascii_src.length != 0) {
# 1526|   		left = 0;
# 1527|-> 		fseek(file, 0, SEEK_SET);
# 1528|   		while (left < src->ascii_src.length) {
# 1529|   		    int len;

Error: CPPCHECK_WARNING: [#def8]
libXaw-1.0.16-build/libXaw-1.0.16/src/Box.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libXaw-1.0.16-build/libXaw-1.0.16/src/Command.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libXaw-1.0.16-build/libXaw-1.0.16/src/Dialog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c: scope_hint: In function '_Xaw_Xlib_ArgsInitProc'
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c:1912:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c:33: included_from: Included from here.
/usr/include/X11/IntrinsicP.h:51: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c:37: included_from: Included from here.
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 1910|   	  read_position((char *)params[1], &string->pos[1]);
# 1911|   	  string->string = XtNewString(params[2]);
# 1912|-> 	  string->length = (int)strlen(string->string);
# 1913|   	  retval = string;
# 1914|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c: scope_hint: In function '_XawFindDLClass'
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c:2255:23: warning[-Wanalyzer-null-argument]: use of NULL 'name' where non-null expected
libXaw-1.0.16-build/libXaw-1.0.16/src/DisplayList.c:36: included_from: Included from here.
/usr/include/stdlib.h:960:14: note: argument 1 of 'bsearch' must be non-null
# 2253|       return (NULL);
# 2254|   
# 2255|->   lc = (XawDLClass **)bsearch(name, &classes[0], num_classes,
# 2256|   			      sizeof(XawDLClass*), bcmp_dlist_class);
# 2257|   

Error: CPPCHECK_WARNING: [#def14]
libXaw-1.0.16-build/libXaw-1.0.16/src/Form.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libXaw-1.0.16-build/libXaw-1.0.16/src/Label.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libXaw-1.0.16-build/libXaw-1.0.16/src/List.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c: scope_hint: In function 'InitStringOrFile'
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c:1258:19: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/X11/IntrinsicP.h:51: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c:62: included_from: Included from here.
/usr/include/X11/Xos.h:88: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c:65: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of 'open' must be non-null
# 1256|   
# 1257|       if (!src->multi_src.is_tempfile) {
# 1258|-> 	if ((fd = open((char *)src->multi_src.string, (int)open_mode, 0666)) != -1) {
# 1259|   	    if ((file = fdopen(fd, fdopen_mode)) != NULL) {
# 1260|   		(void)fseek(file, 0, SEEK_END);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c: scope_hint: In function 'LoadPieces'
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c:1387:15: warning[-Wanalyzer-null-argument]: use of NULL 'ptr' where non-null expected
libXaw-1.0.16-build/libXaw-1.0.16/src/XawI18n.h:38: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/MultiSrc.c:71: included_from: Included from here.
/usr/include/wchar.h:103:17: note: argument 2 of 'wcsncpy' must be non-null
# 1385|   	piece->used = Min(left, src->multi_src.piece_size);
# 1386|   	if (piece->used != 0)
# 1387|-> 	(void)wcsncpy(piece->text, ptr, (size_t)piece->used);
# 1388|   
# 1389|   	left -= piece->used;

Error: CPPCHECK_WARNING: [#def21]
libXaw-1.0.16-build/libXaw-1.0.16/src/Paned.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libXaw-1.0.16-build/libXaw-1.0.16/src/Panner.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libXaw-1.0.16-build/libXaw-1.0.16/src/Pixmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libXaw-1.0.16-build/libXaw-1.0.16/src/Porthole.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libXaw-1.0.16-build/libXaw-1.0.16/src/Scrollbar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libXaw-1.0.16-build/libXaw-1.0.16/src/SimpleMenu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libXaw-1.0.16-build/libXaw-1.0.16/src/SmeBSB.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libXaw-1.0.16-build/libXaw-1.0.16/src/StripChart.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libXaw-1.0.16-build/libXaw-1.0.16/src/Text.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextAction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def31]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextAction.c: scope_hint: In function 'CaseProc'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextAction.c:4274:13: warning[-Wunused-result]: ignoring return value of 'wctomb' declared with attribute 'warn_unused_result'
# 4274 |             wctomb((char*)mb, ((wchar_t*)block.ptr)[i]);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4272|       else
# 4273|   	for (i = 0; i < block.length; i++) {
# 4274|-> 	    wctomb((char*)mb, ((wchar_t*)block.ptr)[i]);
# 4275|   	    if (!IsAlnum(*mb))
# 4276|   		count = 0;

Error: CPPCHECK_WARNING: [#def32]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextPop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextPop.c: scope_hint: In function 'InsertFileNamed'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextPop.c:328:70: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(str, "re")'
#  326|   
#  327|       fseek(file, 0L, SEEK_SET);
#  328|->     if (fread(text.ptr, 1, (size_t)text.length, file) != (size_t)text.length)
#  329|   	XtErrorMsg("readError", "insertFileNamed", "XawError",
#  330|   		   "fread returned error", NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextPop.c:328:70: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(str, "re")'
#  326|   
#  327|       fseek(file, 0L, SEEK_SET);
#  328|->     if (fread(text.ptr, 1, (size_t)text.length, file) != (size_t)text.length)
#  329|   	XtErrorMsg("readError", "insertFileNamed", "XawError",
#  330|   		   "fread returned error", NULL, NULL);

Error: CPPCHECK_WARNING: [#def35]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c: scope_hint: In function 'SetXlfdDefaults'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1030:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1028|   	    property->xlfd = XrmStringToQuark(xlfd);
# 1029|   
# 1030|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1031|   	    property->foundry = XrmStringToQuark(name);
# 1032|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1034:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1032|   	    name = sep;
# 1033|   
# 1034|-> 	    sep = strchr(sep, '-');	*sep++ = '\0';
# 1035|   	    property->family = XrmStringToQuark(name);
# 1036|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1038:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1036|   	    name = sep;
# 1037|   
# 1038|-> 	    sep = strchr(sep, '-');	*sep++ = '\0';
# 1039|   	    property->weight = XrmStringToQuark(name);
# 1040|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1042:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1040|   	    name = sep;
# 1041|   
# 1042|-> 	    sep = strchr(sep, '-');	*sep++ = '\0';
# 1043|   	    property->slant = XrmStringToQuark(name);
# 1044|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1046:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1044|   	    name = sep;
# 1045|   
# 1046|-> 	    sep = strchr(sep, '-');	*sep++ = '\0';
# 1047|   	    property->setwidth = XrmStringToQuark(name);
# 1048|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1050:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1048|   	    name = sep;
# 1049|   
# 1050|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1051|   	    property->addstyle = XrmStringToQuark(name);
# 1052|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1054:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1052|   	    name = sep;
# 1053|   
# 1054|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1055|   	    property->pixel_size = XrmStringToQuark(name);
# 1056|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1058:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1056|   	    name = sep;
# 1057|   
# 1058|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1059|   	    property->point_size = XrmStringToQuark(name);
# 1060|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1062:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1060|   	    name = sep;
# 1061|   
# 1062|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1063|   	    property->res_x = XrmStringToQuark(name);
# 1064|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1066:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1064|   	    name = sep;
# 1065|   
# 1066|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1067|   	    property->res_y = XrmStringToQuark(name);
# 1068|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1070:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1068|   	    name = sep;
# 1069|   
# 1070|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1071|   	    property->spacing = XrmStringToQuark(name);
# 1072|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1074:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1072|   	    name = sep;
# 1073|   
# 1074|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1075|   	    property->avgwidth = XrmStringToQuark(name);
# 1076|   	    name = sep;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSink.c:1078:48: warning[-Wanalyzer-null-dereference]: dereference of NULL 'sep'
# 1076|   	    name = sep;
# 1077|   
# 1078|-> 	    sep = strchr(sep, '-');     *sep++ = '\0';
# 1079|   	    property->registry = XrmStringToQuark(name);
# 1080|   	    name = sep;

Error: CPPCHECK_WARNING: [#def49]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c: scope_hint: In function 'XawTextSrcSetValues'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c:384:36: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  382|       if (oldtw->textSrc.changed != newtw->textSrc.changed) {
#  383|   	if (newtw->textSrc.enable_undo) {
#  384|-> 	    if (newtw->textSrc.undo->list) {
#  385|   		newtw->textSrc.undo->l_no_change =
#  386|   		    newtw->textSrc.undo->list->left;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c: scope_hint: In function 'XawTextSourceAnchorAndEntity'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c:1717:15: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1715|       Bool next_anchor = True, retval = False;
# 1716|   
# 1717|->     if (anchor->cache && anchor->position + anchor->cache->offset +
# 1718|   	anchor->cache->length <= position)
# 1719|   	pentity = entity = anchor->cache;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c: scope_hint: In function '_XawTextSourceFindAnchor'
libXaw-1.0.16-build/libXaw-1.0.16/src/TextSrc.c:2014:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 2012|       position -= position % ANCHORS_DIST;
# 2013|   
# 2014|->     if (position - anchor->position >= ANCHORS_DIST)
# 2015|   	return (XawTextSourceAddAnchor(w, position));
# 2016|   

Error: CPPCHECK_WARNING: [#def53]
libXaw-1.0.16-build/libXaw-1.0.16/src/Tip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
libXaw-1.0.16-build/libXaw-1.0.16/src/Tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
libXaw-1.0.16-build/libXaw-1.0.16/src/Viewport.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c: scope_hint: In function 'SizeNegotiation'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:729:44: warning[-Wanalyzer-null-dereference]: dereference of NULL 'st_area_needed'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:57: included_from: Included from here.
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c: scope_hint: In function 'SizeNegotiation'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:895:5: note: in expansion of macro 'END_IC'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:716:5: note: in expansion of macro 'END_IC'
#  727|   	ic_cnt = 0;
#  728|   	if (p->input_style & XIMStatusArea) {
#  729|-> 	    st_area.height = st_area_needed->height;
#  730|   	    st_area.x = 0;
#  731|   	    st_area.y = (short)(height - st_area.height);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:751:44: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pe_area_needed'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c: scope_hint: In function 'SizeNegotiation'
libXaw-1.0.16-build/libXaw-1.0.16/src/XawIm.c:895:5: note: in expansion of macro 'END_IC'
#  749|   		pe_area.width = (unsigned short)width;
#  750|   	    }
#  751|-> 	    pe_area.height = pe_area_needed->height;
#  752|   	    XFree(pe_area_needed);
#  753|   	    pe_area.y = (short)(height - pe_area.height);

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-216.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibXaw-1.0.16-1.fc41
store-results-to/tmp/tmpcxbi1s1t/libXaw-1.0.16-1.fc41.tar.xz
time-created2024-07-03 14:31:01
time-finished2024-07-03 14:32:43
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcxbi1s1t/libXaw-1.0.16-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcxbi1s1t/libXaw-1.0.16-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9