Task #131757 - added.err

back to task #131757
download
Error: GCC_ANALYZER_WARNING (CWE-401):
libsemanage-3.11/src/conf-parse.c:1098:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libsemanage-3.11/src/conf-parse.c:1056:6: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: following ‘false’ branch (when ‘yystate != 75’)...
libsemanage-3.11/src/conf-parse.c:1123:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1135:6: branch_false: following ‘false’ branch (when ‘yyn != -54’)...
libsemanage-3.11/src/conf-parse.c:1141:7: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1141:6: branch_true: following ‘true’ branch...
libsemanage-3.11/src/conf-parse.c:1144:16: branch_true: ...to here
libsemanage-3.11/src/conf-parse.c:1153:11: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1165:17: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1172:6: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1175:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
libsemanage-3.11/src/conf-parse.c:1192:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1056:6: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: following ‘false’ branch (when ‘yystate != 75’)...
libsemanage-3.11/src/conf-parse.c:1123:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1135:6: branch_false: following ‘false’ branch (when ‘yyn != -54’)...
libsemanage-3.11/src/conf-parse.c:1141:7: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1141:6: branch_true: following ‘true’ branch...
libsemanage-3.11/src/conf-parse.c:1144:16: branch_true: ...to here
libsemanage-3.11/src/conf-parse.c:1172:6: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1175:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
libsemanage-3.11/src/conf-parse.c:1192:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1056:6: branch_true: following ‘true’ branch...
libsemanage-3.11/src/conf-parse.c:1062:28: branch_true: ...to here
libsemanage-3.11/src/conf-parse.c:1085:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
libsemanage-3.11/src/conf-parse.c:1087:7: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1094:11: acquire_memory: allocated here
libsemanage-3.11/src/conf-parse.c:1096:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
libsemanage-3.11/src/conf-parse.c:1098:9: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1101:12: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1101:12: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1114:10: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1120:6: branch_false: following ‘false’ branch (when ‘yystate != 75’)...
libsemanage-3.11/src/conf-parse.c:1123:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1135:6: branch_false: following ‘false’ branch (when ‘yyn != -54’)...
libsemanage-3.11/src/conf-parse.c:1141:7: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1141:6: branch_true: following ‘true’ branch...
libsemanage-3.11/src/conf-parse.c:1144:16: branch_true: ...to here
libsemanage-3.11/src/conf-parse.c:1172:6: branch_false: following ‘false’ branch...
libsemanage-3.11/src/conf-parse.c:1175:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1185:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
libsemanage-3.11/src/conf-parse.c:1192:3: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1056:6: branch_true: following ‘true’ branch...
libsemanage-3.11/src/conf-parse.c:1062:28: branch_true: ...to here
libsemanage-3.11/src/conf-parse.c:1085:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
libsemanage-3.11/src/conf-parse.c:1087:7: branch_false: ...to here
libsemanage-3.11/src/conf-parse.c:1098:9: danger: ‘yyptr’ leaks here; was allocated at [(35)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/34)
# 1096|           if (! yyptr)
# 1097|             YYNOMEM;
# 1098|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1099|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1100|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-401):
libsemanage-3.11/src/semanage_store.c:1322:46: warning[-Wanalyzer-malloc-leak]: leak of ‘split_args(*e.path, *e.args,  new_name,  old_name)’
libsemanage-3.11/src/semanage_store.c:2295:5: enter_function: entry to ‘semanage_verify_kernel’
libsemanage-3.11/src/semanage_store.c:2299:17: call_function: inlined call to ‘semanage_final_path’ from ‘semanage_verify_kernel’
libsemanage-3.11/src/semanage_store.c:2300:26: branch_true: ...to here
libsemanage-3.11/src/semanage_store.c:2302:12: branch_false: following ‘false’ branch...
libsemanage-3.11/src/semanage_store.c:2302:12: branch_false: ...to here
libsemanage-3.11/src/semanage_store.c:2305:37: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
libsemanage-3.11/src/semanage_store.c:2306:21: branch_true: ...to here
libsemanage-3.11/src/semanage_store.c:2306:21: call_function: calling ‘semanage_exec_prog’ from ‘semanage_verify_kernel’
# 1320|   	char **a;
# 1321|   
# 1322|-> 	a = realloc(*argv, sizeof(**argv) * (*num_args + 1));
# 1323|   	if (a == NULL)
# 1324|   		return -1;