Error: COMPILER_WARNING: [#def1] xkbcomp-1.5.0/action.c: scope_hint: In function ‘HandleActionMessage’ xkbcomp-1.5.0/action.c:1025:17: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 6 equals destination size # 1025 | strncpy((char *) act->message, rtrn.str, 6); # | ^ # 1023| ACTION("Extra %d bytes ignored\n", len - 6); # 1024| } # 1025|-> strncpy((char *) act->message, rtrn.str, 6); # 1026| } # 1027| return True; Error: CPPCHECK_WARNING (CWE-401): [#def2] xkbcomp-1.5.0/action.c:1444: error[memleak]: Memory leak: new # 1442| { # 1443| if (!stringToAction(elem, &new->action)) # 1444|-> return False; # 1445| if (new->action == XkbSA_NoAction) # 1446| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] xkbcomp-1.5.0/action.c:1447:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new’ xkbcomp-1.5.0/action.c:1433:11: acquire_memory: allocated here xkbcomp-1.5.0/action.c:1434:8: branch_false: following ‘false’ branch (when ‘new’ is non-NULL)... xkbcomp-1.5.0/action.c:1439:9: branch_false: ...to here xkbcomp-1.5.0/action.c:1439:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/action.c:1443:14: branch_false: ...to here xkbcomp-1.5.0/action.c:1443:12: branch_false: following ‘false’ branch... xkbcomp-1.5.0/action.c:1445:13: branch_false: ...to here xkbcomp-1.5.0/action.c:1445:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/action.c:1447:13: branch_true: ...to here xkbcomp-1.5.0/action.c:1447:13: throw: if ‘uError’ throws an exception... xkbcomp-1.5.0/action.c:1447:13: danger: ‘new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 1445| if (new->action == XkbSA_NoAction) # 1446| { # 1447|-> ERROR("\"%s\" is not a valid field in a NoAction action\n", # 1448| field); # 1449| return False; Error: CPPCHECK_WARNING (CWE-401): [#def4] xkbcomp-1.5.0/action.c:1449: error[memleak]: Memory leak: new # 1447| ERROR("\"%s\" is not a valid field in a NoAction action\n", # 1448| field); # 1449|-> return False; # 1450| } # 1451| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] xkbcomp-1.5.0/action.c:1454:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new’ xkbcomp-1.5.0/action.c:1433:11: acquire_memory: allocated here xkbcomp-1.5.0/action.c:1434:8: branch_false: following ‘false’ branch (when ‘new’ is non-NULL)... xkbcomp-1.5.0/action.c:1439:9: branch_false: ...to here xkbcomp-1.5.0/action.c:1452:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/action.c:1454:9: branch_true: ...to here xkbcomp-1.5.0/action.c:1454:9: throw: if ‘uError’ throws an exception... xkbcomp-1.5.0/action.c:1454:9: danger: ‘new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) # 1452| if (!stringToField(field, &new->field)) # 1453| { # 1454|-> ERROR("\"%s\" is not a legal field name\n", field); # 1455| return False; # 1456| } Error: CPPCHECK_WARNING (CWE-401): [#def6] xkbcomp-1.5.0/action.c:1455: error[memleak]: Memory leak: new # 1453| { # 1454| ERROR("\"%s\" is not a legal field name\n", field); # 1455|-> return False; # 1456| } # 1457| new->array_ndx = array_ndx; Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] xkbcomp-1.5.0/action.c:1468:1: warning[-Wanalyzer-malloc-leak]: leak of ‘new’ xkbcomp-1.5.0/action.c:1433:11: acquire_memory: allocated here xkbcomp-1.5.0/action.c:1434:8: branch_false: following ‘false’ branch (when ‘new’ is non-NULL)... xkbcomp-1.5.0/action.c:1439:9: branch_false: ...to here xkbcomp-1.5.0/action.c:1439:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/action.c:1443:14: branch_false: ...to here xkbcomp-1.5.0/action.c:1443:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/action.c:1443:12: branch_true: ...to here xkbcomp-1.5.0/action.c:1468:1: danger: ‘new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) # 1466| old->next = new; # 1467| return True; # 1468|-> } # 1469| # 1470| /***====================================================================***/ Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] xkbcomp-1.5.0/alias.c:118:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’ xkbcomp-1.5.0/alias.c:106:12: acquire_memory: allocated here xkbcomp-1.5.0/alias.c:107:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)... xkbcomp-1.5.0/alias.c:112:5: branch_false: ...to here xkbcomp-1.5.0/alias.c:118:9: branch_false: following ‘false’ branch (when ‘info’ is NULL)... xkbcomp-1.5.0/alias.c:118:9: branch_false: ...to here xkbcomp-1.5.0/alias.c:118:9: throw: if ‘AddCommonInfo’ throws an exception... xkbcomp-1.5.0/alias.c:118:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 116| memcpy(info->real, def->real, XkbKeyNameLength); # 117| *info_in = (AliasInfo *) # 118|-> AddCommonInfo(((*info_in) ? &(*info_in)->def : NULL), &info->def); # 119| return True; # 120| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] xkbcomp-1.5.0/compat.c:173:13: warning[-Wanalyzer-malloc-leak]: leak of ‘si’ xkbcomp-1.5.0/compat.c:353:1: enter_function: entry to ‘MergeIncludedCompatMaps’ xkbcomp-1.5.0/compat.c:369:45: branch_true: following ‘true’ branch (when ‘si’ is non-NULL)... xkbcomp-1.5.0/compat.c:372:12: branch_true: ...to here xkbcomp-1.5.0/compat.c:372:12: branch_false: following ‘false’ branch (when ‘merge == 0’)... xkbcomp-1.5.0/compat.c:374:14: branch_false: ...to here xkbcomp-1.5.0/compat.c:374:14: call_function: calling ‘AddInterp’ from ‘MergeIncludedCompatMaps’ # 171| { # 172| info->interps = (SymInterpInfo *) # 173|-> AddCommonInfo((info->interps ? &info->interps->defs : NULL), # 174| (CommonInfo *) si); # 175| info->nInterps++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] xkbcomp-1.5.0/compat.c:779:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/compat.c:819:1: enter_function: entry to ‘CompileCompatMap’ xkbcomp-1.5.0/compat.c:826:5: call_function: calling ‘InitCompatInfo’ from ‘CompileCompatMap’ xkbcomp-1.5.0/compat.c:826:5: return_function: returning to ‘CompileCompatMap’ from ‘InitCompatInfo’ xkbcomp-1.5.0/compat.c:829:5: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’ # 777| break; # 778| default: # 779|-> WSGO("Unexpected statement type %d in HandleCompatMapFile\n", # 780| stmt->stmtType); # 781| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] xkbcomp-1.5.0/compat.c:779:13: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/compat.c:819:1: enter_function: entry to ‘CompileCompatMap’ xkbcomp-1.5.0/compat.c:826:5: call_function: calling ‘InitCompatInfo’ from ‘CompileCompatMap’ xkbcomp-1.5.0/compat.c:826:5: return_function: returning to ‘CompileCompatMap’ from ‘InitCompatInfo’ xkbcomp-1.5.0/compat.c:829:5: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’ # 777| break; # 778| default: # 779|-> WSGO("Unexpected statement type %d in HandleCompatMapFile\n", # 780| stmt->stmtType); # 781| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] xkbcomp-1.5.0/geometry.c:553:20: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 551| si->defs.next = NULL; # 552| si->geometry = info; # 553|-> si->name = XkbInternAtom(info->dpy, "default", False); # 554| InitRowInfo(&si->dfltRow, si, info); # 555| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] xkbcomp-1.5.0/geometry.c:706:40: warning[-Wanalyzer-malloc-leak]: leak of ‘pi’ xkbcomp-1.5.0/geometry.c:1231:1: enter_function: entry to ‘MergeIncludedGeometry’ xkbcomp-1.5.0/geometry.c:1242:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/geometry.c:1247:10: branch_false: ...to here xkbcomp-1.5.0/geometry.c:1275:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/geometry.c:1275:8: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1278:32: branch_true: following ‘true’ branch (when ‘pi’ is non-NULL)... xkbcomp-1.5.0/geometry.c:1280:18: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1280:18: call_function: calling ‘AddProperty’ from ‘MergeIncludedGeometry’ # 704| if (pi) # 705| { # 706|-> info->props = (PropertyInfo *) AddCommonInfo(&info->props->defs, # 707| (CommonInfo *) pi); # 708| info->nProps++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] xkbcomp-1.5.0/geometry.c:782:38: warning[-Wanalyzer-malloc-leak]: leak of ‘si’ xkbcomp-1.5.0/geometry.c:1231:1: enter_function: entry to ‘MergeIncludedGeometry’ xkbcomp-1.5.0/geometry.c:1242:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/geometry.c:1247:10: branch_false: ...to here xkbcomp-1.5.0/geometry.c:1284:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/geometry.c:1284:8: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1288:33: branch_true: following ‘true’ branch (when ‘si’ is non-NULL)... xkbcomp-1.5.0/geometry.c:1290:18: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1290:18: call_function: calling ‘AddShape’ from ‘MergeIncludedGeometry’ # 780| if (si) # 781| { # 782|-> info->shapes = (ShapeInfo *) AddCommonInfo(&info->shapes->defs, # 783| (CommonInfo *) si); # 784| info->nShapes++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def15] xkbcomp-1.5.0/geometry.c:917:32: warning[-Wanalyzer-malloc-leak]: leak of ‘di’ xkbcomp-1.5.0/geometry.c:1231:1: enter_function: entry to ‘MergeIncludedGeometry’ xkbcomp-1.5.0/geometry.c:1242:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/geometry.c:1247:10: branch_false: ...to here xkbcomp-1.5.0/geometry.c:1304:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/geometry.c:1304:8: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1308:34: branch_true: following ‘true’ branch (when ‘di’ is non-NULL)... xkbcomp-1.5.0/geometry.c:1310:18: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1310:18: call_function: calling ‘AddDoodad’ from ‘MergeIncludedGeometry’ # 915| { # 916| info->doodads = # 917|-> (DoodadInfo *) AddCommonInfo(&info->doodads->defs, # 918| (CommonInfo *) di); # 919| info->nDoodads++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def16] xkbcomp-1.5.0/geometry.c:1084:29: warning[-Wanalyzer-malloc-leak]: leak of ‘si’ xkbcomp-1.5.0/geometry.c:1231:1: enter_function: entry to ‘MergeIncludedGeometry’ xkbcomp-1.5.0/geometry.c:1294:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/geometry.c:1294:8: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1298:35: branch_true: following ‘true’ branch (when ‘si’ is non-NULL)... xkbcomp-1.5.0/geometry.c:1300:18: branch_true: ...to here xkbcomp-1.5.0/geometry.c:1300:18: call_function: calling ‘AddSection’ from ‘MergeIncludedGeometry’ # 1082| si->rows = NULL; # 1083| info->sections = # 1084|-> (SectionInfo *) AddCommonInfo(&info->sections->defs, # 1085| (CommonInfo *) si); # 1086| info->nSections++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def17] xkbcomp-1.5.0/geometry.c:1341:14: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 1339| bzero(info, sizeof(GeometryInfo)); # 1340| } # 1341|-> else if (ProcessIncludeFile(stmt, XkmGeometryIndex, &rtrn, &newMerge)) # 1342| { # 1343| InitGeometryInfo(&included, rtrn->id, newMerge); Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] xkbcomp-1.5.0/geometry.c:1415:20: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 1413| { # 1414| info->errorCount++; # 1415|-> return ReportNotArray("key shape", field, shText(info->dpy, si)); # 1416| } # 1417| if (!ExprResolveFloat(value, &tmp, NULL, NULL)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def19] xkbcomp-1.5.0/geometry.c:2093:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 2091| key->defs.defined |= _GK_Name; # 2092| bzero(key->name, XkbKeyNameLength + 1); # 2093|-> strncpy(key->name, tmp.keyName.name, XkbKeyNameLength); # 2094| } # 2095| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def20] xkbcomp-1.5.0/geometry.c:2130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 2128| Atom *pField; # 2129| # 2130|-> if (ExprResolveLhs(stmt->name, &elem, &field, &ndx) == 0) # 2131| return 0; /* internal error, already reported */ # 2132| if (elem.str && (uStrCaseCmp(elem.str, "shape") == 0)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def21] xkbcomp-1.5.0/geometry.c:2838:18: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 2836| break; # 2837| case StmtKeyAliasDef: # 2838|-> if (!HandleAliasDef((KeyAliasDef *) stmt, # 2839| merge, info->fileID, &info->aliases)) # 2840| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def22] xkbcomp-1.5.0/geometry.c:2879:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 2877| break; # 2878| default: # 2879|-> WSGO("Unexpected statement type %d in HandleGeometryFile\n", # 2880| stmt->stmtType); # 2881| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def23] xkbcomp-1.5.0/geometry.c:2879:13: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/geometry.c:3640:1: enter_function: entry to ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: call_function: calling ‘InitGeometryInfo’ from ‘CompileGeometry’ xkbcomp-1.5.0/geometry.c:3646:5: return_function: returning to ‘CompileGeometry’ from ‘InitGeometryInfo’ xkbcomp-1.5.0/geometry.c:3648:5: call_function: calling ‘HandleGeometryFile’ from ‘CompileGeometry’ # 2877| break; # 2878| default: # 2879|-> WSGO("Unexpected statement type %d in HandleGeometryFile\n", # 2880| stmt->stmtType); # 2881| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def24] xkbcomp-1.5.0/keycodes.c:125:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ii’ xkbcomp-1.5.0/keycodes.c:426:1: enter_function: entry to ‘MergeIncludedKeycodes’ xkbcomp-1.5.0/keycodes.c:455:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/keycodes.c:455:8: branch_true: ...to here xkbcomp-1.5.0/keycodes.c:458:32: branch_true: following ‘true’ branch (when ‘led’ is non-NULL)... xkbcomp-1.5.0/keycodes.c:460:16: branch_true: ...to here xkbcomp-1.5.0/keycodes.c:460:16: branch_false: following ‘false’ branch (when ‘merge == 0’)... xkbcomp-1.5.0/keycodes.c:462:18: branch_false: ...to here xkbcomp-1.5.0/keycodes.c:462:18: call_function: calling ‘AddIndicatorName’ from ‘MergeIncludedKeycodes’ # 123| InitIndicatorNameInfo(ii, info); # 124| info->leds = (IndicatorNameInfo *) # 125|-> AddCommonInfo((info->leds ? &info->leds->defs : NULL), # 126| (CommonInfo *) ii); # 127| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def25] xkbcomp-1.5.0/keycodes.c:467:10: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 465| } # 466| } # 467|-> if (!MergeAliases(&into->aliases, &from->aliases, merge)) # 468| into->errorCount++; # 469| if (from->explicitMin > 0) Error: GCC_ANALYZER_WARNING (CWE-401): [#def26] xkbcomp-1.5.0/keycodes.c:513:14: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 511| return (info->errorCount == 0); # 512| } /* parse file, store returned info in the xkb struct */ # 513|-> else if (ProcessIncludeFile(stmt, XkmKeyNamesIndex, &rtrn, &newMerge)) # 514| { # 515| InitKeyNamesInfo(&included); Error: GCC_ANALYZER_WARNING (CWE-401): [#def27] xkbcomp-1.5.0/keycodes.c:577:10: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 575| ExprResult result; # 576| # 577|-> if (!ExprResolveInteger(stmt->value, &result, NULL, NULL)) # 578| { # 579| ACTION("No value keycode assigned to name <%s>\n", stmt->name); Error: GCC_ANALYZER_WARNING (CWE-401): [#def28] xkbcomp-1.5.0/keycodes.c:579:9: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 577| if (!ExprResolveInteger(stmt->value, &result, NULL, NULL)) # 578| { # 579|-> ACTION("No value keycode assigned to name <%s>\n", stmt->name); # 580| return 0; # 581| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def29] xkbcomp-1.5.0/keycodes.c:587:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 585| if (!high_keycode_warned && warningLevel > 1) # 586| { # 587|-> INFO("Keycodes above %d (e.g. <%s>) are not supported by X and are ignored\n", # 588| code, stmt->name); # 589| high_keycode_warned = True; Error: GCC_ANALYZER_WARNING (CWE-401): [#def30] xkbcomp-1.5.0/keycodes.c:799:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 797| break; # 798| default: # 799|-> WSGO("Unexpected statement type %d in HandleKeycodesFile\n", # 800| stmt->stmtType); # 801| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def31] xkbcomp-1.5.0/keycodes.c:799:13: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/keycodes.c:827:1: enter_function: entry to ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:833:5: call_function: inlined call to ‘InitKeyNamesInfo’ from ‘CompileKeycodes’ xkbcomp-1.5.0/keycodes.c:834:5: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’ # 797| break; # 798| default: # 799|-> WSGO("Unexpected statement type %d in HandleKeycodesFile\n", # 800| stmt->stmtType); # 801| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def32] xkbcomp-1.5.0/keytypes.c:134:5: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keytypes.c:1172:1: enter_function: entry to ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: return_function: returning to ‘CompileKeyTypes’ from ‘InitKeyTypesInfo’ xkbcomp-1.5.0/keytypes.c:1180:5: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’ # 132| info->dflt.lvlNames = NULL; # 133| info->dflt.preserve = NULL; # 134|-> InitVModInfo(&info->vmods, xkb); # 135| if (from != NULL) # 136| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def33] xkbcomp-1.5.0/keytypes.c:134:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/keytypes.c:1172:1: enter_function: entry to ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’ # 132| info->dflt.lvlNames = NULL; # 133| info->dflt.preserve = NULL; # 134|-> InitVModInfo(&info->vmods, xkb); # 135| if (from != NULL) # 136| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def34] xkbcomp-1.5.0/keytypes.c:228:13: warning[-Wanalyzer-malloc-leak]: leak of ‘type’ xkbcomp-1.5.0/keytypes.c:341:1: enter_function: entry to ‘MergeIncludedKeyTypes’ xkbcomp-1.5.0/keytypes.c:354:43: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)... xkbcomp-1.5.0/keytypes.c:357:12: branch_true: ...to here xkbcomp-1.5.0/keytypes.c:357:12: branch_false: following ‘false’ branch (when ‘merge == 0’)... xkbcomp-1.5.0/keytypes.c:359:14: branch_false: ...to here xkbcomp-1.5.0/keytypes.c:359:14: call_function: calling ‘AddKeyType’ from ‘MergeIncludedKeyTypes’ # 226| type->dpy = info->dpy; # 227| info->types = (KeyTypeInfo *) # 228|-> AddCommonInfo((info->types ? &info->types->defs : NULL), # 229| (CommonInfo *) type); # 230| info->nTypes++; Error: GCC_ANALYZER_WARNING (CWE-401): [#def35] xkbcomp-1.5.0/keytypes.c:574:9: warning[-Wanalyzer-malloc-leak]: leak of ‘old’ xkbcomp-1.5.0/keytypes.c:1172:1: enter_function: entry to ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: return_function: returning to ‘CompileKeyTypes’ from ‘InitKeyTypesInfo’ xkbcomp-1.5.0/keytypes.c:1180:5: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’ # 572| old->matchingMapIndex = -1; # 573| type->preserve = (PreserveInfo *) # 574|-> AddCommonInfo((type->preserve ? &type->preserve->defs : NULL), # 575| &old->defs); # 576| return True; Error: GCC_ANALYZER_WARNING (CWE-401): [#def36] xkbcomp-1.5.0/keytypes.c:1082:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/keytypes.c:1172:1: enter_function: entry to ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: return_function: returning to ‘CompileKeyTypes’ from ‘InitKeyTypesInfo’ xkbcomp-1.5.0/keytypes.c:1180:5: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’ # 1080| break; # 1081| default: # 1082|-> WSGO("Unexpected statement type %d in HandleKeyTypesFile\n", # 1083| stmt->stmtType); # 1084| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def37] xkbcomp-1.5.0/keytypes.c:1082:13: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/keytypes.c:1172:1: enter_function: entry to ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’ xkbcomp-1.5.0/keytypes.c:1178:5: return_function: returning to ‘CompileKeyTypes’ from ‘InitKeyTypesInfo’ xkbcomp-1.5.0/keytypes.c:1180:5: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’ # 1080| break; # 1081| default: # 1082|-> WSGO("Unexpected statement type %d in HandleKeyTypesFile\n", # 1083| stmt->stmtType); # 1084| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def38] xkbcomp-1.5.0/listing.c:300:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(<unknown>)’ xkbcomp-1.5.0/listing.c:420:1: enter_function: entry to ‘GenerateListing’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:470:21: call_function: calling ‘AddDirectory’ from ‘GenerateListing’ # 298| do # 299| #else # 300|-> while ((file = readdir(dirp)) != NULL) # 301| #endif # 302| { Error: GCC_ANALYZER_WARNING (CWE-775): [#def39] xkbcomp-1.5.0/listing.c:408:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:420:1: enter_function: entry to ‘GenerateListing’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:486:24: branch_true: following ‘true’ branch (when ‘mapToUse’ is non-NULL)... xkbcomp-1.5.0/listing.c:488:26: branch_true: ...to here xkbcomp-1.5.0/listing.c:488:26: call_function: calling ‘MapMatches’ from ‘GenerateListing’ # 406| { # 407| if (ptrn != NULL) # 408|-> return XkbNameMatchesPattern(mapToConsider, ptrn); # 409| if (nMapOnly < 1) # 410| return True; Error: GCC_ANALYZER_WARNING (CWE-401): [#def40] xkbcomp-1.5.0/listing.c:408:16: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:420:1: enter_function: entry to ‘GenerateListing’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:486:24: branch_true: following ‘true’ branch (when ‘mapToUse’ is non-NULL)... xkbcomp-1.5.0/listing.c:488:26: branch_true: ...to here xkbcomp-1.5.0/listing.c:488:26: call_function: calling ‘MapMatches’ from ‘GenerateListing’ # 406| { # 407| if (ptrn != NULL) # 408|-> return XkbNameMatchesPattern(mapToConsider, ptrn); # 409| if (nMapOnly < 1) # 410| return True; Error: GCC_ANALYZER_WARNING (CWE-775): [#def41] xkbcomp-1.5.0/listing.c:413:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:420:1: enter_function: entry to ‘GenerateListing’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:486:24: branch_true: following ‘true’ branch (when ‘mapToUse’ is non-NULL)... xkbcomp-1.5.0/listing.c:488:26: branch_true: ...to here xkbcomp-1.5.0/listing.c:488:26: call_function: calling ‘MapMatches’ from ‘GenerateListing’ # 411| for (int i = 0; i < nMapOnly; i++) # 412| { # 413|-> if (XkbNameMatchesPattern(mapToConsider, mapOnly[i])) # 414| return True; # 415| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def42] xkbcomp-1.5.0/listing.c:413:13: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:420:1: enter_function: entry to ‘GenerateListing’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:486:24: branch_true: following ‘true’ branch (when ‘mapToUse’ is non-NULL)... xkbcomp-1.5.0/listing.c:488:26: branch_true: ...to here xkbcomp-1.5.0/listing.c:488:26: call_function: calling ‘MapMatches’ from ‘GenerateListing’ # 411| for (int i = 0; i < nMapOnly; i++) # 412| { # 413|-> if (XkbNameMatchesPattern(mapToConsider, mapOnly[i])) # 414| return True; # 415| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def43] xkbcomp-1.5.0/listing.c:464:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:461:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:463:20: branch_true: ...to here xkbcomp-1.5.0/listing.c:463:20: branch_true: following ‘true’ branch (when ‘oldWarningLevel > 5’)... xkbcomp-1.5.0/listing.c:464:56: branch_true: ...to here xkbcomp-1.5.0/listing.c:464:21: throw: if ‘uWarning’ throws an exception... xkbcomp-1.5.0/listing.c:464:21: danger: ‘outFile’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4) # 462| { # 463| if (oldWarningLevel > 5) # 464|-> WARN("Couldn't open \"%s\"\n", list[i].file); # 465| continue; # 466| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def44] xkbcomp-1.5.0/listing.c:464:21: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:461:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:463:20: branch_true: ...to here xkbcomp-1.5.0/listing.c:463:20: branch_true: following ‘true’ branch (when ‘oldWarningLevel > 5’)... xkbcomp-1.5.0/listing.c:464:56: branch_true: ...to here xkbcomp-1.5.0/listing.c:464:21: throw: if ‘uWarning’ throws an exception... xkbcomp-1.5.0/listing.c:464:21: danger: ‘outFile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4) # 462| { # 463| if (oldWarningLevel > 5) # 464|-> WARN("Couldn't open \"%s\"\n", list[i].file); # 465| continue; # 466| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def45] xkbcomp-1.5.0/listing.c:478:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:475:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:477:20: branch_true: ...to here xkbcomp-1.5.0/listing.c:478:21: throw: if ‘uWarning’ throws an exception... xkbcomp-1.5.0/listing.c:478:21: danger: ‘outFile’ leaks here; was opened at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4) # 476| { # 477| if (oldWarningLevel > 5) # 478|-> WARN("Couldn't open \"%s\"\n", list[i].file); # 479| continue; # 480| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def46] xkbcomp-1.5.0/listing.c:478:21: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:475:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:477:20: branch_true: ...to here xkbcomp-1.5.0/listing.c:478:21: throw: if ‘uWarning’ throws an exception... xkbcomp-1.5.0/listing.c:478:21: danger: ‘outFile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4) # 476| { # 477| if (oldWarningLevel > 5) # 478|-> WARN("Couldn't open \"%s\"\n", list[i].file); # 479| continue; # 480| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def47] xkbcomp-1.5.0/listing.c:481:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:481:13: throw: if ‘setScanState’ throws an exception... xkbcomp-1.5.0/listing.c:481:13: danger: ‘outFile’ leaks here; was opened at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4) # 479| continue; # 480| } # 481|-> setScanState(list[i].file, 1); # 482| if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def48] xkbcomp-1.5.0/listing.c:481:13: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:481:13: throw: if ‘setScanState’ throws an exception... xkbcomp-1.5.0/listing.c:481:13: danger: ‘outFile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4) # 479| continue; # 480| } # 481|-> setScanState(list[i].file, 1); # 482| if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { Error: GCC_ANALYZER_WARNING (CWE-775): [#def49] xkbcomp-1.5.0/listing.c:481:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>.file, "r")’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:474:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:481:13: throw: if ‘setScanState’ throws an exception... xkbcomp-1.5.0/listing.c:481:30: danger: ‘fopen(*<unknown>.file, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6) # 479| continue; # 480| } # 481|-> setScanState(list[i].file, 1); # 482| if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def50] xkbcomp-1.5.0/listing.c:481:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>.file, "r")’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:474:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:481:13: throw: if ‘setScanState’ throws an exception... xkbcomp-1.5.0/listing.c:481:30: danger: ‘fopen(*<unknown>.file, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6) # 479| continue; # 480| } # 481|-> setScanState(list[i].file, 1); # 482| if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { Error: GCC_ANALYZER_WARNING (CWE-775): [#def51] xkbcomp-1.5.0/listing.c:482:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:17: throw: if ‘XKBParseFile’ throws an exception... xkbcomp-1.5.0/listing.c:482:17: danger: ‘outFile’ leaks here; was opened at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4) # 480| } # 481| setScanState(list[i].file, 1); # 482|-> if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { # 484| char *mapName = list[i].map; Error: GCC_ANALYZER_WARNING (CWE-401): [#def52] xkbcomp-1.5.0/listing.c:482:17: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:443:21: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:454:9: branch_true: ...to here xkbcomp-1.5.0/listing.c:456:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/listing.c:461:17: branch_true: ...to here xkbcomp-1.5.0/listing.c:482:17: throw: if ‘XKBParseFile’ throws an exception... xkbcomp-1.5.0/listing.c:482:17: danger: ‘outFile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4) # 480| } # 481| setScanState(list[i].file, 1); # 482|-> if (XKBParseFile(inputFile, &rtrn) && (rtrn != NULL)) # 483| { # 484| char *mapName = list[i].map; Error: GCC_ANALYZER_WARNING (CWE-775): [#def53] xkbcomp-1.5.0/listing.c:502:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_resource: opened here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:497:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:428:16: branch_false: ...to here xkbcomp-1.5.0/listing.c:502:1: danger: ‘outFile’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4) # 500| } # 501| return 1; # 502|-> } Error: GCC_ANALYZER_WARNING (CWE-401): [#def54] xkbcomp-1.5.0/listing.c:502:1: warning[-Wanalyzer-malloc-leak]: leak of ‘outFile’ xkbcomp-1.5.0/listing.c:425:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:430:8: branch_false: ...to here xkbcomp-1.5.0/listing.c:430:8: branch_false: following ‘false’ branch (when ‘out_name’ is non-NULL)... xkbcomp-1.5.0/listing.c:430:26: branch_false: ...to here xkbcomp-1.5.0/listing.c:432:25: acquire_memory: allocated here xkbcomp-1.5.0/listing.c:432:13: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:443:5: branch_false: ...to here xkbcomp-1.5.0/listing.c:497:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/listing.c:428:16: branch_false: ...to here xkbcomp-1.5.0/listing.c:502:1: danger: ‘outFile’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4) # 500| } # 501| return 1; # 502|-> } Error: GCC_ANALYZER_WARNING (CWE-401): [#def55] xkbcomp-1.5.0/parseutils.c:72:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ExprCreate(1, 0)’ xkbcomp-1.5.0/parseutils.c:224:1: enter_function: entry to ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: return_function: returning to ‘BoolVarCreate’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:230:13: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ # 70| else # 71| { # 72|-> FATAL("Couldn't allocate expression in parser\n"); # 73| /* NOTREACHED */ # 74| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def56] xkbcomp-1.5.0/parseutils.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ExprCreate(0, 1)’ xkbcomp-1.5.0/parseutils.c:224:1: enter_function: entry to ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: return_function: returning to ‘BoolVarCreate’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:230:13: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:230:13: return_function: returning to ‘BoolVarCreate’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:232:12: call_function: calling ‘VarCreate’ from ‘BoolVarCreate’ # 215| else # 216| { # 217|-> FATAL("Couldn't allocate variable definition in parser\n"); # 218| /* NOTREACHED */ # 219| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def57] xkbcomp-1.5.0/parseutils.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ExprCreate(1, 0)’ xkbcomp-1.5.0/parseutils.c:224:1: enter_function: entry to ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:228:12: return_function: returning to ‘BoolVarCreate’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:230:13: call_function: calling ‘ExprCreate’ from ‘BoolVarCreate’ xkbcomp-1.5.0/parseutils.c:230:13: return_function: returning to ‘BoolVarCreate’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:232:12: call_function: calling ‘VarCreate’ from ‘BoolVarCreate’ # 215| else # 216| { # 217|-> FATAL("Couldn't allocate variable definition in parser\n"); # 218| /* NOTREACHED */ # 219| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def58] xkbcomp-1.5.0/parseutils.c:439:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ExprCreate(5, 7)’ xkbcomp-1.5.0/parseutils.c:429:1: enter_function: entry to ‘CreateKeysymList’ xkbcomp-1.5.0/parseutils.c:433:11: call_function: calling ‘ExprCreate’ from ‘CreateKeysymList’ xkbcomp-1.5.0/parseutils.c:433:11: return_function: returning to ‘CreateKeysymList’ from ‘ExprCreate’ xkbcomp-1.5.0/parseutils.c:439:12: danger: ‘ExprCreate(5, 7)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3) # 437| def->value.list.szSyms = 4; # 438| def->value.list.syms = calloc(4, sizeof(char *)); # 439|-> if (def->value.list.syms != NULL) # 440| { # 441| def->value.list.syms[0] = sym; Error: GCC_ANALYZER_WARNING (CWE-401): [#def59] xkbcomp-1.5.0/parseutils.c:678:11: warning[-Wanalyzer-malloc-leak]: leak of ‘def’ xkbcomp-1.5.0/parseutils.c:236:1: enter_function: entry to ‘InterpCreate’ xkbcomp-1.5.0/parseutils.c:240:11: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:241:8: branch_true: following ‘true’ branch (when ‘def’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:243:9: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:248:13: call_function: calling ‘LookupKeysym’ from ‘InterpCreate’ # 676| return 1; # 677| } # 678|-> sym = XStringToKeysym(str); # 679| if (sym != NoSymbol) # 680| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def60] xkbcomp-1.5.0/parseutils.c:711:13: warning[-Wanalyzer-malloc-leak]: leak of ‘first’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:720:32: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:13: throw: if ‘XkbParseIncludeMap’ throws an exception... xkbcomp-1.5.0/parseutils.c:711:13: danger: ‘first’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8) # 709| while ((tmp) && (*tmp)) # 710| { # 711|-> if (XkbParseIncludeMap(&tmp, &file, &map, &nextop, &extra_data)) # 712| { # 713| if ((file == NULL) && (map == NULL)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def61] xkbcomp-1.5.0/parseutils.c:711:13: warning[-Wanalyzer-malloc-leak]: leak of ‘incl’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:723:30: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:13: throw: if ‘XkbParseIncludeMap’ throws an exception... xkbcomp-1.5.0/parseutils.c:711:13: danger: ‘incl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18) # 709| while ((tmp) && (*tmp)) # 710| { # 711|-> if (XkbParseIncludeMap(&tmp, &file, &map, &nextop, &extra_data)) # 712| { # 713| if ((file == NULL) && (map == NULL)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def62] xkbcomp-1.5.0/parseutils.c:711:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stmt’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:708:12: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:13: throw: if ‘XkbParseIncludeMap’ throws an exception... xkbcomp-1.5.0/parseutils.c:711:13: danger: ‘stmt’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2) # 709| while ((tmp) && (*tmp)) # 710| { # 711|-> if (XkbParseIncludeMap(&tmp, &file, &map, &nextop, &extra_data)) # 712| { # 713| if ((file == NULL) && (map == NULL)) Error: COMPILER_WARNING (CWE-457): [#def63] xkbcomp-1.5.0/parseutils.c: scope_hint: In function ‘IncludeCreate.constprop’ xkbcomp-1.5.0/parseutils.c:728:23: warning[-Wmaybe-uninitialized]: ‘extra_data’ may be used uninitialized # 728 | *incl = (IncludeStmt) { # | ^ xkbcomp-1.5.0/parseutils.c:700:37: note: ‘extra_data’ was declared here # 700 | char *file, *map, *stmt, *tmp, *extra_data; # | ^ # 726| if (incl) # 727| { # 728|-> *incl = (IncludeStmt) { # 729| .common.stmtType = StmtInclude, # 730| .common.next = NULL, Error: GCC_ANALYZER_WARNING (CWE-401): [#def64] xkbcomp-1.5.0/parseutils.c:742:17: warning[-Wanalyzer-malloc-leak]: leak of ‘first’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:720:32: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:742:17: throw: if ‘uInternalError’ throws an exception... xkbcomp-1.5.0/parseutils.c:742:17: danger: ‘first’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8) # 740| else # 741| { # 742|-> WSGO("Allocation failure in IncludeCreate\n"); # 743| ACTION("Using only part of the include\n"); # 744| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def65] xkbcomp-1.5.0/parseutils.c:742:17: warning[-Wanalyzer-malloc-leak]: leak of ‘incl’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:723:30: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:742:17: throw: if ‘uInternalError’ throws an exception... xkbcomp-1.5.0/parseutils.c:742:17: danger: ‘incl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/18) # 740| else # 741| { # 742|-> WSGO("Allocation failure in IncludeCreate\n"); # 743| ACTION("Using only part of the include\n"); # 744| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def66] xkbcomp-1.5.0/parseutils.c:742:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stmt’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:708:12: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:742:17: throw: if ‘uInternalError’ throws an exception... xkbcomp-1.5.0/parseutils.c:742:17: danger: ‘stmt’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2) # 740| else # 741| { # 742|-> WSGO("Allocation failure in IncludeCreate\n"); # 743| ACTION("Using only part of the include\n"); # 744| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def67] xkbcomp-1.5.0/parseutils.c:743:17: warning[-Wanalyzer-malloc-leak]: leak of ‘first’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:720:32: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:743:17: throw: if ‘uAction’ throws an exception... xkbcomp-1.5.0/parseutils.c:743:17: danger: ‘first’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8) # 741| { # 742| WSGO("Allocation failure in IncludeCreate\n"); # 743|-> ACTION("Using only part of the include\n"); # 744| break; # 745| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def68] xkbcomp-1.5.0/parseutils.c:743:17: warning[-Wanalyzer-malloc-leak]: leak of ‘incl’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:723:30: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:743:17: throw: if ‘uAction’ throws an exception... xkbcomp-1.5.0/parseutils.c:743:17: danger: ‘incl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/18) # 741| { # 742| WSGO("Allocation failure in IncludeCreate\n"); # 743|-> ACTION("Using only part of the include\n"); # 744| break; # 745| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def69] xkbcomp-1.5.0/parseutils.c:743:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stmt’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:708:12: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_false: following ‘false’ branch (when ‘incl’ is NULL)... xkbcomp-1.5.0/parseutils.c:742:17: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:743:17: throw: if ‘uAction’ throws an exception... xkbcomp-1.5.0/parseutils.c:743:17: danger: ‘stmt’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2) # 741| { # 742| WSGO("Allocation failure in IncludeCreate\n"); # 743|-> ACTION("Using only part of the include\n"); # 744| break; # 745| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def70] xkbcomp-1.5.0/parseutils.c:762:5: warning[-Wanalyzer-malloc-leak]: leak of ‘first’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:720:32: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:762:5: throw: if ‘uError’ throws an exception... xkbcomp-1.5.0/parseutils.c:762:5: danger: ‘first’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8) # 760| return first; # 761| BAIL: # 762|-> ERROR("Illegal include statement \"%s\"\n", stmt); # 763| ACTION("Ignored\n"); # 764| while (first) Error: GCC_ANALYZER_WARNING (CWE-401): [#def71] xkbcomp-1.5.0/parseutils.c:762:5: warning[-Wanalyzer-malloc-leak]: leak of ‘incl’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:723:30: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:762:5: throw: if ‘uError’ throws an exception... xkbcomp-1.5.0/parseutils.c:762:5: danger: ‘incl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/18) # 760| return first; # 761| BAIL: # 762|-> ERROR("Illegal include statement \"%s\"\n", stmt); # 763| ACTION("Ignored\n"); # 764| while (first) Error: GCC_ANALYZER_WARNING (CWE-401): [#def72] xkbcomp-1.5.0/parseutils.c:762:5: warning[-Wanalyzer-malloc-leak]: leak of ‘stmt’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:708:12: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_false: following ‘false’ branch... xkbcomp-1.5.0/parseutils.c:753:13: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:762:5: throw: if ‘uError’ throws an exception... xkbcomp-1.5.0/parseutils.c:762:5: danger: ‘stmt’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2) # 760| return first; # 761| BAIL: # 762|-> ERROR("Illegal include statement \"%s\"\n", stmt); # 763| ACTION("Ignored\n"); # 764| while (first) Error: GCC_ANALYZER_WARNING (CWE-401): [#def73] xkbcomp-1.5.0/parseutils.c:763:5: warning[-Wanalyzer-malloc-leak]: leak of ‘first’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:720:32: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:763:5: throw: if ‘uAction’ throws an exception... xkbcomp-1.5.0/parseutils.c:763:5: danger: ‘first’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8) # 761| BAIL: # 762| ERROR("Illegal include statement \"%s\"\n", stmt); # 763|-> ACTION("Ignored\n"); # 764| while (first) # 765| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def74] xkbcomp-1.5.0/parseutils.c:763:5: warning[-Wanalyzer-malloc-leak]: leak of ‘incl’ xkbcomp-1.5.0/parseutils.c:708:12: branch_true: following ‘true’ branch (when ‘str’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:708:12: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_true: following ‘true’ branch (when ‘first’ is NULL)... xkbcomp-1.5.0/parseutils.c:720:32: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:711:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:713:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:719:16: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:723:30: branch_false: ...to here xkbcomp-1.5.0/parseutils.c:723:30: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:726:16: branch_true: following ‘true’ branch (when ‘incl’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:728:17: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:746:16: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:746:16: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:709:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/parseutils.c:763:5: throw: if ‘uAction’ throws an exception... xkbcomp-1.5.0/parseutils.c:763:5: danger: ‘incl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/18) # 761| BAIL: # 762| ERROR("Illegal include statement \"%s\"\n", stmt); # 763|-> ACTION("Ignored\n"); # 764| while (first) # 765| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def75] xkbcomp-1.5.0/parseutils.c:857:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file’ xkbcomp-1.5.0/parseutils.c:854:12: acquire_memory: allocated here xkbcomp-1.5.0/parseutils.c:855:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)... xkbcomp-1.5.0/parseutils.c:857:9: branch_true: ...to here xkbcomp-1.5.0/parseutils.c:857:9: throw: if ‘XkbEnsureSafeMapName’ throws an exception... xkbcomp-1.5.0/parseutils.c:857:9: danger: ‘file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0) # 855| if (file) # 856| { # 857|-> XkbEnsureSafeMapName(name); # 858| *file = (XkbFile) { # 859| .type = type, Error: GCC_ANALYZER_WARNING (CWE-401): [#def76] xkbcomp-1.5.0/symbols.c:355:13: warning[-Wanalyzer-malloc-leak]: leak of ‘resultSyms’ xkbcomp-1.5.0/symbols.c:596:1: enter_function: entry to ‘AddKeySymbols’ xkbcomp-1.5.0/symbols.c:605:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:605:8: branch_true: ...to here xkbcomp-1.5.0/symbols.c:607:25: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:609:17: branch_true: ...to here xkbcomp-1.5.0/symbols.c:610:24: call_function: calling ‘MergeKeys’ from ‘AddKeySymbols’ # 353| if (!resultActs) # 354| { # 355|-> WSGO("Could not allocate actions for group merge\n"); # 356| ACTION("Group %d of key %s not merged\n", group, # 357| longText(into->name, XkbMessage)); Error: GCC_ANALYZER_WARNING (CWE-401): [#def77] xkbcomp-1.5.0/symbols.c:356:13: warning[-Wanalyzer-malloc-leak]: leak of ‘resultSyms’ xkbcomp-1.5.0/symbols.c:596:1: enter_function: entry to ‘AddKeySymbols’ xkbcomp-1.5.0/symbols.c:605:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:605:8: branch_true: ...to here xkbcomp-1.5.0/symbols.c:607:25: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:609:17: branch_true: ...to here xkbcomp-1.5.0/symbols.c:610:24: call_function: calling ‘MergeKeys’ from ‘AddKeySymbols’ # 354| { # 355| WSGO("Could not allocate actions for group merge\n"); # 356|-> ACTION("Group %d of key %s not merged\n", group, # 357| longText(into->name, XkbMessage)); # 358| return False; Error: GCC_ANALYZER_WARNING (CWE-401): [#def78] xkbcomp-1.5.0/symbols.c:472:1: warning[-Wanalyzer-malloc-leak]: leak of ‘resultSyms’ xkbcomp-1.5.0/symbols.c:596:1: enter_function: entry to ‘AddKeySymbols’ xkbcomp-1.5.0/symbols.c:605:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:605:8: branch_true: ...to here xkbcomp-1.5.0/symbols.c:607:25: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:609:17: branch_true: ...to here xkbcomp-1.5.0/symbols.c:610:24: call_function: calling ‘MergeKeys’ from ‘AddKeySymbols’ # 470| from->actsDefined &= ~(1U << group); # 471| return True; # 472|-> } # 473| # 474| static Bool Error: GCC_ANALYZER_WARNING (CWE-401): [#def79] xkbcomp-1.5.0/symbols.c:701:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mm’ xkbcomp-1.5.0/symbols.c:709:1: enter_function: entry to ‘MergeIncludedSymbols’ xkbcomp-1.5.0/symbols.c:720:8: branch_false: following ‘false’ branch... xkbcomp-1.5.0/symbols.c:725:5: branch_false: ...to here xkbcomp-1.5.0/symbols.c:725:17: branch_true: following ‘true’ branch (when ‘i != 4’)... xkbcomp-1.5.0/symbols.c:727:13: branch_true: ...to here xkbcomp-1.5.0/symbols.c:727:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:729:16: branch_true: ...to here xkbcomp-1.5.0/symbols.c:729:16: branch_true: following ‘true’ branch (when ‘merge != 1’)... xkbcomp-1.5.0/symbols.c:730:17: branch_true: ...to here xkbcomp-1.5.0/symbols.c:727:12: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:729:16: branch_true: ...to here xkbcomp-1.5.0/symbols.c:729:16: branch_true: following ‘true’ branch (when ‘merge != 1’)... xkbcomp-1.5.0/symbols.c:730:17: branch_true: ...to here xkbcomp-1.5.0/symbols.c:733:35: branch_false: following ‘false’ branch... xkbcomp-1.5.0/symbols.c:740:9: branch_false: ...to here xkbcomp-1.5.0/symbols.c:740:8: branch_true: following ‘true’ branch... xkbcomp-1.5.0/symbols.c:740:8: branch_true: ...to here xkbcomp-1.5.0/symbols.c:743:33: branch_true: following ‘true’ branch (when ‘mm’ is non-NULL)... xkbcomp-1.5.0/symbols.c:745:16: branch_true: ...to here xkbcomp-1.5.0/symbols.c:745:16: branch_false: following ‘false’ branch (when ‘merge == 0’)... xkbcomp-1.5.0/symbols.c:747:18: branch_false: ...to here xkbcomp-1.5.0/symbols.c:747:18: call_function: calling ‘AddModMapEntry’ from ‘MergeIncludedSymbols’ # 699| *mm = *new; # 700| info->modMap = (ModMapEntry *) # 701|-> AddCommonInfo((info->modMap ? &info->modMap->defs : NULL), # 702| &mm->defs); # 703| return True; Error: GCC_ANALYZER_WARNING (CWE-401): [#def80] xkbcomp-1.5.0/symbols.c:1679:13: warning[-Wanalyzer-malloc-leak]: leak of ‘included.name’ xkbcomp-1.5.0/symbols.c:2203:1: enter_function: entry to ‘CompileSymbols’ xkbcomp-1.5.0/symbols.c:2209:5: call_function: calling ‘InitSymbolsInfo’ from ‘CompileSymbols’ xkbcomp-1.5.0/symbols.c:2209:5: return_function: returning to ‘CompileSymbols’ from ‘InitSymbolsInfo’ xkbcomp-1.5.0/symbols.c:2212:5: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’ # 1677| break; # 1678| default: # 1679|-> WSGO("Unexpected statement type %d in HandleSymbolsFile\n", # 1680| stmt->stmtType); # 1681| break; Error: GCC_ANALYZER_WARNING (CWE-401): [#def81] xkbcomp-1.5.0/symbols.c:1679:13: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’ xkbcomp-1.5.0/symbols.c:2203:1: enter_function: entry to ‘CompileSymbols’ xkbcomp-1.5.0/symbols.c:2209:5: call_function: calling ‘InitSymbolsInfo’ from ‘CompileSymbols’ xkbcomp-1.5.0/symbols.c:2209:5: return_function: returning to ‘CompileSymbols’ from ‘InitSymbolsInfo’ xkbcomp-1.5.0/symbols.c:2212:5: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’ # 1677| break; # 1678| default: # 1679|-> WSGO("Unexpected statement type %d in HandleSymbolsFile\n", # 1680| stmt->stmtType); # 1681| break; Error: GCC_ANALYZER_WARNING (CWE-775): [#def82] xkbcomp-1.5.0/xkbcomp.c:713:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(inputFile, "r")’ xkbcomp-1.5.0/xkbcomp.c:903:1: enter_function: entry to ‘main’ xkbcomp-1.5.0/xkbcomp.c:919:10: call_function: calling ‘parseArgs’ from ‘main’ # 711| if (file) # 712| { # 713|-> if (XkmProbe(file)) # 714| inputFormat = INPUT_XKM; # 715| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def83] xkbcomp-1.5.0/xkbcomp.c:713:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(inputFile, "r")’ xkbcomp-1.5.0/xkbcomp.c:903:1: enter_function: entry to ‘main’ xkbcomp-1.5.0/xkbcomp.c:919:10: call_function: calling ‘parseArgs’ from ‘main’ # 711| if (file) # 712| { # 713|-> if (XkmProbe(file)) # 714| inputFormat = INPUT_XKM; # 715| else Error: COMPILER_WARNING (CWE-1041): [#def84] xkbcomp-1.5.0/xkbparse.c:302:5: warning[-Wredundant-decls]: redundant redeclaration of ‘yyparse’ # 302 | int yyparse (void); # | ^~~~~~~ xkbcomp-1.5.0/xkbparse.y:97: included_from: Included from here. xkbcomp-1.5.0/parseutils.h:200:12: note: previous declaration of ‘yyparse’ with type ‘int(void)’ # 200 | extern int yyparse(void); # | ^~~~~~~ # 300| # 301| # 302|-> int yyparse (void); # 303| # 304| Error: GCC_ANALYZER_WARNING (CWE-401): [#def85] xkbcomp-1.5.0/xkbparse.c:1633:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ xkbcomp-1.5.0/xkbparse.c:1591:6: branch_false: following ‘false’ branch... xkbcomp-1.5.0/xkbparse.c:1655:6: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1655:6: branch_false: following ‘false’ branch (when ‘yystate != 18’)... xkbcomp-1.5.0/xkbparse.c:1658:3: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1670:6: branch_false: following ‘false’ branch (when ‘yyn != -178’)... xkbcomp-1.5.0/xkbparse.c:1676:7: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1676:6: branch_true: following ‘true’ branch... xkbcomp-1.5.0/xkbparse.c:1679:16: branch_true: ...to here xkbcomp-1.5.0/xkbparse.c:1688:11: branch_false: following ‘false’ branch... xkbcomp-1.5.0/xkbparse.c:1700:17: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1707:6: branch_false: following ‘false’ branch... xkbcomp-1.5.0/xkbparse.c:1710:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)... xkbcomp-1.5.0/xkbparse.c:1720:6: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1720:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)... xkbcomp-1.5.0/xkbparse.c:1727:3: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1591:6: branch_true: following ‘true’ branch... xkbcomp-1.5.0/xkbparse.c:1597:34: branch_true: ...to here xkbcomp-1.5.0/xkbparse.c:1620:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)... xkbcomp-1.5.0/xkbparse.c:1622:7: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1629:11: acquire_memory: allocated here xkbcomp-1.5.0/xkbparse.c:1631:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)... xkbcomp-1.5.0/xkbparse.c:1631:12: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1636:12: branch_false: following ‘false’ branch... xkbcomp-1.5.0/xkbparse.c:1641:7: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1649:10: branch_false: following ‘false’ branch... xkbcomp-1.5.0/xkbparse.c:1655:6: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1655:6: branch_false: following ‘false’ branch (when ‘yystate != 18’)... xkbcomp-1.5.0/xkbparse.c:1658:3: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1670:6: branch_false: following ‘false’ branch (when ‘yyn != -178’)... xkbcomp-1.5.0/xkbparse.c:1676:7: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1676:6: branch_true: following ‘true’ branch... xkbcomp-1.5.0/xkbparse.c:1679:16: branch_true: ...to here xkbcomp-1.5.0/xkbparse.c:1679:16: throw: if ‘yylex’ throws an exception... xkbcomp-1.5.0/xkbparse.c:1633:9: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20) # 1631| if (! yyptr) # 1632| YYNOMEM; # 1633|-> YYSTACK_RELOCATE (yyss_alloc, yyss); # 1634| YYSTACK_RELOCATE (yyvs_alloc, yyvs); # 1635| # undef YYSTACK_RELOCATE Error: GCC_ANALYZER_WARNING (CWE-457): [#def86] xkbcomp-1.5.0/xkbparse.c:1633:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ xkbcomp-1.5.0/xkbparse.c:1591:6: branch_true: following ‘true’ branch... xkbcomp-1.5.0/xkbparse.c:1597:34: branch_true: ...to here xkbcomp-1.5.0/xkbparse.c:1620:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)... xkbcomp-1.5.0/xkbparse.c:1622:7: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1631:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)... xkbcomp-1.5.0/xkbparse.c:1631:12: branch_false: ...to here xkbcomp-1.5.0/xkbparse.c:1633:9: danger: use of uninitialized value ‘yyss’ here # 1631| if (! yyptr) # 1632| YYNOMEM; # 1633|-> YYSTACK_RELOCATE (yyss_alloc, yyss); # 1634| YYSTACK_RELOCATE (yyvs_alloc, yyvs); # 1635| # undef YYSTACK_RELOCATE
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-48.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | xkbcomp-1.5.0-1.fc44 |
| store-results-to | /tmp/tmp59xb617d/xkbcomp-1.5.0-1.fc44.tar.xz |
| time-created | 2026-01-08 22:13:02 |
| time-finished | 2026-01-08 22:14:31 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp59xb617d/xkbcomp-1.5.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp59xb617d/xkbcomp-1.5.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |