Task #92193 - fixed.err
back to task #92193download
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/alias.c:117:30: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xkbcomp-1.4.7/alias.c:106:12: acquire_memory: allocated here
xkbcomp-1.4.7/alias.c:107:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xkbcomp-1.4.7/alias.c:112:5: branch_false: ...to here
xkbcomp-1.4.7/alias.c:117:30: throw: if ‘AddCommonInfo’ throws an exception...
xkbcomp-1.4.7/alias.c:117:30: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 115| memcpy(info->alias, def->alias, XkbKeyNameLength);
# 116| memcpy(info->real, def->real, XkbKeyNameLength);
# 117|-> *info_in = (AliasInfo *) AddCommonInfo(&(*info_in)->def, &info->def);
# 118| return True;
# 119| }
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/compat.c:165:31: warning[-Wanalyzer-malloc-leak]: leak of ‘si’
xkbcomp-1.4.7/compat.c:342:1: enter_function: entry to ‘MergeIncludedCompatMaps’
xkbcomp-1.4.7/compat.c:358:45: branch_true: following ‘true’ branch (when ‘si’ is non-NULL)...
xkbcomp-1.4.7/compat.c:361:12: branch_true: ...to here
xkbcomp-1.4.7/compat.c:361:12: branch_false: following ‘false’ branch (when ‘merge == 0’)...
xkbcomp-1.4.7/compat.c:363:14: branch_false: ...to here
xkbcomp-1.4.7/compat.c:363:14: call_function: calling ‘AddInterp’ from ‘MergeIncludedCompatMaps’
# 163| {
# 164| info->interps =
# 165|-> (SymInterpInfo *) AddCommonInfo(&info->interps->defs,
# 166| (CommonInfo *) si);
# 167| info->nInterps++;
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/keycodes.c:124:44: warning[-Wanalyzer-malloc-leak]: leak of ‘ii’
xkbcomp-1.4.7/keycodes.c:425:1: enter_function: entry to ‘MergeIncludedKeycodes’
xkbcomp-1.4.7/keycodes.c:454:8: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/keycodes.c:454:8: branch_true: ...to here
xkbcomp-1.4.7/keycodes.c:457:32: branch_true: following ‘true’ branch (when ‘led’ is non-NULL)...
xkbcomp-1.4.7/keycodes.c:459:16: branch_true: ...to here
xkbcomp-1.4.7/keycodes.c:459:16: branch_false: following ‘false’ branch (when ‘merge == 0’)...
xkbcomp-1.4.7/keycodes.c:461:18: branch_false: ...to here
xkbcomp-1.4.7/keycodes.c:461:18: call_function: calling ‘AddIndicatorName’ from ‘MergeIncludedKeycodes’
# 122| {
# 123| InitIndicatorNameInfo(ii, info);
# 124|-> info->leds = (IndicatorNameInfo *) AddCommonInfo(&info->leds->defs,
# 125| (CommonInfo *) ii);
# 126| }
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/keytypes.c:227:39: warning[-Wanalyzer-malloc-leak]: leak of ‘type’
xkbcomp-1.4.7/keytypes.c:340:1: enter_function: entry to ‘MergeIncludedKeyTypes’
xkbcomp-1.4.7/keytypes.c:353:43: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
xkbcomp-1.4.7/keytypes.c:356:12: branch_true: ...to here
xkbcomp-1.4.7/keytypes.c:356:12: branch_false: following ‘false’ branch (when ‘merge == 0’)...
xkbcomp-1.4.7/keytypes.c:358:14: branch_false: ...to here
xkbcomp-1.4.7/keytypes.c:358:14: call_function: calling ‘AddKeyType’ from ‘MergeIncludedKeyTypes’
# 225| type->defs.fileID = info->fileID;
# 226| type->dpy = info->dpy;
# 227|-> info->types = (KeyTypeInfo *) AddCommonInfo(&info->types->defs,
# 228| (CommonInfo *) type);
# 229| info->nTypes++;
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/keytypes.c:573:26: warning[-Wanalyzer-malloc-leak]: leak of ‘old’
xkbcomp-1.4.7/keytypes.c:1170:1: enter_function: entry to ‘CompileKeyTypes’
xkbcomp-1.4.7/keytypes.c:1176:5: call_function: calling ‘InitKeyTypesInfo’ from ‘CompileKeyTypes’
xkbcomp-1.4.7/keytypes.c:1176:5: return_function: returning to ‘CompileKeyTypes’ from ‘InitKeyTypesInfo’
xkbcomp-1.4.7/keytypes.c:1178:5: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
# 571| old->matchingMapIndex = -1;
# 572| type->preserve =
# 573|-> (PreserveInfo *) AddCommonInfo(&type->preserve->defs, &old->defs);
# 574| return True;
# 575| }
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/symbols.c:430:21: warning[-Wanalyzer-malloc-leak]: leak of ‘resultSyms’
xkbcomp-1.4.7/symbols.c:695:1: enter_function: entry to ‘MergeIncludedSymbols’
xkbcomp-1.4.7/symbols.c:711:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
xkbcomp-1.4.7/symbols.c:713:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:719:35: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:721:12: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:721:12: branch_true: following ‘true’ branch (when ‘merge != 0’)...
xkbcomp-1.4.7/symbols.c:722:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:723:14: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 428| if (report)
# 429| {
# 430|-> WARN
# 431| ("Multiple actions for level %d/group %d on key %s\n",
# 432| i + 1, group + 1, longText(into->name, XkbMessage));
Error: GCC_ANALYZER_WARNING (CWE-401):
xkbcomp-1.4.7/symbols.c:433:21: warning[-Wanalyzer-malloc-leak]: leak of ‘resultSyms’
xkbcomp-1.4.7/symbols.c:695:1: enter_function: entry to ‘MergeIncludedSymbols’
xkbcomp-1.4.7/symbols.c:711:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
xkbcomp-1.4.7/symbols.c:713:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:719:35: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:721:12: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:721:12: branch_true: following ‘true’ branch (when ‘merge != 0’)...
xkbcomp-1.4.7/symbols.c:722:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:723:14: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 431| ("Multiple actions for level %d/group %d on key %s\n",
# 432| i + 1, group + 1, longText(into->name, XkbMessage));
# 433|-> ACTION("Using %s, ignoring %s\n",
# 434| XkbActionTypeText(use->type, XkbMessage),
# 435| XkbActionTypeText(ignore->type, XkbMessage));
Error: GCC_ANALYZER_WARNING (CWE-476):
xkbcomp-1.4.7/symbols.c:434:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘use’
xkbcomp-1.4.7/symbols.c:695:1: enter_function: entry to ‘MergeIncludedSymbols’
xkbcomp-1.4.7/symbols.c:711:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
xkbcomp-1.4.7/symbols.c:713:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:719:35: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:721:12: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:721:12: branch_true: following ‘true’ branch (when ‘merge != 0’)...
xkbcomp-1.4.7/symbols.c:722:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:723:14: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 432| i + 1, group + 1, longText(into->name, XkbMessage));
# 433| ACTION("Using %s, ignoring %s\n",
# 434|-> XkbActionTypeText(use->type, XkbMessage),
# 435| XkbActionTypeText(ignore->type, XkbMessage));
# 436| }
Error: GCC_ANALYZER_WARNING (CWE-476):
xkbcomp-1.4.7/symbols.c:435:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ignore’
xkbcomp-1.4.7/symbols.c:695:1: enter_function: entry to ‘MergeIncludedSymbols’
xkbcomp-1.4.7/symbols.c:711:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
xkbcomp-1.4.7/symbols.c:713:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:719:35: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:721:12: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:721:12: branch_true: following ‘true’ branch (when ‘merge != 0’)...
xkbcomp-1.4.7/symbols.c:722:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:723:14: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 433| ACTION("Using %s, ignoring %s\n",
# 434| XkbActionTypeText(use->type, XkbMessage),
# 435|-> XkbActionTypeText(ignore->type, XkbMessage));
# 436| }
# 437| resultActs[i] = *use;
Error: GCC_ANALYZER_WARNING (CWE-476):
xkbcomp-1.4.7/symbols.c:437:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘use’
xkbcomp-1.4.7/symbols.c:695:1: enter_function: entry to ‘MergeIncludedSymbols’
xkbcomp-1.4.7/symbols.c:711:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
xkbcomp-1.4.7/symbols.c:713:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:713:12: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:715:16: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:715:16: branch_true: following ‘true’ branch (when ‘merge != 1’)...
xkbcomp-1.4.7/symbols.c:716:17: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:719:35: branch_true: following ‘true’ branch...
xkbcomp-1.4.7/symbols.c:721:12: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:721:12: branch_true: following ‘true’ branch (when ‘merge != 0’)...
xkbcomp-1.4.7/symbols.c:722:13: branch_true: ...to here
xkbcomp-1.4.7/symbols.c:723:14: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 435| XkbActionTypeText(ignore->type, XkbMessage));
# 436| }
# 437|-> resultActs[i] = *use;
# 438| }
# 439| }