Task #20079 - crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan.log

back to task #20079
download
<...trimmed, download required for full log>
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (24) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (25) assuming 'calloc(1, 40)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (34) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (35) 'make_runtime_spec_schema_config_windows_resources_storage(get_val(tree, "storage", 3), ctx,  err)' leaks here; was allocated at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows_resources_storage': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:8: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:455:16: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:458:12: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (36) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (37) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (38) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:464:24: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:471:37: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:472:16: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:9: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:23: note: (44) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:496:27: note: (45) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (46) following 'false' branch... <--[gcc]
cc1: note: (47) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (48) 'resi' leaks here; was allocated at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (20) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (21) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (22) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:386:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:387:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:408:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:409:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:430:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:431:12: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:451:8: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:455:16: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:458:12: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:460:20: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:461:16: note: (36) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:464:24: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:465:35: note: (38) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (39) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:466:16: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:471:37: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:472:16: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:9: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:479:23: note: (44) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:496:27: note: (45) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (46) following 'false' branch... <--[gcc]
cc1: note: (47) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:499:12: note: (48) '<unknown>' leaks here; was allocated at (38) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'make_runtime_spec_schema_config_windows': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: warning: leak of 'make_runtime_spec_schema_config_windows_resources(get_val(tree, "resources", 3), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1332:1: note: (1) entry to 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1337:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1339:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1340:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1344:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (6) calling 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:591:1: note: (7) entry to 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:596:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:598:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:599:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:601:19: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:8: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:29: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:604:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:8: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:29: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:605:26: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (22) calling 'make_runtime_spec_schema_config_windows_resources_storage' from 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:374:1: note: (23) entry to 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:379:8: note: (24) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:381:11: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:382:8: note: (26) following 'true' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:607:20: note: (28) returning to 'make_runtime_spec_schema_config_windows_resources' from 'make_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:8: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:33: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:608:30: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:611:13: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1390:22: note: (33) returning to 'make_runtime_spec_schema_config_windows' from 'make_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:602:32: note: (34) 'make_runtime_spec_schema_config_windows_resources(get_val(tree, "resources", 3), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c: In function 'clone_runtime_spec_schema_config_windows': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: warning: leak of 'clone_runtime_spec_schema_config_windows_resources(*src.resources)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:743:11: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (13) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (20) following 'false' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (22) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (23) 'clone_runtime_spec_schema_config_windows_resources(*src.resources)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_resources_memory' from 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:143:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_resources_memory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:147:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:148:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:148:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:150:21: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:748:23: note: (22) returning to 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows_resources_memory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:749:12: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (27) following 'false' branch... <--[gcc]
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (29) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (30) '<unknown>' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (10) calling 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:739:1: note: (11) entry to 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:744:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:12: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:746:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:12: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:752:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:12: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:758:8: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (20) calling 'clone_runtime_spec_schema_config_windows_resources_storage' from 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:573:1: note: (21) entry to 'clone_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:577:11: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:578:8: note: (23) assuming 'calloc(1, 40)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:578:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:580:20: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:760:24: note: (26) returning to 'clone_runtime_spec_schema_config_windows_resources' from 'clone_runtime_spec_schema_config_windows_resources_storage' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: note: (27) following 'false' branch... <--[gcc]
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1735:26: note: (29) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:761:12: note: (30) '<unknown>' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: warning: leak of 'clone_runtime_spec_schema_config_windows_network(*src.network)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (12) calling 'clone_runtime_spec_schema_config_windows_network' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1082:1: note: (13) entry to 'clone_runtime_spec_schema_config_windows_network' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1086:11: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (15) assuming 'calloc(1, 72)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1105:43: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1107:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (26) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_network' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (27) 'clone_runtime_spec_schema_config_windows_network(*src.network)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (12) calling 'clone_runtime_spec_schema_config_windows_network' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1082:1: note: (13) entry to 'clone_runtime_spec_schema_config_windows_network' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1087:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:12: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1089:8: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1091:37: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1092:30: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1093:12: note: (19) assuming 'calloc(*src.endpoint_list_len + 1, 8)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1093:12: note: (20) following 'false' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1107:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1123:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (26) following 'false' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1741:24: note: (28) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_network' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1129:8: note: (29) '<unknown>' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: warning: leak of 'clone_runtime_spec_schema_config_windows_hyperv(*src.hyperv)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1751:25: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1755:8: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_hyperv' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1314:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_hyperv' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1318:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:8: note: (22) following 'false' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (24) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_hyperv' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (25) 'clone_runtime_spec_schema_config_windows_hyperv(*src.hyperv)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1697:1: note: (1) entry to 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1702:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1704:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1720:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1733:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1739:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1745:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1751:25: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1755:8: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (16) calling 'clone_runtime_spec_schema_config_windows_hyperv' from 'clone_runtime_spec_schema_config_windows' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1314:1: note: (17) entry to 'clone_runtime_spec_schema_config_windows_hyperv' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1319:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:12: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1321:8: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1323:32: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1323:32: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (23) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1757:23: note: (26) returning to 'clone_runtime_spec_schema_config_windows' from 'clone_runtime_spec_schema_config_windows_hyperv' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_windows.c:1324:12: note: (27) '<unknown>' leaks here; was allocated at (22) <--[gcc]
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_defs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_defs.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs.lo src/ocispec/runtime_spec_schema_defs.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs.Tpo -c src/ocispec/runtime_spec_schema_defs.c -o src/ocispec/runtime_spec_schema_defs.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_defs_linux.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_defs_linux.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_linux.lo src/ocispec/runtime_spec_schema_defs_linux.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_linux.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_linux.Tpo -c src/ocispec/runtime_spec_schema_defs_linux.c -o src/ocispec/runtime_spec_schema_defs_linux.o
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c: In function 'make_runtime_spec_schema_defs_mount': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:319: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:326: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:957: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:963: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:970: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: warning: leak of 'make_runtime_spec_schema_defs_id_mapping(val,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (23) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (32) returning to 'make_runtime_spec_schema_defs_mount' from 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (33) 'make_runtime_spec_schema_defs_id_mapping(val,  ctx,  err)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: warning: leak of 'make_runtime_spec_schema_defs_id_mapping(val,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:674:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:677:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:681:16: note: (14) following 'false' branch... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:683:27: note: (16) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:685:38: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:686:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (23) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:686:40: note: (32) returning to 'make_runtime_spec_schema_defs_mount' from 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (33) 'make_runtime_spec_schema_defs_id_mapping(val,  ctx,  err)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c: In function 'make_runtime_spec_schema_defs_id_mapping': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:441:16: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:444:12: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (34) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (35) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (36) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:450:24: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (38) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:457:37: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:458:16: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:9: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:23: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:482:27: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (44) following 'false' branch... <--[gcc]
cc1: note: (45) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (46) 'resi' leaks here; was allocated at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:577:1: note: (1) entry to 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:582:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:584:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:585:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:589:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:590:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:601:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:602:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:613:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:640:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:651:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:652:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:655:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:659:16: note: (14) following 'false' branch... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:661:27: note: (16) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:663:38: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:664:40: note: (18) calling 'make_runtime_spec_schema_defs_id_mapping' from 'make_runtime_spec_schema_defs_mount' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:360:1: note: (19) entry to 'make_runtime_spec_schema_defs_id_mapping' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:365:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:367:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:368:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:372:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:373:12: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:394:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:395:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:416:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:417:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:437:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:441:16: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:444:12: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:446:20: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:447:16: note: (34) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:450:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:451:35: note: (36) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (37) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:452:16: note: (38) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:457:37: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:458:16: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:9: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:465:23: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:482:27: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (44) following 'false' branch... <--[gcc]
cc1: note: (45) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs.c:485:12: note: (46) '<unknown>' leaks here; was allocated at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:212: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:219: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:484: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:798: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1181: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1187: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2119: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2129: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2309: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2663: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2669: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_syscall': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_defs_linux_syscall_arg(val,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:491:1: note: (1) entry to 'make_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:496:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:498:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:499:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:503:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:530:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:541:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:542:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:563:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:564:12: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:567:20: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:571:16: note: (12) following 'false' branch... <--[gcc]
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:573:27: note: (14) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:575:38: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (16) calling 'make_runtime_spec_schema_defs_linux_syscall_arg' from 'make_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:235:1: note: (17) entry to 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (21) assuming 'calloc(1, 48)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:248:12: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:269:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:270:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:291:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:292:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:313:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (36) returning to 'make_runtime_spec_schema_defs_linux_syscall' from 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (37) 'make_runtime_spec_schema_defs_linux_syscall_arg(val,  ctx,  err)' leaks here; was allocated at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:491:1: note: (1) entry to 'make_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:496:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:498:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:499:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:503:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:530:12: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:541:24: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:542:12: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:563:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:564:12: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:567:20: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:571:16: note: (12) following 'false' branch... <--[gcc]
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:573:27: note: (14) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:575:38: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (16) calling 'make_runtime_spec_schema_defs_linux_syscall_arg' from 'make_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:235:1: note: (17) entry to 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (18) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:248:12: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:269:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:270:12: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:291:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:292:12: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:313:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:317:23: note: (30) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (31) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:576:32: note: (36) returning to 'make_runtime_spec_schema_defs_linux_syscall' from 'make_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: note: (37) '<unknown>' leaks here; was allocated at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_syscall_arg': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:240:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:242:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:243:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:247:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:314:12: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:316:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:318:16: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:12: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:323:8: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:13: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:330:8: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:334:16: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:337:12: note: (13) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:339:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:339:20: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:340:16: note: (16) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:340:16: note: (17) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:343:24: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:345:16: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:350:37: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:351:16: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:23: note: (23) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:360:39: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:360:16: note: (25) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:361:20: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:361:17: note: (27) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:362:20: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:362:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:363:20: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:363:17: note: (31) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:364:20: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:364:20: note: (33) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:366:35: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:358:23: note: (35) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:376:27: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: note: (37) following 'false' branch... <--[gcc]
cc1: note: (38) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:379:12: note: (39) 'resi' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'clone_runtime_spec_schema_defs_linux_syscall': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: warning: leak of 'clone_runtime_spec_schema_defs_linux_syscall_arg(*<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:786:1: note: (1) entry to 'clone_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:791:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:815:25: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:817:8: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:819:28: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:821:12: note: (10) following 'false' branch... <--[gcc]
cc1: note: (11) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:823:30: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:81: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (14) calling 'clone_runtime_spec_schema_defs_linux_syscall_arg' from 'clone_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:467:1: note: (15) entry to 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:471:11: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (17) assuming 'calloc(1, 48)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:480:8: note: (20) following 'false' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (22) returning to 'clone_runtime_spec_schema_defs_linux_syscall' from 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (23) 'clone_runtime_spec_schema_defs_linux_syscall_arg(*<unknown>)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:786:1: note: (1) entry to 'clone_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:791:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:793:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:809:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:815:25: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:817:8: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:819:28: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:821:12: note: (10) following 'false' branch... <--[gcc]
cc1: note: (11) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:823:30: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:81: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (14) calling 'clone_runtime_spec_schema_defs_linux_syscall_arg' from 'clone_runtime_spec_schema_defs_linux_syscall' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:467:1: note: (15) entry to 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:472:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:474:21: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:480:8: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:482:19: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:482:19: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (21) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (22) following 'false' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:825:28: note: (24) returning to 'clone_runtime_spec_schema_defs_linux_syscall' from 'clone_runtime_spec_schema_defs_linux_syscall_arg' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:483:12: note: (25) '<unknown>' leaks here; was allocated at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1209:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1211:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1212:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1216:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1239:12: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1259:13: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1259:8: note: (7) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1263:16: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1266:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1268:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1268:20: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1269:16: note: (12) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1269:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1272:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1274:16: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1279:37: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1280:16: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:23: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1289:39: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1289:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1290:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1290:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1291:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1291:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1293:35: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1287:23: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1303:27: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: note: (29) following 'false' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1306:12: note: (31) 'resi' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device_weight': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1389:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1391:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1392:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1396:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1463:12: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1483:13: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1483:8: note: (7) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1487:16: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1490:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1492:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1492:20: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1493:16: note: (12) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1493:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1496:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1498:16: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1503:37: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1504:16: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:23: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1513:39: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1513:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1514:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1514:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1515:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1515:17: note: (25) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1516:20: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1516:17: note: (27) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1517:20: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1517:20: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1519:35: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1511:23: note: (31) following 'falmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_defs_vm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_defs_vm.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_vm.lo src/ocispec/runtime_spec_schema_defs_vm.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_vm.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_vm.Tpo -c src/ocispec/runtime_spec_schema_defs_vm.c -o src/ocispec/runtime_spec_schema_defs_vm.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_defs_zos.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_defs_zos.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_zos.lo src/ocispec/runtime_spec_schema_defs_zos.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_zos.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_zos.Tpo -c src/ocispec/runtime_spec_schema_defs_zos.c -o src/ocispec/runtime_spec_schema_defs_zos.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_state_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_state_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_state_schema.lo src/ocispec/runtime_spec_schema_state_schema.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_state_schema.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_state_schema.Tpo -c src/ocispec/runtime_spec_schema_state_schema.c -o src/ocispec/runtime_spec_schema_state_schema.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_defs_windows.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_defs_windows.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_defs_windows.lo src/ocispec/runtime_spec_schema_defs_windows.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_defs_windows.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_defs_windows.Tpo -c src/ocispec/runtime_spec_schema_defs_windows.c -o src/ocispec/runtime_spec_schema_defs_windows.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_double_array_item.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_double_array_item.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_double_array_item.lo src/ocispec/basic_test_double_array_item.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array_item.lo -MD -MP -MF src/ocispec/.deps/basic_test_double_array_item.Tpo -c src/ocispec/basic_test_double_array_item.c -o src/ocispec/basic_test_double_array_item.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_array_int.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_array_int.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_array_int.lo src/ocispec/basic_test_top_array_int.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_int.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_array_int.Tpo -c src/ocispec/basic_test_top_array_int.c -o src/ocispec/basic_test_top_array_int.o
se' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1529:27: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: note: (33) following 'false' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1532:12: note: (35) 'resi' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_block_io_device_throttle': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1643:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1645:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1646:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1650:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1695:12: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1715:13: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1715:8: note: (7) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1719:16: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1722:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1724:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1724:20: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1725:16: note: (12) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1725:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1728:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1730:16: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1735:37: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1736:16: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:23: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1745:39: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1745:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1746:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1746:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1747:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1747:17: note: (25) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1748:20: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1748:20: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1750:35: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1743:23: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1760:27: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: note: (31) following 'false' branch... <--[gcc]
cc1: note: (32) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:1763:12: note: (33) 'resi' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_network_interface_priority': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2141:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2143:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2144:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2148:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2149:12: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2151:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2153:16: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2160:24: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2161:12: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2180:12: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2180:8: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2187:13: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2187:8: note: (13) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2191:16: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2194:12: note: (15) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2196:20: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2196:20: note: (17) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2197:16: note: (18) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2197:16: note: (19) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2200:24: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2202:16: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2207:37: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2208:16: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2215:9: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2215:23: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2217:39: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2217:16: note: (27) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2218:20: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2218:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2219:20: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2219:20: note: (31) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2221:35: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: note: (33) following 'false' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2234:12: note: (35) 'resi' leaks here; was allocated at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_rdma': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2323:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2325:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2326:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2330:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2353:12: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2373:13: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2373:8: note: (7) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2377:16: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2380:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2382:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2382:20: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2383:16: note: (12) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2383:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2386:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2388:16: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2393:37: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2394:16: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:23: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2403:39: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2403:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2404:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2404:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2405:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2405:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2407:35: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2401:23: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2417:27: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: note: (29) following 'false' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2420:12: note: (31) 'resi' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_namespace_reference': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2503:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2505:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2506:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2510:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2511:12: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2513:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2515:16: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2522:24: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2523:12: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2532:12: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2532:8: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2539:13: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2539:8: note: (13) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2543:16: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2546:12: note: (15) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2548:20: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2548:20: note: (17) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2549:16: note: (18) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2549:16: note: (19) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2552:24: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2554:16: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2559:37: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2560:16: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2567:9: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2567:23: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2569:39: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2569:16: note: (27) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2570:20: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2570:17: note: (29) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2571:20: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2571:20: note: (31) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2573:35: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: note: (33) following 'false' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2586:12: note: (35) 'resi' leaks here; was allocated at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c: In function 'make_runtime_spec_schema_defs_linux_time_offsets': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2681:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2683:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2684:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2688:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2711:12: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2731:13: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2731:8: note: (7) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2735:16: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2738:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2740:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2740:20: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2741:16: note: (12) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2741:16: note: (13) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2744:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2746:16: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2751:37: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2752:16: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:23: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2761:39: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2761:16: note: (21) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2762:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2762:17: note: (23) following 'true' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2763:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2763:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2765:35: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2759:23: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2775:27: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: note: (29) following 'false' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_linux.c:2778:12: note: (31) 'resi' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:360: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_zos.c:366: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:316: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:322: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:328: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:336: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_state_schema.c:340: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:185: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:191: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c: In function 'make_runtime_spec_schema_defs_windows_device': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:19:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:21:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:22:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:26:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:27:12: note: (5) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:31:16: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:38:24: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:39:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:43:16: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:12: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:8: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:12: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:8: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:13: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:8: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:65:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:68:12: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (21) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:74:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:75:35: note: (23) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (24) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:81:37: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:82:16: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:89:9: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (29) following 'false' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (31) '<unknown>' leaks here; was allocated at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:19:8: note: (1) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:21:11: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:22:8: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:26:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:27:12: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:31:16: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:38:24: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:39:12: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:43:16: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:12: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:48:8: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:12: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:54:8: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:13: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:61:8: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:65:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:68:12: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:70:20: note: (21) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (22) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:71:16: note: (23) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:74:24: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:76:16: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:81:37: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:82:16: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:89:9: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (29) following 'false' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_defs_windows.c:108:12: note: (31) 'resi' leaks here; was allocated at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:214: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (1) entry to 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (6) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (7) entry to 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (20) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (21) 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:243:1: note: (1) entry to 'basic_test_double_array_item_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:248:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:251:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:253:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (6) calling 'basic_test_double_array_item_parse_data' from 'basic_test_double_array_item_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (7) entry to 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (12) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (13) entry to 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (14) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (17) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (26) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:265:84: note: (27) inlined call to 'yajl_tree_free_function' from 'basic_test_double_array_item_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_double_array_item_parse_data' at src/ocispec/basic_test_double_array_item.c:265:84:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:261:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:261:36: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:258:7: note: (30) returning to 'basic_test_double_array_item_parse_file_stream' from 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (31) 'basic_test_double_array_item_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:63:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c: In function 'basic_test_double_array_item_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: warning: leak of 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:263:33: note: (1) entry to 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:269:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:272:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:277:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (6) calling 'make_basic_test_double_array_item' from 'basic_test_double_array_item_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:14:1: note: (7) entry to 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (11) assuming 'calloc(1, 32)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:27:12: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:38:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:39:12: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:60:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:61:12: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:68:19: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:69:16: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:283:7: note: (22) returning to 'basic_test_double_array_item_parse_data' from 'make_basic_test_double_array_item' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array_item.c:78:13: note: (23) 'make_basic_test_double_array_item(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: warning: leak of 'make_basic_test_top_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (1) entry to 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (6) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (13) assuming 'calloc(1, 16)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (18) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: note: (19) 'make_basic_test_top_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: warning: leak of 'basic_test_top_array_int_container_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:133:1: note: (1) entry to 'basic_test_top_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:138:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:141:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:143:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (6) calling 'basic_test_top_array_int_container_parse_data' from 'basic_test_top_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (7) entry to 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (12) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (24) returning to 'basic_test_top_array_int_container_parmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_features_linux.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_features_linux.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_features_linux.lo src/ocispec/runtime_spec_schema_features_linux.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_linux.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_features_linux.Tpo -c src/ocispec/runtime_spec_schema_features_linux.c -o src/ocispec/runtime_spec_schema_features_linux.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/runtime_spec_schema_features_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/runtime_spec_schema_features_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/runtime_spec_schema_features_schema.lo src/ocispec/runtime_spec_schema_features_schema.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/runtime_spec_schema_features_schema.lo -MD -MP -MF src/ocispec/.deps/runtime_spec_schema_features_schema.Tpo -c src/ocispec/runtime_spec_schema_features_schema.c -o src/ocispec/runtime_spec_schema_features_schema.o
se_data' from 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (25) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:8: <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (28) returning to 'basic_test_top_array_int_container_parse_file_stream' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:15: note: (29) 'basic_test_top_array_int_container_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:35:19: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (1) entry to 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (6) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (15) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (18) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:35:19: note: (19) '<unknown>' leaks here; was allocated at (14) <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:133:1: note: (1) entry to 'basic_test_top_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:138:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:141:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:143:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (6) calling 'basic_test_top_array_int_container_parse_data' from 'basic_test_top_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:153:39: note: (7) entry to 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:159:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:162:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:167:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (12) calling 'make_basic_test_top_array_int_container' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:27:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:29:18: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (21) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:173:7: note: (24) returning to 'basic_test_top_array_int_container_parse_data' from 'make_basic_test_top_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (25) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c: In function 'basic_test_top_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:148:7: note: (28) returning to 'basic_test_top_array_int_container_parse_file_stream' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:155:90: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_int_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_array_int_container_parse_data' at src/ocispec/basic_test_top_array_int.c:155:90:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_int.c:151:36: note: (30) '<unknown>' leaks here; was allocated at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:766: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1422: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1435: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1442: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1448: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1533: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1886: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c: In function 'make_runtime_spec_schema_features_linux': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (24) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (25) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:29:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:34:19: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:35:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:45:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (26) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (27) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:48:23: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1540:1: note: (1) entry to 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1545:8: note: (2) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1547:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1548:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1552:24: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (6) calling 'make_runtime_spec_schema_features_linux_cgroup' from 'make_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (11) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:27:12: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:34:19: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:35:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:45:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:46:12: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:53:19: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:54:16: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:64:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:65:12: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:84:12: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:86:33: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:103:12: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:105:25: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1602:19: note: (28) returning to 'make_runtime_spec_schema_features_linux' from 'make_runtime_spec_schema_features_linux_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (29) 'make_runtime_spec_schema_features_linux_cgroup(get_val(tree, "cgroup", 3), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:67:28: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c: In function 'clone_runtime_spec_schema_features_linux': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: warning: leak of 'clone_runtime_spec_schema_features_linux_seccomp(*src.seccomp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (12) calling 'clone_runtime_spec_schema_features_linux_seccomp' from 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:752:1: note: (13) entry to 'clone_runtime_spec_schema_features_linux_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:756:11: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (15) assuming 'calloc(1, 104)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:761:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:12: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (26) following 'false' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (28) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (29) 'clone_runtime_spec_schema_features_linux_seccomp(*src.seccomp)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (12) calling 'clone_runtime_spec_schema_features_linux_seccomp' from 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:752:1: note: (13) entry to 'clone_runtime_spec_schema_features_linux_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:757:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:759:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:761:8: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:763:31: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:764:24: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:765:12: note: (19) assuming 'calloc(*src.actions_len + 1, 8)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:765:12: note: (20) following 'false' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:777:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:793:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:809:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:12: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (28) following 'false' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1921:24: note: (30) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:825:8: note: (31) '<unknown>' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: warning: leak of 'clone_runtime_spec_schema_features_linux_mount_extensions(*src.mount_extensions)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:12: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:12: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:12: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:8: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (20) calling 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1522:1: note: (21) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1526:11: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (23) assuming 'calloc(1, 16)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:8: note: (26) following 'false' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (28) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (29) 'clone_runtime_spec_schema_features_linux_mount_extensions(*src.mount_extensions)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1874:1: note: (1) entry to 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1879:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1881:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1897:8: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1913:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1919:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1925:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:12: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1931:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:12: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1937:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:12: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1943:8: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (20) calling 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1522:1: note: (21) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1527:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1529:8: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (26) calling 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1396:1: note: (27) entry to 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1400:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1401:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1401:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1403:23: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1531:22: note: (32) returning to 'clone_runtime_spec_schema_features_linux_mount_extensions' from 'clone_runtime_spec_schema_features_linux_mount_extensions_idmap' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: note: (33) following 'false' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1945:33: note: (35) returning to 'clone_runtime_spec_schema_features_linux' from 'clone_runtime_spec_schema_features_linux_mount_extensions' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_linux.c:1532:12: note: (36) '<unknown>' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:431: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:437: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:444: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c: In function 'runtime_spec_schema_features_schema_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: warning: leak of 'make_runtime_spec_schema_features_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (11) assuming 'calloc(1, 88)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (28) returning to 'runtime_spec_schema_features_schema_parse_data' from 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (29) 'make_runtime_spec_schema_features_schema(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:30:36: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (15) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (28) returning to 'runtime_spec_schema_features_schema_parse_data' from 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (29) '<unknown>' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c: In function 'make_runtime_spec_schema_features_schema': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: warning: leak of 'resi' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schemmake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/image_manifest_items_image_manifest_items_schema.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/image_manifest_items_image_manifest_items_schema.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/image_manifest_items_image_manifest_items_schema.lo src/ocispec/image_manifest_items_image_manifest_items_schema.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/image_manifest_items_image_manifest_items_schema.lo -MD -MP -MF src/ocispec/.deps/image_manifest_items_image_manifest_items_schema.Tpo -c src/ocispec/image_manifest_items_image_manifest_items_schema.c -o src/ocispec/image_manifest_items_image_manifest_items_schema.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_double_array.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_double_array.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_double_array.lo src/ocispec/basic_test_double_array.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_double_array.lo -MD -MP -MF src/ocispec/.deps/basic_test_double_array.Tpo -c src/ocispec/basic_test_double_array.c -o src/ocispec/basic_test_double_array.o
a_features_schema.c:38:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:164:16: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:167:12: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (30) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (31) assuming 'resi' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (32) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:173:24: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:180:37: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:181:16: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:188:9: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (40) 'resi' leaks here; was allocated at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:539:40: note: (1) entry to 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:545:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:548:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:553:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:559:7: note: (6) calling 'make_runtime_spec_schema_features_schema' from 'runtime_spec_schema_features_schema_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:14:1: note: (7) entry to 'make_runtime_spec_schema_features_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:19:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:21:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:22:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:26:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:27:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:31:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:38:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:39:12: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:41:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:43:16: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:50:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:103:12: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:120:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:147:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:153:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:13: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:160:8: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:164:16: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:167:12: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:169:20: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:170:16: note: (30) following 'false' branch (when 'resi' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:173:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:174:35: note: (32) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (33) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:175:16: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:180:37: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:181:16: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:188:9: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_features_schema.c:212:12: note: (40) '<unknown>' leaks here; was allocated at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:256: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:263: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:318: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c: In function 'make_image_manifest_items_image_manifest_items_schema_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: warning: leak of 'make_image_manifest_items_image_manifest_items_schema_element(work,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:428:63: note: (1) entry to 'image_manifest_items_image_manifest_items_schema_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:434:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:437:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:442:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:448:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:448:7: note: (6) calling 'make_image_manifest_items_image_manifest_items_schema_container' from 'image_manifest_items_image_manifest_items_schema_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:302:2: note: (7) entry to 'make_image_manifest_items_image_manifest_items_schema_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:307:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:309:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:311:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:313:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:314:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:316:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:317:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:319:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:322:19: note: (16) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:324:55: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:325:25: note: (18) calling 'make_image_manifest_items_image_manifest_items_schema_element' from 'make_image_manifest_items_image_manifest_items_schema_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:14:1: note: (19) entry to 'make_image_manifest_items_image_manifest_items_schema_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:19:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:21:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:21:11: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:22:8: note: (23) assuming 'calloc(1, 48)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:22:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:26:24: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:27:12: note: (26) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:31:16: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:38:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:39:12: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:42:20: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:46:16: note: (32) following 'false' branch... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:91:12: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:100:12: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:100:8: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:12: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:8: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:325:25: note: (40) returning to 'make_image_manifest_items_image_manifest_items_schema_container' from 'make_image_manifest_items_image_manifest_items_schema_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (41) 'make_image_manifest_items_image_manifest_items_schema_element(work,  ctx,  err)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:428:63: note: (1) entry to 'image_manifest_items_image_manifest_items_schema_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:434:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:437:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:442:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:448:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:448:7: note: (6) calling 'make_image_manifest_items_image_manifest_items_schema_container' from 'image_manifest_items_image_manifest_items_schema_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:302:2: note: (7) entry to 'make_image_manifest_items_image_manifest_items_schema_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:307:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:309:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:311:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:313:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:314:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:316:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:317:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:319:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:322:19: note: (16) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:324:55: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:325:25: note: (18) calling 'make_image_manifest_items_image_manifest_items_schema_element' from 'make_image_manifest_items_image_manifest_items_schema_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:14:1: note: (19) entry to 'make_image_manifest_items_image_manifest_items_schema_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:19:8: note: (20) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:21:11: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:22:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:26:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:27:12: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:29:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:31:16: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:38:24: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:39:12: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:42:20: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:45:27: note: (30) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:46:16: note: (31) assuming 'calloc(len + 1, 8)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:46:16: note: (32) following 'false' branch... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:91:12: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:100:12: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:100:8: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:12: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:8: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:325:25: note: (40) returning to 'make_image_manifest_items_image_manifest_items_schema_container' from 'make_image_manifest_items_image_manifest_items_schema_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/image_manifest_items_image_manifest_items_schema.c:106:8: note: (41) '<unknown>' leaks here; was allocated at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:122: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:675: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: In function 'make_basic_test_double_array': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (34) following 'false' branch... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (36) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (37) 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: warning: leak of 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:34:19: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:35:16: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:45:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (38) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (39) 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: warning: leak of 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:34:19: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:35:16: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:45:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (36) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (40) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (41) 'make_basic_test_double_array_objectarrays_element(*<unknown>,  ctx,  err)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:50:16: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:262:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:265:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:269:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:271:43: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:272:16: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:274:27: note: (18) following 'true' branch (when 'i < len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:276:38: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:279:20: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:281:27: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:282:31: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:103: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (24) calling 'make_basic_test_double_array_objectarrays_element' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:14:1: note: (25) entry to 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:22:8: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:26:24: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:27:12: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:46:12: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:150:49: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:162:29: note: in expansion of macro 'YAJL_IS_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:48:25: note: in expansion of macro 'YAJL_GET_STRING' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:49:27: note: (34) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (35) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:284:47: note: (38) returning to 'make_basic_test_double_array' from 'make_basic_test_double_array_objectarrays_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:50:16: note: (39) '<unknown>' leaks here; was allocated at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: In function 'basic_test_double_array_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:142:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:154:27: note: (20) following 'false' branch (when 'i >= len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:179:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (23) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:142:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:180:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:180:12: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:183:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:187:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:189:40: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:190:16: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:192:27: note: (20) following 'false' branch (when 'i >= len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:226:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (23) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:180:29: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:180:28: note: in expansion of macro 'YAJL_GET_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:328:8: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:148:30: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (15) assuming 'calloc(len + 1, 8)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:154:27: note: (20) following 'false' branch (when 'i >= len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:179:24: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (22) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:328:8: note: (23) '<unknown>' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:328:13: warning: leak of 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_array_string.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_array_string.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_array_string.lo src/ocispec/basic_test_top_array_string.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_array_string.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_array_string.Tpo -c src/ocispec/basic_test_top_array_string.c -o src/ocispec/basic_test_top_array_string.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-2.o -MD -MP -MF $depbase.Tpo -c -o tests/test-2.o tests/test-2.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-1.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-1.o -MD -MP -MF $depbase.Tpo -c -o tests/test-1.o tests/test-1.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/read-file.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/read-file.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/read-file.lo src/ocispec/read-file.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/read-file.lo -MD -MP -MF src/ocispec/.deps/read-file.Tpo -c src/ocispec/read-file.c -o src/ocispec/read-file.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-3.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-3.o -MD -MP -MF $depbase.Tpo -c -o tests/test-3.o tests/test-3.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-4.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-4.o -MD -MP -MF $depbase.Tpo -c -o tests/test-4.o tests/test-4.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-5.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-5.o -MD -MP -MF $depbase.Tpo -c -o tests/test-5.o tests/test-5.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-7.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-7.o -MD -MP -MF $depbase.Tpo -c -o tests/test-7.o tests/test-7.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-6.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-6.o -MD -MP -MF $depbase.Tpo -c -o tests/test-6.o tests/test-6.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-8.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-8.o -MD -MP -MF $depbase.Tpo -c -o tests/test-8.o tests/test-8.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_double_array_string.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_double_array_string.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_string.lo src/ocispec/basic_test_top_double_array_string.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_string.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_string.Tpo -c src/ocispec/basic_test_top_double_array_string.c -o src/ocispec/basic_test_top_double_array_string.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-9.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-9.o -MD -MP -MF $depbase.Tpo -c -o tests/test-9.o tests/test-9.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-11.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-11.o -MD -MP -MF $depbase.Tpo -c -o tests/test-11.o tests/test-11.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_double_array_refobj.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_double_array_refobj.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_refobj.lo src/ocispec/basic_test_top_double_array_refobj.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_refobj.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_refobj.Tpo -c src/ocispec/basic_test_top_double_array_refobj.c -o src/ocispec/basic_test_top_double_array_refobj.o
make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (11) assuming 'calloc(1, 128)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (14) returning to 'basic_test_double_array_parse_data' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:328:13: note: (15) 'make_basic_test_double_array(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: In function 'free_basic_test_double_array': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:395:53: warning: dereference of NULL '*ptr.strarrays_item_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:794:28: note: (1) entry to 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:800:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:803:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:808:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:814:7: note: (6) calling 'make_basic_test_double_array' from 'basic_test_double_array_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:129:1: note: (7) entry to 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:134:8: note: (8) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:136:11: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:137:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:141:24: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:142:12: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:145:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:149:16: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:151:40: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (17) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:152:16: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:131:75: note: (19) inlined call to 'free_basic_test_double_array_function' from 'make_basic_test_double_array' <--[gcc]
In function 'free_basic_test_double_array_function',
    inlined from 'make_basic_test_double_array' at src/ocispec/basic_test_double_array.c:131:75:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:127:53: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:127:53: note: (21) calling 'free_basic_test_double_array' from 'make_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c: In function 'free_basic_test_double_array': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:385:1: note: (22) entry to 'free_basic_test_double_array' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:387:8: note: (23) following 'false' branch (when 'ptr' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:389:12: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:389:8: note: (25) following 'true' branch... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:392:23: note: (27) following 'true' branch... <--[gcc]
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_double_array.c:395:53: note: (29) dereference of NULL '*ptr.strarrays_item_lens + i * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c: In function 'basic_test_top_array_string_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:20:15: warning: leak of 'basic_test_top_array_string_container_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:126:1: note: (1) entry to 'basic_test_top_array_string_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:131:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:134:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:136:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (6) calling 'basic_test_top_array_string_container_parse_data' from 'basic_test_top_array_string_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:146:42: note: (7) entry to 'basic_test_top_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:152:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:155:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:160:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (12) calling 'make_basic_test_top_array_string_container' from 'basic_test_top_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:15:2: note: (13) entry to 'make_basic_test_top_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:26:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:27:8: note: (19) assuming 'calloc(1, 16)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:27:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:29:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:35:19: note: (24) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:37:55: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:39:12: note: (26) following 'false' branch (when 'work' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:35:28: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:35:19: note: (28) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:37:55: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:43:16: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:35:28: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:166:7: note: (32) returning to 'basic_test_top_array_string_container_parse_data' from 'make_basic_test_top_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:148:93: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_array_string_container_parse_data' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:8: <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_array_string_container_parse_data' at src/ocispec/basic_test_top_array_string.c:148:93:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:144:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:144:36: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c: In function 'basic_test_top_array_string_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:141:7: note: (36) returning to 'basic_test_top_array_string_container_parse_file_stream' from 'basic_test_top_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_array_string.c:20:15: note: (37) 'basic_test_top_array_string_container_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-1.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-4.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-7.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-6.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-8.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'basic_test_top_double_array_string_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:15: warning: leak of 'basic_test_top_double_array_string_container_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:153:1: note: (1) entry to 'basic_test_top_double_array_string_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:158:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:161:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:163:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (6) calling 'basic_test_top_double_array_string_container_parse_data' from 'basic_test_top_double_array_string_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (7) entry to 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (12) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (26) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:39:55: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:44:19: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:48:16: note: (32) following 'false' branch (when 'val' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:48:16: note: (36) following 'false' branch (when 'val' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:45:23: note: (38) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:47:32: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:52:20: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:55:30: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (42) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (43) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (44) returning to 'basic_test_top_double_array_string_container_parse_data' from 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:175:100: note: (45) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:8: <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_string_container_parse_data' at src/ocispec/basic_test_top_double_array_string.c:175:100:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (46) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:171:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:171:36: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'basic_test_top_double_array_string_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:168:7: note: (48) returning to 'basic_test_top_double_array_string_container_parse_file_stream' from 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:15: note: (49) 'basic_test_top_double_array_string_container_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:42: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (1) entry to 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (6) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:33:25: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (17) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:17:117: note: (20) inlined call to 'free_basic_test_top_double_array_string_container_function' from 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:13:74: note: (21) inlined call to 'free_basic_test_top_double_array_string_container' from 'free_basic_test_top_double_array_string_container_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_basic_test_top_double_array_string_container',
    inlined from 'free_basic_test_top_double_array_string_container_function' at src/ocispec/basic_test_top_double_array_string.c:13:1,
    inlined from 'make_basic_test_top_double_array_string_container' at src/ocispec/basic_test_top_double_array_string.c:17:117:
cc1: note: (22) calling 'free_basic_test_top_double_array_string_container.part.0' from 'make_basic_test_top_double_array_string_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:64:6: note: (23) entry to 'free_basic_test_top_double_array_string_container.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:71:19: note: (24) following 'true' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:42: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:13: warning: dereference of NULL '*<unknown> + j * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:173:49: note: (1) entry to 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:179:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:182:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:187:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:193:7: note: (6) calling 'make_basic_test_top_double_array_string_container' from 'basic_test_top_double_array_string_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:30:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:32:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:34:8: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:37:19: note: (18) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:39:55: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:40:25: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (21) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:41:12: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:17:117: note: (24) inlined call to 'free_basic_test_top_double_array_string_container_function' from 'make_basic_test_top_double_array_string_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:13:74: note: (25) inlined call to 'free_basic_test_top_double_array_string_container' from 'free_basic_test_top_double_array_string_container_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_basic_test_top_double_array_string_container',
    inlined from 'free_basic_test_top_double_array_string_container_function' at src/ocispec/basic_test_top_double_array_string.c:13:1,
    inlined from 'make_basic_test_top_double_array_string_container' at src/ocispec/basic_test_top_double_array_string.c:17:117:
cc1: note: (26) calling 'free_basic_test_top_double_array_string_container.part.0' from 'make_basic_test_top_double_array_string_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c: In function 'free_basic_test_top_double_array_string_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:64:6: note: (27) entry to 'free_basic_test_top_double_array_string_container.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:71:19: note: (28) following 'true' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:74:23: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:22: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_string.c:76:13: note: (32) dereference of NULL '*<unknown> + j * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-9.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/tests/test-11.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: warning: leak of 'make_basic_test_top_double_array_refobj_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (13) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (22) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: note: (23) 'make_basic_test_top_double_array_refobj_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: warning: leak of 'basic_test_top_double_array_refobj_container_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:148:1: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:153:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:156:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:158:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (6) calling 'basic_test_top_double_array_refobj_container_parse_data' from 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (7) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (12) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (28) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:8: <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (32) returning to 'basic_test_top_double_array_refobj_container_parse_file_stream' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:15: note: (33) 'basic_test_top_double_array_refobj_container_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (15) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (22) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (23) '<unknown>' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'free_basic_test_top_double_array_refobj_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:69:44: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (6) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:33:25: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (17) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:17:117: note: (20) inlined call to 'free_basic_test_top_double_array_refobj_container_function' from 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:13:74: note: (21) inlined call to 'free_basic_test_top_double_array_refobj_container' from 'free_basic_test_top_double_array_refobj_container_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_basic_test_top_double_array_refobj_container',
    inlined from 'free_basic_test_top_double_array_refobj_container_function' at src/ocispec/basic_test_top_double_array_refobj.c:13:1,
    inlined from 'make_basic_test_top_double_array_refobj_container' at src/ocispec/basic_test_top_double_array_refobj.c:17:117:
cc1: note: (22) calling 'free_basic_test_top_double_array_refobj_container.part.0' from 'make_basic_test_top_double_array_refobj_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'free_basic_test_top_double_array_refobj_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:59:6: note: (23) entry to 'free_basic_test_top_double_array_refobj_container.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:66:19: note: (24) following 'true' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:69:44: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:148:1: note: (1) entry to 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:153:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:156:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:158:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (6) calling 'basic_test_top_double_array_refobj_container_parse_data' from 'basic_test_top_double_array_refobj_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:168:49: note: (7) entry to 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:174:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:177:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:182:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (12) calling 'make_basic_test_top_double_array_refobj_container' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:20:9: make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_double_array_int.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_double_array_int.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_int.lo src/ocispec/basic_test_top_double_array_int.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_int.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_int.Tpo -c src/ocispec/basic_test_top_double_array_int.c -o src/ocispec/basic_test_top_double_array_int.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/basic_test_top_double_array_obj.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/basic_test_top_double_array_obj.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/basic_test_top_double_array_obj.lo src/ocispec/basic_test_top_double_array_obj.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/basic_test_top_double_array_obj.lo -MD -MP -MF src/ocispec/.deps/basic_test_top_double_array_obj.Tpo -c src/ocispec/basic_test_top_double_array_obj.c -o src/ocispec/basic_test_top_double_array_obj.o
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo src/ocispec/json_common.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/ocispec/json_common.lo -MD -MP -MF $depbase.Tpo -c -o src/ocispec/json_common.lo src/ocispec/json_common.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/ocispec/json_common.lo -MD -MP -MF src/ocispec/.deps/json_common.Tpo -c src/ocispec/json_common.c -o src/ocispec/json_common.o
note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:27:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:29:18: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (21) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:34:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:188:7: note: (28) returning to 'basic_test_top_double_array_refobj_container_parse_data' from 'make_basic_test_top_double_array_refobj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c: In function 'basic_test_top_double_array_refobj_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:163:7: note: (32) returning to 'basic_test_top_double_array_refobj_container_parse_file_stream' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:170:100: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_refobj_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_refobj_container_parse_data' at src/ocispec/basic_test_top_double_array_refobj.c:170:100:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_refobj.c:166:36: note: (34) '<unknown>' leaks here; was allocated at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:31: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:35: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: warning: leak of 'make_basic_test_top_double_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (1) entry to 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (6) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (13) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (22) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: note: (23) 'make_basic_test_top_double_array_int_container(yajl_tree_parse(jsondata, & errbuf, 1024), ctx,  err)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: warning: leak of 'basic_test_top_double_array_int_container_parse_data(fread_file(stream, & filesize), ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:156:1: note: (1) entry to 'basic_test_top_double_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:161:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:164:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:166:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (6) calling 'basic_test_top_double_array_int_container_parse_data' from 'basic_test_top_double_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (7) entry to 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (12) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (19) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (28) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:8: <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (32) returning to 'basic_test_top_double_array_int_container_parse_file_stream' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:15: note: (33) 'basic_test_top_double_array_int_container_parse_data(fread_file(stream, & filesize), ctx,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_data': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (1) entry to 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (6) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (7) entry to 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (15) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (18) following 'false' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (20) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (22) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (23) '<unknown>' leaks here; was allocated at (14) <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:156:1: note: (1) entry to 'basic_test_top_double_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:161:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:164:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:166:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (6) calling 'basic_test_top_double_array_int_container_parse_data' from 'basic_test_top_double_array_int_container_parse_file_stream' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:176:46: note: (7) entry to 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:182:8: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:185:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:190:8: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (12) calling 'make_basic_test_top_double_array_int_container' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:15:2: note: (13) entry to 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:20:9: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:22:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:24:8: note: (16) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:26:11: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:27:8: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:29:18: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (21) assuming '<unknown>' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:30:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:32:14: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:34:8: note: (24) following 'false' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:37:19: note: (26) following 'false' branch (when 'i >= alen')... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:196:7: note: (28) returning to 'basic_test_top_double_array_int_container_parse_data' from 'make_basic_test_top_double_array_int_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (29) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:41:8: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:1: note: in expansion of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c: In function 'basic_test_top_double_array_int_container_parse_file_stream': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:171:7: note: (32) returning to 'basic_test_top_double_array_int_container_parse_file_stream' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:178:97: note: (33) inlined call to 'yajl_tree_free_function' from 'basic_test_top_double_array_int_container_parse_data' <--[gcc]
In function 'yajl_tree_free_function',
    inlined from 'basic_test_top_double_array_int_container_parse_data' at src/ocispec/basic_test_top_double_array_int.c:178:97:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_int.c:174:36: note: (34) '<unknown>' leaks here; was allocated at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:158: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:182: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:186: error: memleak(CWE-401): Memory leak: ptr <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:8: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'make_basic_test_top_double_array_obj_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: warning: leak of 'make_basic_test_top_double_array_obj_element(*<unknown>,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:195:19: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:196:23: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:84: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (24) calling 'make_basic_test_top_double_array_obj_element' from 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:14:1: note: (25) entry to 'make_basic_test_top_double_array_obj_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:26:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:27:12: note: (32) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:46:12: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:67:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (38) returning to 'make_basic_test_top_double_array_obj_container' from 'make_basic_test_top_double_array_obj_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:156:49: note: (39) 'make_basic_test_top_double_array_obj_element(*<unknown>,  ctx,  err)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:29:26: note: in expansion of macro 'YAJL_IS_TRUE' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: warning: leak of 'make_basic_test_top_double_array_obj_element(*<unknown>,  ctx,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:195:19: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:196:23: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:84: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (24) calling 'make_basic_test_top_double_array_obj_element' from 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:14:1: note: (25) entry to 'make_basic_test_top_double_array_obj_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:19:8: note: (26) following 'false' branch (when 'tree' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:21:11: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (29) assuming 'calloc(1, 24)' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:22:8: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:26:24: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:27:12: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:34:19: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:35:16: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:45:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:46:12: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:67:24: note: (37) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (38) following 'false' branch... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:198:34: note: (40) returning to 'make_basic_test_top_double_array_obj_container' from 'make_basic_test_top_double_array_obj_element' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:68:12: note: (41) 'make_basic_test_top_double_array_obj_element(*<unknown>,  ctx,  err)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:44: warning: dereference of NULL '*ptr.subitem_lens + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:184:25: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (17) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:168:111: note: (20) inlined call to 'free_basic_test_top_double_array_obj_container_function' from 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:164:71: note: (21) inlined call to 'free_basic_test_top_double_array_obj_container' from 'free_basic_test_top_double_array_obj_container_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_basic_test_top_double_array_obj_container',
    inlined from 'free_basic_test_top_double_array_obj_container_function' at src/ocispec/basic_test_top_double_array_obj.c:164:1,
    inlined from 'make_basic_test_top_double_array_obj_container' at src/ocispec/basic_test_top_double_array_obj.c:168:111:
cc1: note: (22) calling 'free_basic_test_top_double_array_obj_container.part.0' from 'make_basic_test_top_double_array_obj_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:210:6: note: (23) entry to 'free_basic_test_top_double_array_obj_container.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:217:19: note: (24) following 'true' branch... <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:44: note: (26) dereference of NULL '*ptr.subitem_lens + i * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:15: warning: dereference of NULL '*<unknown> + j * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:319:46: note: (1) entry to 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:325:8: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:328:10: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:333:8: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:339:7: note: (6) calling 'make_basic_test_top_double_array_obj_container' from 'basic_test_top_double_array_obj_container_parse_data' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:166:2: note: (7) entry to 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:171:9: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:173:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:175:8: note: (10) following 'false' branch (when 'alen != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:177:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:178:8: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:180:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:181:8: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:183:14: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:185:8: note: (16) following 'false' branch... <--[gcc]
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:188:19: note: (18) following 'true' branch (when 'i < alen')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:190:55: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:192:25: note: (20) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (21) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:193:12: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:168:111: note: (24) inlined call to 'free_basic_test_top_double_array_obj_container_function' from 'make_basic_test_top_double_array_obj_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:164:71: note: (25) inlined call to 'free_basic_test_top_double_array_obj_container' from 'free_basic_test_top_double_array_obj_container_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_basic_test_top_double_array_obj_container',
    inlined from 'free_basic_test_top_double_array_obj_container_function' at src/ocispec/basic_test_top_double_array_obj.c:164:1,
    inlined from 'make_basic_test_top_double_array_obj_container' at src/ocispec/basic_test_top_double_array_obj.c:168:111:
cc1: note: (26) calling 'free_basic_test_top_double_array_obj_container.part.0' from 'make_basic_test_top_double_array_obj_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c: In function 'free_basic_test_top_double_array_obj_container.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:210:6: note: (27) entry to 'free_basic_test_top_double_array_obj_container.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:217:19: note: (28) following 'true' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:220:25: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:64: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/basic_test_top_double_array_obj.c:222:15: note: (32) dereference of NULL '*<unknown> + j * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:533: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:539: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:611: error: memleak(CWE-401): Memory leak: keys <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:713: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:718: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:782: error: memleak(CWE-401): Memory leak: keys <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:888: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:894: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1050: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1056: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1345: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1351: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1408: error: memleak(CWE-401): Memory leak: keys <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1414: error: memleak(CWE-401): Memory leak: keys <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1414: error: memleak(CWE-401): Memory leak: vals <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1521: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1528: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1585: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1589: error: memleak(CWE-401): Memory leak: ret <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1479:11: warning: dereference of NULL '*map.keys + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1569:1: note: (1) entry to 'clone_map_string_string' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1574:6: note: (2) following 'false' branch (when 'src' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1577:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1581:17: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1583:15: note: (6) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1584:6: note: (7) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1584:6: note: (8) following 'true' branch... <--[gcc]
cc1: note: (9) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1571:72: note: (10) inlined call to 'free_json_map_string_string_function' from 'clone_map_string_string' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:6: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1492:52: note: (11) inlined call to 'free_json_map_string_string' from 'free_json_map_string_string_function' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_json_map_string_string',
    inlined from 'free_json_map_string_string_function' at src/ocispec/json_common.c:1492:1,
    inlined from 'clone_map_string_string' at src/ocispec/json_common.c:1571:72:
cc1: note: (12) calling 'free_json_map_string_string.part.0' from 'clone_map_string_string'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1472:1: note: (13) entry to 'free_json_map_string_string.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1477:21: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1479:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1479:11: note: (16) dereference of NULL '*map.keys + i * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1481:11: warning: dereference of NULL '*map.values + i * 8' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1569:1: note: (1) entry to 'clone_map_string_string' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1574:6: note: (2) following 'false' branch (when 'src' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1577:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1581:17: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1584:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1587:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1587:17: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1588:6: note: (9) assuming '<unknown>' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1588:6: note: (10) following 'true' branch... <--[gcc]
cc1: note: (11) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1571:72: note: (12) inlined call to 'free_json_map_string_string_function' from 'clone_map_string_string' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1492:52: note: (13) inlined call to 'free_json_map_string_string' from 'free_json_map_string_string_functiomake[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
depbase=`echo tests/test-10.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/test-10.o -MD -MP -MF $depbase.Tpo -c -o tests/test-10.o tests/test-10.c &&\
mv -f $depbase.Tpo $depbase.Po
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o libocispec.la   src/ocispec/image_spec_schema_config_schema.lo src/ocispec/image_spec_schema_content_descriptor.lo src/ocispec/image_spec_schema_defs.lo src/ocispec/image_spec_schema_defs_descriptor.lo src/ocispec/image_spec_schema_image_index_schema.lo src/ocispec/image_spec_schema_image_layout_schema.lo src/ocispec/image_spec_schema_image_manifest_schema.lo src/ocispec/runtime_spec_schema_config_linux.lo src/ocispec/runtime_spec_schema_config_zos.lo src/ocispec/runtime_spec_schema_config_schema.lo src/ocispec/runtime_spec_schema_config_solaris.lo src/ocispec/runtime_spec_schema_config_vm.lo src/ocispec/runtime_spec_schema_config_windows.lo src/ocispec/runtime_spec_schema_defs.lo src/ocispec/runtime_spec_schema_defs_linux.lo src/ocispec/runtime_spec_schema_defs_zos.lo src/ocispec/runtime_spec_schema_defs_vm.lo src/ocispec/runtime_spec_schema_defs_windows.lo src/ocispec/runtime_spec_schema_state_schema.lo src/ocispec/runtime_spec_schema_features_linux.lo src/ocispec/runtime_spec_schema_features_schema.lo src/ocispec/image_manifest_items_image_manifest_items_schema.lo src/ocispec/basic_test_double_array_item.lo src/ocispec/basic_test_double_array.lo src/ocispec/basic_test_top_array_int.lo src/ocispec/basic_test_top_array_string.lo src/ocispec/basic_test_top_double_array_int.lo src/ocispec/basic_test_top_double_array_obj.lo src/ocispec/basic_test_top_double_array_refobj.lo src/ocispec/basic_test_top_double_array_string.lo src/ocispec/read-file.lo src/ocispec/json_common.lo  -lyajl 
libtool: link: ar cr .libs/libocispec.a  src/ocispec/image_spec_schema_config_schema.o src/ocispec/image_spec_schema_content_descriptor.o src/ocispec/image_spec_schema_defs.o src/ocispec/image_spec_schema_defs_descriptor.o src/ocispec/image_spec_schema_image_index_schema.o src/ocispec/image_spec_schema_image_layout_schema.o src/ocispec/image_spec_schema_image_manifest_schema.o src/ocispec/runtime_spec_schema_config_linux.o src/ocispec/runtime_spec_schema_config_zos.o src/ocispec/runtime_spec_schema_config_schema.o src/ocispec/runtime_spec_schema_config_solaris.o src/ocispec/runtime_spec_schema_config_vm.o src/ocispec/runtime_spec_schema_config_windows.o src/ocispec/runtime_spec_schema_defs.o src/ocispec/runtime_spec_schema_defs_linux.o src/ocispec/runtime_spec_schema_defs_zos.o src/ocispec/runtime_spec_schema_defs_vm.o src/ocispec/runtime_spec_schema_defs_windows.o src/ocispec/runtime_spec_schema_state_schema.o src/ocispec/runtime_spec_schema_features_linux.o src/ocispec/runtime_spec_schema_features_schema.o src/ocispec/image_manifest_items_image_manifest_items_schema.o src/ocispec/basic_test_double_array_item.o src/ocispec/basic_test_double_array.o src/ocispec/basic_test_top_array_int.o src/ocispec/basic_test_top_array_string.o src/ocispec/basic_test_top_double_array_int.o src/ocispec/basic_test_top_double_array_obj.o src/ocispec/basic_test_top_double_array_refobj.o src/ocispec/basic_test_top_double_array_string.o src/ocispec/read-file.o src/ocispec/json_common.o
libtool: link: ranlib .libs/libocispec.a
libtool: link: ( cd ".libs" && rm -f "libocispec.la" && ln -s "../libocispec.la" "libocispec.la" )
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-5 tests/test-5.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-5 tests/test-5.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-6 tests/test-6.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-6 tests/test-6.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-4 tests/test-4.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-4 tests/test-4.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-7 tests/test-7.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-7 tests/test-7.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-3 tests/test-3.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-3 tests/test-3.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-8 tests/test-8.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-8 tests/test-8.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-9 tests/test-9.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-9 tests/test-9.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-11 tests/test-11.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-11 tests/test-11.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool --mode=link  libocispec.la -o libocispec.a
libtool: link: ar cr libocispec.a 
libtool: link: ranlib libocispec.a
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-10 tests/test-10.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-10 tests/test-10.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-2 tests/test-2.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-2 tests/test-2.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o src/ocispec/validate src/ocispec/validate.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o src/ocispec/validate src/ocispec/validate.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I./src -I./src  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/test-1 tests/test-1.o libocispec.la   -lyajl -lyajl 
libtool: link: gcc -I./src -I./src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/test-1 tests/test-1.o  ./.libs/libocispec.a -lyajl
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-cgroupfs.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup.o `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-chroot_realpath.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo -c -o src/libcrun/libcrun_testing_a-chroot_realpath.o `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c
mv -f src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Tpo src/libcrun/.deps/libcrun_testing_a-chroot_realpath.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup-setup.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-setup.o `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-setup.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/blake3/libcrun_testing_a-blake3.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3.o `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c
mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cloned_binary.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo -c -o src/libcrun/libcrun_testing_a-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c
mv -f src/libcrun/.deps/libcrun_testing_a-cloned_binary.Tpo src/libcrun/.deps/libcrun_testing_a-cloned_binary.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
n' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:42:7: note: in definition of macro 'define_cleaner_function' <--[gcc]
In function 'free_json_map_string_string',
    inlined from 'free_json_map_string_string_function' at src/ocispec/json_common.c:1492:1,
    inlined from 'clone_map_string_string' at src/ocispec/json_common.c:1571:72:
cc1: note: (14) calling 'free_json_map_string_string.part.0' from 'clone_map_string_string'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c: In function 'free_json_map_string_string.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1472:1: note: (15) entry to 'free_json_map_string_string.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1477:21: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1479:20: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.c:1481:11: note: (18) dereference of NULL '*map.values + i * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c: In function 'libcrun_precreate_cgroup_cgroupfs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: warning: leak of file descriptor 'open(cgroup_path, 720896)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:68:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:71:9: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:72:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:78:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:79:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (8) 'open(cgroup_path, 720896)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_cgroup_enter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(24)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (8) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(24)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_destroy': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:195:1: note: (1) entry to 'libcrun_cgroup_destroy' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:197:34: note: (2) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:200:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_cgroup_destroy' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:200:9: note: (7) returning to 'libcrun_cgroup_destroy' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:201:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (10) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (11) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_update_cgroup_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:208:1: note: (1) entry to 'libcrun_update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:213:34: note: (2) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:216:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:216:9: note: (7) returning to 'libcrun_update_cgroup_resources' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:217:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (10) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (11) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_preenter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:259:1: note: (1) entry to 'libcrun_cgroup_preenter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:268:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:271:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:271:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (6) calling 'get_cgroup_manager' from 'libcrun_cgroup_preenter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (7) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (8) following 'default:' branch... <--[gcc]
cc1: note: (9) ...to here
cc1: note: (10) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (11) entry to 'get_cgroup_manager.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (12) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (13) 'cgroup_manager' is NULL <--[gcc]
cc1: note: (14) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (15) returning to 'libcrun_cgroup_preenter' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:275:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (18) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (19) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_enter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (6) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:297:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:305:7: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:329:9: note: (9) calling 'get_cgroup_manager' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (10) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (11) following 'default:' branch... <--[gcc]
cc1: note: (12) ...to here
cc1: note: (13) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (14) entry to 'get_cgroup_manager.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (15) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (16) 'cgroup_manager' is NULL <--[gcc]
cc1: note: (17) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:329:9: note: (18) returning to 'libcrun_cgroup_enter' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:330:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:333:25: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: note: (21) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: note: (22) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/chroot_realpath.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_unified_cgroup_pid': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(from)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:408:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:419:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:423:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:439:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:454:10: note: (14) following 'true' branch (when 'init_pid > 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (16) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:304:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (20) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:308:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:313:8: note: (23) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:314:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:318:11: note: (26) calling 'xstrdup' from 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (27) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (28) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (30) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (31) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to 'read_unified_cgroup_pid' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (35) 'xstrdup(from)' leaks here; was allocated at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem_rec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: warning: leak of file descriptor 'open(path, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:338:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:341:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:342:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:352:19: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:353:8: note: (10) following 'true' branch (when 'has_data != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:359:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:371:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (16) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:197:1: note: (17) entry to 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:204:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (20) following 'true' branch (when 'create_if_missing != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:209:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:210:10: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:10: note: (24) following 'true' branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (26) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:148:1: note: (27) entry to 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (28) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: note: (35) calling 'initialize_cpuset_subsystem_rec' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:43:1: note: (36) entry to 'initialize_cpuset_subsystem_rec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: note: (37) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: note: (38) 'open(path, 2686976)' leaks here; was opened at (37) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:325:22: note: (6) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:338:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:341:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:342:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:352:19: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:353:8: note: (11) following 'true' branch (when 'has_data != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:359:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:371:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (17) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:197:1: note: (18) entry to 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:200:22: note: (19) 'cgroup_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:204:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (22) following 'true' branch (when 'create_if_missing != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:209:13: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:210:10: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:11: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:10: note: (26) following 'true' branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (28) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:148:1: note: (29) entry to 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (30) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'true' branch (when 'str' is NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: note: (35) argument 1 ('xstrdup(path)') NULL where non-null expected <--[gcc]
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'enter_cgroup_v2': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: warning: use of NULL 'cgroup_crun_exec_path' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:399:22: note: (6) 'cgroup_path_procs' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:400:22: note: (7) 'cgroup_path_procs' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:408:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:411:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:419:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:422:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:423:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:426:17: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:439:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:442:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:450:26: note: (16) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:451:26: note: (17) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:454:10: note: (18) following 'true' branch (when 'init_pid > 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (20) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:294:1: note: (21) entry to 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:299:22: note: (22) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (23) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:308:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:86:25: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:309:12: note: in expansion of macro 'crun_make_error' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (26) returning to 'enter_cgroup_v2' from 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:457:14: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (29) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (30) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (31) argument 2 ('cgroup_crun_exec_path') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:23: <--[gcc]
/usr/include/string.h:159:12: note: argument 2 of 'strncmp' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/blake3/blake3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/blake3/blake3.c:229: warning: uninitvar(CWE-457): Uninitialized variable: parents_array <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:43: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'fetchve': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: warning: leak of 'read_file("/proc/self/cmdline", &cmdline_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (5) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (6) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (7) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (8) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (16) calling 'xrealloc' from 'read_file' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:61: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (17) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (36) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (37) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (38) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (41) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (44) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (45) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (46) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (47) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (48) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (49) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (52) returning to 'fetchve' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (53) 'read_file("/proc/self/cmdline", &cmdline_size)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'parse_xargs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:523:16: note: (2) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (5) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (6) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (7) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (8) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (9) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (17) calling 'xrealloc' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (18) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch (when 'data' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (34) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:19: note: (35) following 'false' branch... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (39) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:18: note: (40) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL '*output + (long unsigned int)num * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(progs,  cur_size * 4)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:387:13: note: (2) calling 'read_all_progs' from 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (3) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:282:32: note: (4) following 'true' branch (when 'cur_size <= 4096')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (6) calling 'xrealloc' from 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (13) 'xrealloc(progs,  cur_size * 4)' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_ebpf_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(log,  log_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (4) calling 'xrealloc' from 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (7) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (10) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (11) 'xrealloc(log,  log_size)' leaks here; was allocated at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'progs' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:381:30: note: (2) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:387:13: note: (3) calling 'read_all_progs' from 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (4) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:282:32: note: (5) following 'true' branch (when 'cur_size <= 4096')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (7) passing freed pointer 'progs' in call to 'xrealloc' from 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (8) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:275:26: note: (13) inlined call to 'cleanup_freep' from 'read_all_progs' <--[gcc]
In function 'cleanup_freep',
    inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (14) second 'free' here; first 'free' was at (2) <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_ebpf_load' at src/libcrun/ebpf.c:507:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'log' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'libcrun_ebpf_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (4) passing freed pointer 'log' in call to 'xrealloc' from 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (9) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:507:26: note: (10) inlined call to 'cleanup_freep' from 'libcrun_ebpf_load' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libmake[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/blake3/libcrun_testing_a-blake3_portable.o -MD -MP -MF src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c
mv -f src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_testing_a-blake3_portable.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-custom-handler.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-custom-handler.Tpo -c -o src/libcrun/libcrun_testing_a-custom-handler.o `test -f 'src/libcrun/custom-handler.c' || echo './'`src/libcrun/custom-handler.c
mv -f src/libcrun/.deps/libcrun_testing_a-custom-handler.Tpo src/libcrun/.deps/libcrun_testing_a-custom-handler.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-ebpf.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-ebpf.Tpo -c -o src/libcrun/libcrun_testing_a-ebpf.o `test -f 'src/libcrun/ebpf.c' || echo './'`src/libcrun/ebpf.c
mv -f src/libcrun/.deps/libcrun_testing_a-ebpf.Tpo src/libcrun/.deps/libcrun_testing_a-ebpf.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-utils.o `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-utils.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-handler-utils.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-handler-utils.o `test -f 'src/libcrun/handlers/handler-utils.c' || echo './'`src/libcrun/handlers/handler-utils.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-handler-utils.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-error.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-error.Tpo -c -o src/libcrun/libcrun_testing_a-error.o `test -f 'src/libcrun/error.c' || echo './'`src/libcrun/error.c
mv -f src/libcrun/.deps/libcrun_testing_a-error.Tpo src/libcrun/.deps/libcrun_testing_a-error.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-mono.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-mono.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-mono.o `test -f 'src/libcrun/handlers/mono.c' || echo './'`src/libcrun/handlers/mono.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-mono.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-mono.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-krun.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-krun.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-krun.o `test -f 'src/libcrun/handlers/krun.c' || echo './'`src/libcrun/handlers/krun.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-krun.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-krun.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-spin.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-spin.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-spin.o `test -f 'src/libcrun/handlers/spin.c' || echo './'`src/libcrun/handlers/spin.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-spin.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-spin.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-wasmer.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmer.o `test -f 'src/libcrun/handlers/wasmer.c' || echo './'`src/libcrun/handlers/wasmer.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmer.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-wasmtime.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmtime.o `test -f 'src/libcrun/handlers/wasmtime.c' || echo './'`src/libcrun/handlers/wasmtime.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmtime.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_testing_a-wasmedge.o -MD -MP -MF src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Tpo -c -o src/libcrun/handlers/libcrun_testing_a-wasmedge.o `test -f 'src/libcrun/handlers/wasmedge.c' || echo './'`src/libcrun/handlers/wasmedge.c
mv -f src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Tpo src/libcrun/handlers/.deps/libcrun_testing_a-wasmedge.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-io_priority.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-io_priority.Tpo -c -o src/libcrun/libcrun_testing_a-io_priority.o `test -f 'src/libcrun/io_priority.c' || echo './'`src/libcrun/io_priority.c
mv -f src/libcrun/.deps/libcrun_testing_a-io_priority.Tpo src/libcrun/.deps/libcrun_testing_a-io_priority.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-mount_flags.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-mount_flags.Tpo -c -o src/libcrun/libcrun_testing_a-mount_flags.o `test -f 'src/libcrun/mount_flags.c' || echo './'`src/libcrun/mount_flags.c
mv -f src/libcrun/.deps/libcrun_testing_a-mount_flags.Tpo src/libcrun/.deps/libcrun_testing_a-mount_flags.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-scheduler.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-scheduler.Tpo -c -o src/libcrun/libcrun_testing_a-scheduler.o `test -f 'src/libcrun/scheduler.c' || echo './'`src/libcrun/scheduler.c
mv -f src/libcrun/.deps/libcrun_testing_a-scheduler.Tpo src/libcrun/.deps/libcrun_testing_a-scheduler.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-intelrdt.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-intelrdt.Tpo -c -o src/libcrun/libcrun_testing_a-intelrdt.o `test -f 'src/libcrun/intelrdt.c' || echo './'`src/libcrun/intelrdt.c
mv -f src/libcrun/.deps/libcrun_testing_a-intelrdt.Tpo src/libcrun/.deps/libcrun_testing_a-intelrdt.Po
crun_ebpf_load' at src/libcrun/ebpf.c:507:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (11) second 'free' here <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: warning: infinite loop [CWE-835] [-Wanalyzer-infinite-loop] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (2) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (3) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (4) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (8) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (9) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (10) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (11) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (15) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (16) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (17) infinite loop here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (18) when 'ret < 0': always following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.h:25: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:21: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (20) if it ever follows 'true' branch, it will always do so... <--[gcc]
cc1: note: (21) ...to here
cc1: note: (22) looping back...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'write_controller_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(controllers_len + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (9) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (12) returning to 'write_controller_file' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (13) 'xmalloc(controllers_len + 1)' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'maybe_make_cgroup_threaded': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(t)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (10) returning to 'write_controller_file' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:807:10: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:809:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:809:17: note: (13) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:75:1: note: (14) entry to 'maybe_make_cgroup_threaded' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:88:20: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:91:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:92:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:95:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:96:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:99:12: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:106:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (23) calling 'xstrdup' from 'maybe_make_cgroup_threaded' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (31) returning to 'maybe_make_cgroup_threaded' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) 'xstrdup(t)' leaks here; was allocated at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: warning: leak of file descriptor 'open(path_to_cgroup, 2818048)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:944:1: note: (1) entry to 'libcrun_get_cgroup_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:952:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:955:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:955:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:958:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:958:6: note: (6) following 'false' branch (when 'status' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:961:30: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:961:7: note: (8) inlined call to 'is_empty_string' from 'libcrun_get_cgroup_dirfd' <--[gcc]
In function 'is_empty_string',
    inlined from 'libcrun_get_cgroup_dirfd' at src/libcrun/cgroup-utils.c:961:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:964:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:965:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (13) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (14) 'open(path_to_cgroup, 2818048)' leaks here; was opened at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/handler-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /usr/include/sys/syslog.h:207, <--[gcc]
                 from /usr/include/syslog.h:1, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:41, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:26, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:27: <--[gcc]
In function 'syslog',
    inlined from 'log_write_to_syslog' at src/libcrun/error.c:310:5:
/usr/include/bits/syslog.h:37:3: warning: 'priority' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
   37 |   __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'log_write_to_syslog': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: 'priority' was declared here <--[gcc]
  294 |   int priority;
      |       ^~~~~~~~
In function 'write_log':
cc1: warning: leak of 'make_json_error(output,  errno_,  verbosity)' [CWE-401] [-Wanalyzer-malloc-leak]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:433:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:437:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:446:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[gcc]
cc1: note: (10) following 'true' branch...
cc1: note: (11) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:415:6: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:416:11: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:416:11: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (17) returning to 'write_log' from 'make_json_error' <--[gcc]
cc1: note: (18) 'make_json_error(output,  errno_,  verbosity)' leaks here; was allocated at (16)
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'log_write_to_syslog': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (5) following 'true' branch (when 'errno_ == 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: note: (7) use of uninitialized value 'priority' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (5) following 'false' branch (when 'errno_ != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: note: (7) use of uninitialized value 'priority' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'make_json_error': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (2) capacity: 8 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:379:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: note: (7) use of uninitialized value 'level' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:433:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:437:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:446:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (10) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (11) capacity: 8 bytes <--[gcc]
cc1: note: (12) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:379:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: note: (16) use of uninitialized value 'level' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/mono.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:262:9: warning: unused variable 'handle' [-Wunused-variable] <--[gcc]
  262 |   void *handle;
      |         ^~~~~~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: warning: 'create_sev' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
  248 |   if (create_sev)
      |      ^
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: 'create_sev' was declared here <--[gcc]
  180 |   bool create_sev;
      |        ^~~~~~~~~~
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'rootfsfd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:167:1: note: (1) entry to 'libkrun_configure_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:182:6: note: (2) following 'false' branch (when 'rootfs' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (4) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:187:10: note: (5) assuming 'rootfsfd_cleanup' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:187:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:191:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:177:21: note: (8) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.h:23: <--[gcc]
In function 'cleanup_closep',
    inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:177:21: note: (11) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21:
cc1: note: (12) calling 'cleanup_closep.part.0' from 'libkrun_configure_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: warning: leak of file descriptor 'open(rootfs, 2621440)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:182:6: note: (1) following 'false' branch (when 'rootfs' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (4) 'open(rootfs, 2621440)' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: warning: use of uninitialized value 'create_sev' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: (2) capacity: 1 byte <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:191:6: note: (3) following 'false' branch (when 'phase != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:215:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:215:6: note: (5) following 'false' branch (when 'phase == 2')... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:225:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:235:11: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:236:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:239:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:240:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:242:14: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:245:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: note: (15) use of uninitialized value 'create_sev' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/spin.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmtime.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmedge.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/io_priority.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/mount_flags.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/scheduler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'resctl_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:23: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (11) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:210:1: note: (12) entry to 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (13) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (14) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (19) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (20) returning to 'resctl_update' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (21) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'resctl_create': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (15) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:210:1: note: (16) entry to 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (17) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (18) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (20) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (23) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (24) returning to 'resctl_create' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (25) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((n_parts_a + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (41) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (42) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (45) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (46) 'xmalloc((n_parts_a + 1) * 8)' leaks here; was allocated at (41) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:23: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:314:6: note: (12) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:314:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:317:9: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:299:21: note: (15) inlined call to 'cleanup_closep' from 'resctl_update' <--[gcc]
In function 'cleanup_closep',
    inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (16) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:299:21: note: (18) inlined call to 'cleanup_closep' from 'resctl_update' <--[gcc]
In function 'cleanup_closep',
    inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21:
cc1: note: (19) calling 'cleanup_closep.part.0' from 'resctl_update'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (20) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (21) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (24) second 'close' here; first 'close' was at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (48) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (49) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (50) following 'false' branch (when 'ret' is non-NULL).make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup-resources.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-resources.o `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-resources.Po
.. <--[gcc]
cc1: note: (51) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (52) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (53) 'xstrdup(<unknown>)' leaks here; was allocated at (48) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (48) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (49) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (50) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:136:18: note: (51) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (52) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (53) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (55) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (56) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (57) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (58) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:136:18: note: (59) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) 'xstrdup(<unknown>)' leaks here; was allocated at (55) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c: In function 'resctl_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: warning: leak of file descriptor 'open(path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) following 'false' branch (when 'l3_cache_schema' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (8) 'open(path, 524289)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'cgroup_dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (15) assuming 'cgroup_dirfd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1290:21: note: (18) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:23: <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v2_resources' at src/libcrun/cgroup-resources.c:1290:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (19) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (20) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1290:21: note: (21) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v2_resources' at src/libcrun/cgroup-resources.c:1290:21:
cc1: note: (22) calling 'cleanup_closep.part.0' from 'update_cgroup_v2_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (23) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (24) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (25) following 'true' branch... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (27) second 'close' here; first 'close' was at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (20) calling 'write_network_resources' from 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:445:1: note: (21) entry to 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:451:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:10: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:463:10: note: (26) following 'false' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (28) inlined call to 'cleanup_closep' from 'write_network_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_network_resources' at src/libcrun/cgroup-resources.c:461:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (29) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (31) inlined call to 'cleanup_closep' from 'write_network_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_network_resources' at src/libcrun/cgroup-resources.c:461:25:
cc1: note: (32) calling 'cleanup_closep.part.0' from 'write_network_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (33) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (34) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (35) following 'true' branch... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (37) second 'close' here; first 'close' was at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd_netprio' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (19) assuming 'dirfd_netprio' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (22) calling 'write_network_resources' from 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:445:1: note: (23) entry to 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:451:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (26) returning to 'update_cgroup_v1_resources' from 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1134:10: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (28) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (30) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (32) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
cc1: note: (33) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (34) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (35) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (36) following 'true' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (38) second 'close' here; first 'close' was at (35) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:278:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:322:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:322:10: note: (26) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:328:14: note: (28) following 'false' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (30) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (31) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (32) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29:
cc1: note: (34) calling 'cleanup_closep.part.0' from 'write_blkio_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (35) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (36) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (37) following 'true' branch... <--[gcc]
cc1: note: (38) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (39) second 'close' here; first 'close' was at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd_netclass' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (17) assuming 'dirfd_netclass' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1134:10: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (23) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (25) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1112:25: note: (27) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1112:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (28) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1112:25: note: (30) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1112:25:
cc1: note: (31) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (32) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (33) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (34) following 'true' branch... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (36) second 'close' here; first 'close' was at (33) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:395:13: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:397:10: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:400:13: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:402:10: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:405:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:407:10: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:410:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:412:10: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (35) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (37) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25:
cc1: note: (38) calling 'cleanup_closep.part.0' from 'write_blkio_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (39) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (40) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (41) following 'true' branch... <--[gcc]
cc1: note: (42) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (43) second 'close' here; first 'close' was at (40) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'write_unified_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1349:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1351:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1351:13: note: (18) calling 'write_unified_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1251:1: note: (19) entry to 'write_unified_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1256:17: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1258:25: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1263:11: note: (22) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1263:10: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1266:46: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1266:11: note: (25) inlined call to 'is_empty_string' from 'write_unified_resources' <--[gcc]
In function 'is_empty_string',
    inlined from 'write_unified_resources' at src/libcrun/cgroup-resources.c:1266:11:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'write_unified_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (28) calling 'xstrdup' from 'write_unified_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (32) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (36) returning to 'write_unified_resources' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) 'xstrdup(*<unknown>)' leaks here; was allocated at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'check_cgroup_v2_controller_available_wrapper': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:391:39: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:392:18: note: (26) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:131:1: note: (27) entry to 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:133:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:136:3: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:139:6: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:141:26: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:150:13: note: (32) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (33) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (34) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (36) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (38) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:150:13: note: (40) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (41) 'xstrdup(name)' leaks here; was allocated at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:152:12: warning: use of NULL 'controllers' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1289:22: note: (10) 'cgroup_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1340:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1342:13: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1342:13: note: (19) calling 'write_hugetlb_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:479:1: note: (20) entry to 'write_hugetlb_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:485:17: note: (21) following 'true' branch (when 'i < htlb_len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:487:26: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:487:26: note: (23) 'filename' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:492:32: note: (24) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:494:50: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:497:13: note: (26) calling 'write_file_and_check_controllers_at' from 'write_hugetlb_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:188:1: note: (27) entry to 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:193:9: note: (28) calling 'write_cgroup_file_or_alias' from 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:69:1: note: (29) entry to 'write_cgroup_file_or_alias' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:74:6: note: (30) following 'false' branch... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:193:9: note: (32) returning to 'write_file_and_check_controllers_at' from 'write_cgroup_file_or_alias' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:194:6: note: (33) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:195:12: note: (35) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:141:26: note: (37) 'controllers' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:144:13: note: (38) 'controllers' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:152:12: note: (39) argument 1 ('xstrdup(name)') NULL where non-null expected <--[gcc]
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'update_cgroup_v1_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: warning: leak of file descriptor 'open(path_to_blkio, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1090:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1092:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1097:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (15) 'open(path_to_blkio, 2686976)' leaks here; was opened at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: warning: leak of file descriptor 'open(path_to_netclass, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (17) 'open(path_to_netclass, 2686976)' leaks here; was opened at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: warning: leak of file descriptor 'open(path_to_netprio, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (19) 'open(path_to_netprio, 2686976)' leaks here; was opened at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: warning: leak of file descriptor 'open(path_to_htlb, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1138:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1140:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1144:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (15) 'open(path_to_htlb, 2686976)' leaks here; was opened at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'update_cgroup_v2_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: warning: leak of file descriptor 'open(cgroup_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (15) 'open(cgroup_path, 589824)' leaks here; was opened at (14) <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-criu.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-criu.Tpo -c -o src/libcrun/libcrun_testing_a-criu.o `test -f 'src/libcrun/criu.c' || echo './'`src/libcrun/criu.c
mv -f src/libcrun/.deps/libcrun_testing_a-criu.Tpo src/libcrun/.deps/libcrun_testing_a-criu.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-seccomp.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-seccomp.Tpo -c -o src/libcrun/libcrun_testing_a-seccomp.o `test -f 'src/libcrun/seccomp.c' || echo './'`src/libcrun/seccomp.c
mv -f src/libcrun/.deps/libcrun_testing_a-seccomp.Tpo src/libcrun/.deps/libcrun_testing_a-seccomp.Po
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:185:1: note: (1) entry to 'criu_notify' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:187:6: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:197:10: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:200:34: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:203:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:208:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:209:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (9) inlined call to 'cleanup_closep' from 'criu_notify' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:35: <--[gcc]
In function 'cleanup_closep',
    inlined from 'criu_notify' at src/libcrun/criu.c:192:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (11) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (12) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (13) inlined call to 'cleanup_closep' from 'criu_notify' <--[gcc]
In function 'cleanup_closep',
    inlined from 'criu_notify' at src/libcrun/criu.c:192:25:
cc1: note: (14) calling 'cleanup_closep.part.0' from 'criu_notify'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (15) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (16) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (17) following 'true' branch... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (19) second 'close' here; first 'close' was at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'root_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:658:1: note: (1) entry to 'prepare_restore_mounts' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:663:17: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:665:23: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:673:10: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:678:21: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:680:30: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:708:10: note: (9) assuming 'root_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:708:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:711:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:716:14: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:667:25: note: (13) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[gcc]
In function 'cleanup_closep',
    inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (15) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:667:25: note: (17) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[gcc]
In function 'cleanup_closep',
    inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25:
cc1: note: (18) calling 'cleanup_closep.part.0' from 'prepare_restore_mounts'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (19) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (20) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (21) following 'true' branch... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (23) second 'close' here; first 'close' was at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:446:18: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:494:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:515:9: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:398:21: note: (26) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (27) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:398:21: note: (29) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21:
cc1: note: (30) calling 'cleanup_closep.part.0' from 'libcrun_container_checkpoint_linux_criu'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (31) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (32) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (33) following 'true' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (35) second 'close' here; first 'close' was at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (28) following 'false' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:32: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:743:21: note: (31) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:743:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:740:21: note: (33) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (34) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:740:21: note: (36) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21:
cc1: note: (37) calling 'cleanup_closep.part.0' from 'libcrun_container_restore_linux_criu'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (38) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (39) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (40) following 'true' branch... <--[gcc]
cc1: note: (41) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (42) second 'close' here; first 'close' was at (39) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_restore_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*status.bundle)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:872:6: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:37: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:22: note: (30) calling 'xstrdup' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (34) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (35) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (36) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:22: note: (38) returning to 'libcrun_container_restore_linux_criu' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (39) 'xstrdup(*status.bundle)' leaks here; was allocated at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'restore_cgroup_v1_mount': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:298:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:281:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:25: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:298:22: note: (19) dereference of NULL 'strchr(subsystem, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:300:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:281:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:25: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:300:20: note: (19) dereference of NULL 'strchr(from, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'checkpoint_cgroup_v1_mount': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:365:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:349:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:25: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:15: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:365:22: note: (14) dereference of NULL 'strchr(subsystem, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:367:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:349:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:25: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:15: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:367:20: note: (14) dereference of NULL 'strchr(from, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'libcrun_container_checkpoint_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:446:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:460:6: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (24) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (25) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'prepare_restore_mounts': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: warning: leak of file descriptor 'open(root, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:663:17: note: (1) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:665:23: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:673:10: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:678:21: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:680:30: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (8) 'open(root, 524288)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'libcrun_container_restore_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:819:6: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (30) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (31) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: warning: leak of file descriptor 'open(**_148.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:880:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:884:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:898:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:902:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:918:53: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (44) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (45) 'open(**_148.path, 0)' leaks here; was opened at (44) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: warning: leak of file descriptor 'open(**_165.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:880:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:884:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:898:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:902:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:918:53: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:931:10: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (44) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (45) 'open(**_165.path, 0)' leaks here; was opened at (44) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:25: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_copy_seccomp': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(in_size + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:836:1: note: (1) entry to 'libcrun_copy_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:845:14: note: (2) calling 'xmalloc' from 'libcrun_copy_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:845:14: note: (8) returning to 'libcrun_copy_seccomp' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (9) 'xmalloc(in_size + 1)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 88)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (12) calling 'xrealloc' from 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (15) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (18) returning to 'evict_cache' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (19) 'xrealloc(entries, (n_entries + 1) * 88)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'entries' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (12) passing freed pointer 'entries' in call to 'xrealloc' from 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (17) returning to 'evict_cache' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:517:24: note: (18) inlined call to 'cleanup_dirp' from 'evict_cache' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:517:24:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:198:5: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:516:40: note: (21) inlined call to 'cleanup_freep' from 'evict_cache' <--[gcc]
In function 'cleanup_freep',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (22) second 'free' here <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/smake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-cgroup-systemd.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_testing_a-cgroup-systemd.o `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c
mv -f src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Tpo src/libcrun/.deps/libcrun_testing_a-cgroup-systemd.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-utils.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-utils.Tpo -c -o src/libcrun/libcrun_testing_a-utils.o `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c
mv -f src/libcrun/.deps/libcrun_testing_a-utils.Tpo src/libcrun/.deps/libcrun_testing_a-utils.Po
rc/libcrun/seccomp.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[gcc]
cc1: note: (7) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:872:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:876:49: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:861:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:861:21: note: (19) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21:
cc1: note: (20) calling 'cleanup_closep.part.0' from 'libcrun_open_seccomp_bpf'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (21) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (22) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (23) following 'true' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (25) second 'close' here; first 'close' was at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (10) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:269:38: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (12) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (13) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (15) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
cc1: note: (16) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (17) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (18) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (19) following 'true' branch... <--[gcc]
cc1: note: (20) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (21) second 'close' here; first 'close' was at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[gcc]
In function 'is_empty_string',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[gcc]
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:587:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:591:48: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:577:21: note: (19) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[gcc]
In function 'cleanup_closep',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (20) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:577:21: note: (22) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[gcc]
In function 'cleanup_closep',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21:
cc1: note: (23) calling 'cleanup_closep.part.0' from 'store_seccomp_cache'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (24) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (26) following 'true' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (28) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '<unknown>' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:261:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:273:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (16) calling 'close_and_reset' from 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (17) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (20) returning to 'libcrun_apply_seccomp' from 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:284:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:290:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:290:10: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (24) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (26) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:325:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:334:6: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:334:6: note: (30) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:336:43: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:206:21: note: (32) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:206:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (33) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:206:21: note: (35) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:206:21:
cc1: note: (36) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (37) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (38) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (39) following 'true' branch... <--[gcc]
cc1: note: (40) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (41) second 'close' here; first 'close' was at (38) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:261:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:273:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (16) calling 'close_and_reset' from 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (17) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (20) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (21) following 'true' branch... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (23) second 'close' here; first 'close' was at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_50->context.state_root,  err)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[gcc]
cc1: note: (7) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: note: (14) 'open_rundir_dirfd(*container_50->context.state_root,  err)' leaks here; was opened at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_44->context.state_root,  err)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[gcc]
In function 'is_empty_string',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[gcc]
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: note: (17) 'open_rundir_dirfd(*container_44->context.state_root,  err)' leaks here; was opened at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'open_rundir_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: warning: leak of file descriptor 'open(libcrun_get_state_directory(state_root, 0), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (4) 'open(libcrun_get_state_directory(state_root, 0), 2686976)' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: warning: leak of file descriptor '<unknown>' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (4) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (5) '<unknown>' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: warning: leak of 'fdopendir(cache_dir_fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (8) 'fdopendir(cache_dir_fd)' leaks here; was allocated at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:562:7: warning: use of NULL 'entries' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:562:7: note: (9) argument 1 ('entries') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:22: <--[gcc]
/usr/include/stdlib.h:970:13: note: argument 1 of 'qsort' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-systemd.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-systemd.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'format_default_id_mapping': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1560:12: warning: 'from' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
 1560 |       from += used;
      |            ^~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1544:12: note: 'from' was declared here <--[gcc]
 1544 |   uint32_t from, available;
      |            ^~~~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1561:17: warning: 'available' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
 1561 |       available -= used;
      |                 ^~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1544:18: note: 'available' was declared here <--[gcc]
 1544 |   uint32_t from, available;
      |                  ^~~~~~~~~
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(128)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (6) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (7) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (10) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (11) 'xmalloc(128)' leaks here; was allocated at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_all_fd_with_size_hint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(allocated + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2475:1: note: (1) entry to 'read_file_as_long_or_default' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2483:9: note: (2) calling 'read_all_file' from 'read_file_as_long_or_default' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1050:1: note: (3) entry to 'read_all_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1055:10: note: (4) calling 'read_all_file_at' from 'read_all_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1038:1: note: (5) entry to 'read_all_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1043:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1046:10: note: (7) inlined call to 'read_all_fd' from 'read_all_file_at' <--[gcc]
In function 'read_all_fd',
    inlined from 'read_all_file_at' at src/libcrun/utils.c:1046:10:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (9) calling 'read_all_fd_with_size_hint' from 'read_all_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'read_all_fd_with_size_hint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:975:1: note: (10) entry to 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:983:6: note: (11) following 'false' branch (when 'size_hint == 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (13) calling 'get_file_size' from 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:657:1: note: (14) entry to 'get_file_size' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:667:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:673:14: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (17) returning to 'read_all_fd_with_size_hint' from 'get_file_size' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:988:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:991:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:995:9: note: (20) calling 'xmalloc' from 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (21) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (23) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:995:9: note: (26) returning to 'read_all_fd_with_size_hint' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (27) 'xmalloc(allocated + 1)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'copy_from_fd_to_fd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(get_page_size())' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (21) calling 'copy_from_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1279:1: note: (22) entry to 'copy_from_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1304:16: note: (23) calling 'xmalloc' from 'copy_from_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1304:16: note: (29) returning to 'copy_from_fd_to_fd' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(get_page_size())' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'copy_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(xattr_len + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1988:1: note: (1) entry to 'copy_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1995:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2003:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2003:6: note: (4) following 'false' branch (when 'xattr_len != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:28: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:9: note: (6) calling 'xmalloc' from 'copy_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (9) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:9: note: (12) returning to 'copy_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (13) 'xmalloc((long unsigned int)(xattr_len + 1))' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (8) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (9) 'xmalloc((long unsigned int)(current_size + 1))' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2569:13: note: (9) calling 'xrealloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (10) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2569:13: note: (15) returning to 'read_dir_entries' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (16) 'xrealloc(entries, (n_entries + 1) * 8)' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries,  entries_size * 16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (11) following 'false' branch (when 'n_entries != entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:24: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (13) calling 'xstrdup' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (14) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (15) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (19) returning to 'read_dir_entries' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (22) following 'true' branch (when 'n_entries == entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2564:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2565:21: note: (24) calling 'xrealloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (25) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (26) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (27) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2565:21: note: (30) returning to 'read_dir_entries' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (31) 'xrealloc(entries,  entries_size * 16)' leaks here; was allocated at (26) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(buffer, (long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (6) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1965:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (9) following 'false' branch (when 'current_size <= s')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1971:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (11) calling 'xrealloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (12) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (13) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (17) returning to 'safe_read_xattr' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (18) 'xrealloc(buffer, (long unsigned int)(current_size + 1))' leaks here; was allocated at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_readlinkat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (17) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (18) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (19) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (21) calling 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (22) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (23) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (28) 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' leaks here; was allocated at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'buffer' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (8) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1965:10: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (11) following 'false' branch (when 'current_size <= s')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1971:20: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (13) calling 'xrealloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (14) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (15) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (16) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (19) returning to 'safe_read_xattr' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1955:22: note: (20) inlined call to 'cleanup_freep' from 'safe_read_xattr' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (21) second 'free' here; first 'free' was at (15) <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'tmp_buf' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'safe_readlinkat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2096:26: note: (6) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (22) passing freed pointer 'tmp_buf' in call to 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:423:22: note: (28) inlined call to 'cleanup_freep' from 'safe_readlinkat' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (29) second 'free' here; first 'free' was at (6) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:26: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'destdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-container.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-container.Tpo -c -o src/libcrun/libcrun_testing_a-container.o `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c
mv -f src/libcrun/.deps/libcrun_testing_a-container.Tpo src/libcrun/.deps/libcrun_testing_a-container.Po
utils.c:2086:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (33) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2109:38: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (35) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (36) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2082:20: note: (38) inlined call to 'cleanup_dirp' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2082:20:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (39) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:198:5: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2081:21: note: (41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (42) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (43) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2081:21: note: (44) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21:
cc1: note: (45) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (46) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (47) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (48) following 'true' branch... <--[gcc]
cc1: note: (49) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (50) second 'close' here; first 'close' was at (47) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'srcfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (33) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (35) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (39) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2120:42: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (43) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (45) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (46) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (47) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25:
cc1: note: (48) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (49) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (50) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (51) following 'true' branch... <--[gcc]
cc1: note: (52) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (53) second 'close' here; first 'close' was at (50) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'destfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2128:14: note: (23) following 'false' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (26) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (27) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (29) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
cc1: note: (30) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (31) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (32) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(getenv("PATH"))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1880:1: note: (1) entry to 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1889:6: note: (2) following 'false' branch (when 'executable_path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:22: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:33: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:66: note: (6) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:63: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:22: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:15: note: (11) calling 'xstrdup' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (12) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (13) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (16) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:15: note: (19) returning to 'find_executable' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) 'xstrdup(getenv("PATH"))' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*<unknown>.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:10: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (13) following 'false' branch (when 'n_entries != entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (15) calling 'xstrdup' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (23) returning to 'read_dir_entries' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (24) 'xstrdup(&*<unknown>.d_name)' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(executable_path)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1880:1: note: (1) entry to 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1889:6: note: (2) following 'false' branch (when 'executable_path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:22: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:33: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (8) calling 'check_access' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1853:1: note: (9) entry to 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1866:9: note: (10) inlined call to 'get_file_type' from 'check_access' <--[gcc]
In function 'get_file_type',
    inlined from 'check_access' at src/libcrun/utils.c:1866:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:232:10: note: (11) calling 'get_file_type_at' from 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:200:1: note: (12) entry to 'get_file_type_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:202:49: note: (13) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:80: note: (15) following 'false' branch (when 'nofollow == 0')... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:9: note: (17) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1866:9: note: (19) inlined call to 'get_file_type' from 'check_access' <--[gcc]
In function 'get_file_type',
    inlined from 'check_access' at src/libcrun/utils.c:1866:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:232:10: note: (20) returning to 'check_access' from 'get_file_type_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (21) returning to 'find_executable' from 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1918:10: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (24) calling 'xstrdup' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (25) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (26) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (30) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (32) returning to 'find_executable' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) 'xstrdup(executable_path)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: warning: leak of 'fdopendir(srcdirfd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: note: (2) 'fdopendir(srcdirfd)' leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: warning: double 'close' of file descriptor 'srcdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (1) following 'true' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: note: (3) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:7: note: (4) following 'true' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: note: (6) second 'close' here; first 'close' was at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: warning: double 'close' of file descriptor 'destfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2128:14: note: (23) following 'false' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:11: note: (26) following 'true' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (28) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: warning: use of NULL 'target_buf' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2096:26: note: (6) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (22) calling 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (28) returning to 'copy_recursive_fd_to_fd' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2163:14: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (31) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (32) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (33) argument 1 ('target_buf') NULL where non-null expected <--[gcc]
/usr/include/unistd.h:847:12: note: argument 1 of 'symlinkat' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'read_file_as_long_or_default': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2491:9: warning: use of NULL 'content' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2477:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2484:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2490:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2491:9: note: (4) argument 1 ('content') NULL where non-null expected <--[gcc]
In file included from /usr/include/features.h:511, <--[gcc]
                 from /usr/include/bits/libc-header-start.h:33, <--[gcc]
                 from /usr/include/stdio.h:28, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:22: <--[gcc]
/usr/include/stdlib.h:215:17: note: argument 1 of 'strtol' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(144)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (8) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(144)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0((num_mount_options + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (8) returning to 'retrieve_mount_options' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0((num_mount_options + 1) * 8)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_load_from_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (24) 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_update_intel_rdt': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (24) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (25) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_restore': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file("config.json", err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (11) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (14) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (15) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (17) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (18) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (19) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (28) 'libcrun_container_load_from_file("config.json", err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (28) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_container_config_from_state': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1611:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (28) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(176)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3821:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3824:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3829:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3832:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3833:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3836:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3837:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:6: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (14) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (15) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (17) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (20) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (21) 'xmalloc0(176)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(120)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3821:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3824:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3829:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3832:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3833:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3836:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3837:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:6: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (14) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (15) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (18) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3847:61: note: (19) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (21) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3847:61: note: (25) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(120)' leaks here; was allocated at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_restore': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (28) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (29) '<unknown>' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_update_intel_rdt': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (17) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (19) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (20) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (21) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (23) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (24) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (25) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (27) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (28) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (30) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (31) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (32) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (33) '<unknown>' leaks here; was allocated at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (35) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (37) '<unknown>' leaks here; was allocated at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'read_container_config_from_state': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1611:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (35) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (37) '<unknown>' leaks here; was allocated at (27) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:46: <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:25: <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:18: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3738:13: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:18: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:49: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3748:17: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:29: note: (75) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (76) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (77) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:29: note: (78) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29:
cc1: note: (79) calling 'cleanup_closep.part.0' from 'libcrun_container_exec_with_options'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (80) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (81) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (82) following 'true' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (84) second 'close' here; first 'close' was at (81) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'signalfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'false' branch... <--[gcc]
cc1: note: (66) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3767:6: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:35: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3784:38: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3794:15: note: (71) calling 'wait_for_process' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1969:1: note: (72) entry to 'wait_for_process' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1983:6: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1986:20: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1997:6: note: (75) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2000:11: note: (76) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2000:6: note: (77) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2007:3: note: (78) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2009:6: note: (79) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2012:14: note: (80) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2013:6: note: (81) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2016:9: note: (82) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2017:6: note: (83) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2020:7: note: (84) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2020:6: note: (85) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2023:11: note: (86) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2023:6: note: (87) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2057:14: note: (88) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2058:6: note: (89) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2060:11: note: (90) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2069:6: note: (91) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1979:67: note: (92) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1972:21: note: (93) inlined call to 'cleanup_closep' from 'wait_for_process' <--[gcc]
In function 'cleanup_closep',
    inlined from 'wait_for_process' at src/libcrun/container.c:1972:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (94) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (95) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1972:21: note: (96) inlined call to 'cleanup_closep' from 'wait_for_process' <--[gcc]
In function 'cleanup_closep',
    inlined from 'wait_for_process' at src/libcrun/container.c:1972:21:
cc1: note: (97) calling 'cleanup_closep.part.0' from 'wait_for_process'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (98) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (99) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (100) following 'true' branch... <--[gcc]
cc1: note: (101) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (102) second 'close' here; first 'close' was at (99) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3393:21: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3421:26: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3433:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3437:7: note: (18) calling 'close_and_reset' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (19) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (20) following 'true' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (22) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (23) following 'true' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (25) second 'close' here; first 'close' was at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3725:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3726:5: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3726:5: note: (67) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (68) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (69) following 'true' branch... <--[gcc]
cc1: note: (70) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (71) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (72) following 'true' branch... <--[gcc]
cc1: note: (73) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (74) second 'close' here; first 'close' was at (71) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'terminal_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:18: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3738:13: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:18: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:49: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3748:17: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3749:14: note: (75) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3751:11: note: (76) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3751:11: note: (77) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (78) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (79) following 'true' branch... <--[gcc]
cc1: note: (80) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (81) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (82) following 'true' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (84) second 'close' here; first 'close' was at (81) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'own_seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:6: note: (41) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (43) calling 'get_seccomp_receiver_fd' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2285:1: note: (44) entry to 'get_seccomp_receiver_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2295:6: note: (45) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2300:13: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2301:10: note: (47) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2304:16: note: (48) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (49) returning to 'libcrun_container_exec_with_options' from 'get_seccomp_receiver_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3621:10: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:29: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (56) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (58) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (61) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3685:10: note: (63) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3687:27: note: (64) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3688:14: note: (65) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (67) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (68) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (71) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (73) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (74) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (75) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (76) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (77) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (78) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (79) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (80) following 'false' branch... <--[gcc]
cc1: note: (81) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (82) following 'false' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3767:6: note: (84) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:35: note: (85) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:10: note: (86) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3774:31: note: (87) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3775:14: note: (88) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3778:17: note: (89) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3778:17: note: (90) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (91) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (92) following 'true' branch... <--[gcc]
cc1: note: (93) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (94) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (95) following 'true' branch... <--[gcc]
cc1: note: (96) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (97) second 'close' here; first 'close' was at (94) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:73: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:39: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3397:57: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3421:26: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3433:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (20) calling 'close_and_reset' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (21) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (24) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (25) following 'true' branch... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (27) second 'close' here; first 'close' was at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.0.0")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (12) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (13) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (15) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (16) 'xstrdup("1.0.0")' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.1.0+dev")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (11) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (12) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (13) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4050:30: note: (14) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (15) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (16) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (19) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4050:30: note: (22) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (23) 'xstrdup("1.1.0+dev")' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*<unknown>.name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (6) returning to 'retrieve_mount_options' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4029:24: note: (7) following 'true' branch (when 'num_mount_options > i')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:60: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:33: note: (9) calling 'xstrdup' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (10) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (11) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (13) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (14) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (15) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:33: note: (17) returning to 'retrieve_mount_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (18) 'xstrdup(*<unknown>.name)' leaks here; was allocated at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_70->process.selinux_label)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_70->process.selinux_label)' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_75->process.apparmor_profile)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_75->process.apparmor_profile)' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_load_from_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (27) '<unknown>' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'container_delete_internal': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:15: warning: dereference of NULL 'container' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4177:1: note: (1) entry to 'libcrun_container_checkpoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4183:42: note: (2) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4183:42: note: (3) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4186:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4189:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4190:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4192:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4192:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4195:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4196:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4198:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4198:9: note: (12) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4199:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4202:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4202:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4203:12: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4203:12: note: (17) calling 'container_delete_internal' from 'libcrun_container_checkpoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1684:1: note: (18) entry to 'container_delete_internal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1689:42: note: (19) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1694:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1708:19: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1710:6: note: (22) following 'true' branch (when 'force != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1728:15: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1728:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1730:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1730:10: note: (26) following 'true' branch (when 'def' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1732:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1733:14: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:26: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:26: note: (30) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:15: note: (31) dereference of NULL 'container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'exec_process_entrypoint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3393:21: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3441:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (16) calling 'maybe_chown_std_streams' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1018:1: note: (17) entry to 'maybe_chown_std_streams' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1023:17: note: (18) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:13: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:13: note: (20) when 'isatty' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1023:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (23) returning to 'exec_process_entrypoint' from 'maybe_chown_std_streams' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3445:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3448:14: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3454:6: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3457:6: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: note: (28) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:3: note: (29) following 'true' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: note: (31) second 'close' here; first 'close' was at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: warning: dereference of NULL 'process' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3293:1: note: (1) entry to 'libcrun_container_exec_process_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3301:10: note: (2) calling 'libcrun_container_exec_with_options' from 'libcrun_container_exec_process_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (3) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (4) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (5) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (6) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (15) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (16) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (19) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (20) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (21) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (22) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (25) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (26) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (28) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (29) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (35) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (42) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (44) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (45) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:6: note: (46) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:29: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (52) dereference of NULL 'process' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:32: warning: leak of '*process.selinux_label' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:32: note: (63) '*process.selinux_label' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:35: warning: leak of '*process.apparmor_profile' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:35: note: (63) '*process.apparmor_profile' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: warning: double 'close' of file descriptor 'pipefd0' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (50) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (56) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (59) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (61) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (64) following 'true' branch... <--[gcc]
cc1: note: (65) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: note: (66) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:7: note: (67) following 'true' branch... <--[gcc]
cc1: note: (68) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: note: (69) second 'close' here; first 'close' was at (66) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (50) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (56) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (59) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (61) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (64) following 'false' branch... <--[gcc]
cc1: note: (65) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: note: (66) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:3: note: (67) following 'true' branch... <--[gcc]
cc1: note: (68) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: note: (69) second 'close' here; first 'close' was at (66) <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-seccomp_notify.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Tpo -c -o src/libcrun/libcrun_testing_a-seccomp_notify.o `test -f 'src/libcrun/seccomp_notify.c' || echo './'`src/libcrun/seccomp_notify.c
mv -f src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Tpo src/libcrun/.deps/libcrun_testing_a-seccomp_notify.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-linux.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-linux.Tpo -c -o src/libcrun/libcrun_testing_a-linux.o `test -f 'src/libcrun/linux.c' || echo './'`src/libcrun/linux.c
mv -f src/libcrun/.deps/libcrun_testing_a-linux.Tpo src/libcrun/.deps/libcrun_testing_a-linux.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-signals.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-signals.Tpo -c -o src/libcrun/libcrun_testing_a-signals.o `test -f 'src/libcrun/signals.c' || echo './'`src/libcrun/signals.c
mv -f src/libcrun/.deps/libcrun_testing_a-signals.Tpo src/libcrun/.deps/libcrun_testing_a-signals.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/tests_libcrun_errors-tests_libcrun_errors.o -MD -MP -MF tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Tpo -c -o tests/tests_libcrun_errors-tests_libcrun_errors.o `test -f 'tests/tests_libcrun_errors.c' || echo './'`tests/tests_libcrun_errors.c
mv -f tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Tpo tests/.deps/tests_libcrun_errors-tests_libcrun_errors.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o -MD -MP -MF tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Tpo -c -o tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o `test -f 'tests/tests_libcrun_intelrdt.c' || echo './'`tests/tests_libcrun_intelrdt.c
mv -f tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Tpo tests/.deps/tests_libcrun_intelrdt-tests_libcrun_intelrdt.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-run.o -MD -MP -MF src/.deps/crun-run.Tpo -c -o src/crun-run.o `test -f 'src/run.c' || echo './'`src/run.c
mv -f src/.deps/crun-run.Tpo src/.deps/crun-run.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-terminal.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-terminal.Tpo -c -o src/libcrun/libcrun_testing_a-terminal.o `test -f 'src/libcrun/terminal.c' || echo './'`src/libcrun/terminal.c
mv -f src/libcrun/.deps/libcrun_testing_a-terminal.Tpo src/libcrun/.deps/libcrun_testing_a-terminal.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-crun.o -MD -MP -MF src/.deps/crun-crun.Tpo -c -o src/crun-crun.o `test -f 'src/crun.c' || echo './'`src/crun.c
mv -f src/.deps/crun-crun.Tpo src/.deps/crun-crun.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-delete.o -MD -MP -MF src/.deps/crun-delete.Tpo -c -o src/crun-delete.o `test -f 'src/delete.c' || echo './'`src/delete.c
mv -f src/.deps/crun-delete.Tpo src/.deps/crun-delete.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-pause.o -MD -MP -MF src/.deps/crun-pause.Tpo -c -o src/crun-pause.o `test -f 'src/pause.c' || echo './'`src/pause.c
mv -f src/.deps/crun-pause.Tpo src/.deps/crun-pause.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-kill.o -MD -MP -MF src/.deps/crun-kill.Tpo -c -o src/crun-kill.o `test -f 'src/kill.c' || echo './'`src/kill.c
mv -f src/.deps/crun-kill.Tpo src/.deps/crun-kill.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-unpause.o -MD -MP -MF src/.deps/crun-unpause.Tpo -c -o src/crun-unpause.o `test -f 'src/unpause.c' || echo './'`src/unpause.c
mv -f src/.deps/crun-unpause.Tpo src/.deps/crun-unpause.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-spec.o -MD -MP -MF src/.deps/crun-spec.Tpo -c -o src/crun-spec.o `test -f 'src/spec.c' || echo './'`src/spec.c
mv -f src/.deps/crun-spec.Tpo src/.deps/crun-spec.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-create.o -MD -MP -MF src/.deps/crun-create.Tpo -c -o src/crun-create.o `test -f 'src/create.c' || echo './'`src/create.c
mv -f src/.deps/crun-create.Tpo src/.deps/crun-create.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-start.o -MD -MP -MF src/.deps/crun-start.Tpo -c -o src/crun-start.o `test -f 'src/start.c' || echo './'`src/start.c
mv -f src/.deps/crun-start.Tpo src/.deps/crun-start.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-state.o -MD -MP -MF src/.deps/crun-state.Tpo -c -o src/crun-state.o `test -f 'src/state.c' || echo './'`src/state.c
mv -f src/.deps/crun-state.Tpo src/.deps/crun-state.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-list.o -MD -MP -MF src/.deps/crun-list.Tpo -c -o src/crun-list.o `test -f 'src/list.c' || echo './'`src/list.c
mv -f src/.deps/crun-list.Tpo src/.deps/crun-list.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-oci_features.o -MD -MP -MF src/.deps/crun-oci_features.Tpo -c -o src/crun-oci_features.o `test -f 'src/oci_features.c' || echo './'`src/oci_features.c
mv -f src/.deps/crun-oci_features.Tpo src/.deps/crun-oci_features.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-update.o -MD -MP -MF src/.deps/crun-update.Tpo -c -o src/crun-update.o `test -f 'src/update.c' || echo './'`src/update.c
mv -f src/.deps/crun-update.Tpo src/.deps/crun-update.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-ps.o -MD -MP -MF src/.deps/crun-ps.Tpo -c -o src/crun-ps.o `test -f 'src/ps.c' || echo './'`src/ps.c
mv -f src/.deps/crun-ps.Tpo src/.deps/crun-ps.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-checkpoint.o -MD -MP -MF src/.deps/crun-checkpoint.Tpo -c -o src/crun-checkpoint.o `test -f 'src/checkpoint.c' || echo './'`src/checkpoint.c
mv -f src/.deps/crun-checkpoint.Tpo src/.deps/crun-checkpoint.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-restore.o -MD -MP -MF src/.deps/crun-restore.Tpo -c -o src/crun-restore.o `test -f 'src/restore.c' || echo './'`src/restore.c
mv -f src/.deps/crun-restore.Tpo src/.deps/crun-restore.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o -MD -MP -MF tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Tpo -c -o tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o `test -f 'tests/tests_libcrun_fuzzer.c' || echo './'`tests/tests_libcrun_fuzzer.c
mv -f tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Tpo tests/.deps/tests_libcrun_fuzzer-tests_libcrun_fuzzer.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/crun-exec.o -MD -MP -MF src/.deps/crun-exec.Tpo -c -o src/crun-exec.o `test -f 'src/exec.c' || echo './'`src/exec.c
mv -f src/.deps/crun-exec.Tpo src/.deps/crun-exec.Po
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:32: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_load_seccomp_notify_plugins': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (12) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (15) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (16) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (17) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (20) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (21) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(48)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (21) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (25) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(48)' leaks here; was allocated at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(plugins)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (23) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:104:7: note: (24) calling 'xstrdup' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (25) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (26) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (30) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:104:7: note: (32) returning to 'libcrun_load_seccomp_notify_plugins' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) 'xstrdup(plugins)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c:3680: error: uninitvar(CWE-457): Uninitialized variable: code <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c: internal warning: child 11323 timed out after 30s <--[gcc]
cswrap: error: child 11323 (/usr/bin/gcc) terminated by signal 15 (timed out)
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/signals.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_errors.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/run.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:26: note: (2) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:48:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:21: note: (6) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:25: <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (7) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (8) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:21: note: (9) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21:
cc1: note: (10) calling 'cleanup_closep.part.0' from 'libcrun_new_terminal'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (11) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (12) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (13) following 'true' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (15) second 'close' here; first 'close' was at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:26: note: (2) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (6) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (8) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (11) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
cc1: note: (12) calling 'cleanup_closep.part.0' from 'libcrun_set_stdio'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_set_stdio': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:106:1: warning: leak of file descriptor 'ret' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (2) following 'false' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (4) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (7) assuming 'ret' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:23: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (10) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (12) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (13) assuming 'ret' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[gcc]
In function 'libcrun_set_stdio':
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:106:1: note: (19) 'ret' leaks here; was opened at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_new_terminal': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&buf)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:48:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:49:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:52:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:53:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (8) calling 'xstrdup' from 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (9) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (10) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (13) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (14) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (16) returning to 'libcrun_new_terminal' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) 'xstrdup(&buf)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/crun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/delete.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/pause.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/kill.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/unpause.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c: In function 'crun_command_spec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: warning: leak of FILE 'fopen(<unknown>, "w+e")' [CWE-775] [-Wanalyzer-file-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:99:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:103:14: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:103:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:117:17: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: note: (5) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: note: (6) 'fopen(<unknown>, "w+e")' leaks here; was opened at (5) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: warning: leak of 'fopen(<unknown>, "w+e")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:99:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:103:14: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:103:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:117:17: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: note: (5) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:126:7: note: (6) 'fopen(<unknown>, "w+e")' leaks here; was allocated at (5) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/spec.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/create.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/start.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/state.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/list.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/oci_features.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/update.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/ps.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/checkpoint.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/restore.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'outfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:459:1: note: (1) entry to 'LLVMFuzzerTestOneInput' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:461:3: note: (2) calling 'run_one_test' from 'LLVMFuzzerTestOneInput' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:366:1: note: (3) entry to 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:370:3: note: (4) following 'case 2:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:382:5: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:384:7: note: (6) calling 'generate_seccomp' from 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:145:1: note: (7) entry to 'generate_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:153:10: note: (8) calling 'make_nul_terminated' from 'generate_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:46:1: note: (9) entry to 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:51:6: note: (10) following 'false' branch (when 'r' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:53:3: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:153:10: note: (12) returning to 'generate_seccomp' from 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:154:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:157:15: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:158:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: note: (17) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:165:6: note: (18) assuming 'outfd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:165:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:168:3: note: (20) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'generate_seccomp' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:27: <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'generate_seccomp' at tests/tests_libcrun_fuzzer.c:168:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:150:21: note: (22) inlined call to 'cleanup_closep' from 'generate_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'generate_seccomp' at tests/tests_libcrun_fuzzer.c:150:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (23) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:150:21: note: (25) inlined call to 'cleanup_closep' from 'generate_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'generate_seccomp' at tests/tests_libcrun_fuzzer.c:150:21:
cc1: note: (26) calling 'cleanup_closep.part.0' from 'generate_seccomp'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (27) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (28) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (31) second 'close' here; first 'close' was at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to 'main' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following 'true' branch (when 'argc > 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to 'LLVMFuzzerTestOneInput' from 'main' <--[gcc]
In function 'LLVMFuzzerTestOneInput',
    inlined from 'main' at tests/tests_libcrun_fuzzer.c:497:14:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling 'run_one_test' from 'main' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following 'case 5:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:401:5: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:403:7: note: (13) calling 'test_generate_ebpf' from 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:60:1: note: (14) entry to 'test_generate_ebpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:69:10: note: (15) calling 'make_nul_terminated' from 'test_generate_ebpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following 'false' branch (when 'r' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:69:10: note: (19) returning to 'test_generate_ebpf' from 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:70:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:73:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:79:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:83:6: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:83:6: note: (24) following 'false' branch (when 'len > 9')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:86:3: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:90:6: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:97:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:98:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: note: (30) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:106:6: note: (31) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:106:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:109:3: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:66:21: note: (34) inlined call to 'cleanup_closep' from 'test_generate_ebpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_generate_ebpf' at tests/tests_libcrun_fuzzer.c:66:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (35) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:66:21: note: (37) inlined call to 'cleanup_closep' from 'test_generate_ebpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_generate_ebpf' at tests/tests_libcrun_fuzzer.c:66:21:
cc1: note: (38) calling 'cleanup_closep.part.0' from 'test_generate_ebpf'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (39) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (40) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (41) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (42) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (43) second 'close' here; first 'close' was at (40) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c: In function 'test_generate_ebpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: warning: leak of file descriptor 'open("/dev/null", 1)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:476:1: note: (1) entry to 'main' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:482:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:484:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:486:6: note: (4) following 'true' branch (when 'argc > 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:488:23: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:492:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:497:14: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:497:14: note: (8) inlined call to 'LLVMFuzzerTestOneInput' from 'main' <--[gcc]
In function 'LLVMFuzzerTestOneInput',
    inlined from 'main' at tests/tests_libcrun_fuzzer.c:497:14:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:461:3: note: (9) calling 'run_one_test' from 'main' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c: In function 'test_generate_ebpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:366:1: note: (10) entry to 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:370:3: note: (11) following 'case 5:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:401:5: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:403:7: note: (13) calling 'test_generate_ebpf' from 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:60:1: note: (14) entry to 'test_generate_ebpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:69:10: note: (15) calling 'make_nul_terminated' from 'test_generate_ebpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:46:1: note: (16) entry to 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:51:6: note: (17) following 'false' branch (when 'r' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:53:3: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:69:10: note: (19) returning to 'test_generate_ebpf' from 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:70:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:73:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:79:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:83:6: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:83:6: note: (24) following 'false' branch (when 'len > 9')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:86:3: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:90:6: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:97:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:98:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: note: (30) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:105:8: note: (31) 'open("/dev/null", 1)' leaks here; was opened at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c: In function 'generate_seccomp': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: warning: leak of file descriptor 'open("/dev/null", 1)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:459:1: note: (1) entry to 'LLVMFuzzerTestOneInput' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:461:3: note: (2) calling 'run_one_test' from 'LLVMFuzzerTestOneInput' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:366:1: note: (3) entry to 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:370:3: note: (4) following 'case 2:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:382:5: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:384:7: note: (6) calling 'generate_seccomp' from 'run_one_test' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:145:1: note: (7) entry to 'generate_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:153:10: note: (8) calling 'make_nul_terminated' from 'generate_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:46:1: note: (9) entry to 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:51:6: note: (10) following 'false' branch (when 'r' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:53:3: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:153:10: note: (12) returning to 'generate_seccomp' from 'make_nul_terminated' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:154:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:157:15: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:158:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: note: (17) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_fuzzer.c:164:11: note: (18) 'open("/dev/null", 1)' leaks here; was opened at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:29: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'crun_command_exec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(88)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'true' branch (when 'userspec' is NULL)... <--[gcc]
In file included from /usr/include/bits/types/stack_t.h:23, <--[gcc]
                 from /usr/include/signal.h:313, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:29: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:208:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (26) returning to 'crun_command_exec' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:297:10: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:300:23: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:300:10: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:303:23: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:303:10: note: (31) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:306:17: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:306:17: note: (33) calling 'xmalloc' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (34) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (35) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (36) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:306:17: note: (39) returning to 'crun_command_exec' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (40) 'xmalloc(88)' leaks here; was allocated at (35) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0((long unsigned int)(argc + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (19) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (20) 'xmalloc0((long unsigned int)(argc + 1) * 8)' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'make_oci_process_user': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(56)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'false' branch (when 'userspec' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (26) calling 'xmalloc0' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (27) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (29) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (32) returning to 'make_oci_process_user' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (33) 'xmalloc0(56)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(56)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'false' branch (when 'userspec' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (26) calling 'xmalloc0' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (27) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (28)make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=default -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_testing_a-status.o -MD -MP -MF src/libcrun/.deps/libcrun_testing_a-status.Tpo -c -o src/libcrun/libcrun_testing_a-status.o `test -f 'src/libcrun/status.c' || echo './'`src/libcrun/status.c
mv -f src/libcrun/.deps/libcrun_testing_a-status.Tpo src/libcrun/.deps/libcrun_testing_a-status.Po
 allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (29) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (32) returning to 'make_oci_process_user' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:213:6: note: (33) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:6: note: (35) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:217:6: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (37) 'xmalloc0(56)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(56)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'false' branch (when 'userspec' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (26) calling 'xmalloc0' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (27) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (29) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (32) returning to 'make_oci_process_user' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:213:6: note: (33) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:6: note: (35) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:217:6: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:217:6: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:220:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (39) 'xmalloc0(56)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'crun_command_exec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'make_oci_process_user(exec_options.user)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (6) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (7) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (10) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (11) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (12) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (15) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (20) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (21) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (22) following 'false' branch (when 'userspec' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (24) calling 'xmalloc0' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (25) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (26) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (27) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (30) returning to 'make_oci_process_user' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:213:6: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:7: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:6: note: (33) following 'true' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (35) returning to 'crun_command_exec' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (36) 'make_oci_process_user(exec_options.user)' leaks here; was allocated at (26) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'make_oci_process_user': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(56)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'false' branch (when 'userspec' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (26) calling 'xmalloc0' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (27) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (29) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:210:7: note: (32) returning to 'make_oci_process_user' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:213:6: note: (33) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:215:6: note: (35) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:217:6: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:217:6: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:220:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:222:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:224:7: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (41) 'xmalloc0(56)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'crun_command_exec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:288:52: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:288:28: note: (20) calling 'xstrdup' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (21) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (22) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (24) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (25) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (26) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:288:28: note: (28) returning to 'crun_command_exec' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) 'xstrdup(*<unknown>)' leaks here; was allocated at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(exec_options.process_label)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'true' branch (when 'userspec' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:208:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (26) returning to 'crun_command_exec' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:297:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:298:34: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:298:34: note: (29) calling 'xstrdup' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (30) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (31) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (33) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (35) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:298:34: note: (37) returning to 'crun_command_exec' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (38) 'xstrdup(exec_options.process_label)' leaks here; was allocated at (33) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(exec_options.apparmor)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:245:1: note: (1) entry to 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:264:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:267:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:272:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:19: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:278:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (8) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:282:17: note: (12) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (13) calling 'xmalloc0' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (14) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:286:23: note: (17) returning to 'crun_command_exec' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:287:21: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:289:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:290:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:292:39: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (22) calling 'make_oci_process_user' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:202:1: note: (23) entry to 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:207:6: note: (24) following 'true' branch (when 'userspec' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:208:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:295:23: note: (26) returning to 'crun_command_exec' from 'make_oci_process_user' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:297:10: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:300:23: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:300:10: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:301:37: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:301:37: note: (31) calling 'xstrdup' from 'crun_command_exec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (32) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (33) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (35) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (36) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (38) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/exec.c:301:37: note: (39) returning to 'crun_command_exec' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (40) 'xstrdup(exec_options.apparmor)' leaks here; was allocated at (35) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:557:1: warning: leak of file descriptor 'rundir_dfd' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (10) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (11) following 'false' branch... <--[gcc]
cc1: note: (12) ...to here
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (13) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:16: note: (14) assuming 'open(get_run_directory(state_root), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:538:34: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:529:21: note: (17) inlined call to 'cleanup_closep' from 'libcrun_container_delete_status' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_delete_status' at src/libcrun/status.c:529:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (18) following 'false' branch... <--[gcc]
In function 'libcrun_container_delete_status':
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:557:1: note: (20) 'rundir_dfd' leaks here; was opened at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(16)' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (30) calling 'xstrdup' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (37) 'xmalloc(16)' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:120:6: note: (7) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:120:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:131:9: note: (9) inlined call to 'read_all_fd' from 'read_pid_stat' <--[gcc]
In function 'read_all_fd',
    inlined from 'read_pid_stat' at src/libcrun/status.c:131:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:112:21: note: (11) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[gcc]
In function 'cleanup_closep',
    inlined from 'read_pid_stat' at src/libcrun/status.c:112:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (12) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:112:21: note: (14) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[gcc]
In function 'cleanup_closep',
    inlined from 'read_pid_stat' at src/libcrun/status.c:112:21:
cc1: note: (15) calling 'cleanup_closep.part.0' from 'read_pid_stat'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (16) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (20) second 'close' here; first 'close' was at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:540:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (21) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (22) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (24) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (25) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (26) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (27) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (28) following 'true' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (30) second 'close' here; first 'close' was at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'cfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:540:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:475:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:479:14: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:481:26: note: (23) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:483:22: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:483:10: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:487:13: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:488:10: note: (27) following 'true' branch (when 'ret < 0')... <--[gcc]
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:504:14: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:509:18: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (33) calling 'rmdirfd' from 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (34) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:475:6: note: (35) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:476:34: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (37) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (38) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (40) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (41) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (42) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (43) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (44) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (45) returning to 'rmdirfd' from 'cleanup_closep.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:470:20: note: (46) inlined call to 'cleanup_dirp' from 'rmdirfd' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'rmdirfd' at src/libcrun/status.c:470:20:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (47) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (48) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (49) returning to 'rmdirfd' from 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (50) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:506:33:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (51) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (52) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (53) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:506:33:
cc1: note: (54) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (55) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (56) second 'close' here; first 'close' was at (43) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*next.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (27) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (28) calling 'xstrdup' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (32) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) 'xstrdup(&*next.d_name)' leaks here; was allocated at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: warning: leak of 'get_run_directory(state_root)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'true' branch (when 'state_root' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (6) calling 'xstrdup' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (7) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (8) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (11) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (12) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (14) returning to 'get_run_directory' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:66:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (19) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (20) 'get_run_directory(state_root)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'read_pid_stat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: warning: leak of file descriptor 'open(&pid_stat_file, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (7) 'open(&pid_stat_file, 524288)' leaks here; was opened at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'rmdirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: warning: leak of 'fdopendir(fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: note: (2) 'fdopendir(fd)' leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: warning: leak of file descriptor 'open(get_run_directory(state_root), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:69:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (14) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (15) following 'false' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (17) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (18) 'open(get_run_directory(state_root), 2686976)' leaks here; was opened at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:45:9: note: (4) 'root' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (5) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) 'root' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:58:15: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (15) argument 1 ('get_run_directory(state_root)') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:27: <--[gcc]
/usr/include/dirent.h:141:13: note: argument 1 of 'opendir' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: warning: leak of 'opendir(get_run_directory(state_root))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:69:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (16) 'opendir(get_run_directory(state_root))' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_status_create_exec_fifo': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: warning: leak of file descriptor 'open(fifo_path, 526336)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:678:1: note: (1) entry to 'libcrun_status_create_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:680:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_create_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:83:7: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:680:34: note: (13) returning to 'libcrun_status_create_exec_fifo' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:685:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:688:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:690:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (19) 'open(fifo_path, 526336)' leaks here; was opened at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_status_write_exec_fifo': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: warning: leak of file descriptor 'open(fifo_path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:701:1: note: (1) entry to 'libcrun_status_write_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:703:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_write_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:83:7: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:703:34: note: (13) returning to 'libcrun_status_write_exec_fifo' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:712:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (17) 'open(fifo_path, 524289)' leaks here; was opened at (16) <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/crun-cloned_binary.o -MD -MP -MF src/libcrun/.deps/crun-cloned_binary.Tpo -c -o src/libcrun/crun-cloned_binary.o `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c
mv -f src/libcrun/.deps/crun-cloned_binary.Tpo src/libcrun/.deps/crun-cloned_binary.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/blake3/libcrun_la-blake3.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo -c -o src/libcrun/blake3/libcrun_la-blake3.lo `test -f 'src/libcrun/blake3/blake3.c' || echo './'`src/libcrun/blake3/blake3.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo -c src/libcrun/blake3/blake3.c -o src/libcrun/blake3/libcrun_la-blake3.o
mv -f src/libcrun/blake3/.deps/libcrun_la-blake3.Tpo src/libcrun/blake3/.deps/libcrun_la-blake3.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/blake3/libcrun_la-blake3_portable.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo -c -o src/libcrun/blake3/libcrun_la-blake3_portable.lo `test -f 'src/libcrun/blake3/blake3_portable.c' || echo './'`src/libcrun/blake3/blake3_portable.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/blake3/libcrun_la-blake3_portable.lo -MD -MP -MF src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo -c src/libcrun/blake3/blake3_portable.c -o src/libcrun/blake3/libcrun_la-blake3_portable.o
mv -f src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Tpo src/libcrun/blake3/.deps/libcrun_la-blake3_portable.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup-cgroupfs.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo -c -o src/libcrun/libcrun_la-cgroup-cgroupfs.lo `test -f 'src/libcrun/cgroup-cgroupfs.c' || echo './'`src/libcrun/cgroup-cgroupfs.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-cgroupfs.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo -c src/libcrun/cgroup-cgroupfs.c -o src/libcrun/libcrun_la-cgroup-cgroupfs.o
mv -f src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Tpo src/libcrun/.deps/libcrun_la-cgroup-cgroupfs.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup-resources.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo -c -o src/libcrun/libcrun_la-cgroup-resources.lo `test -f 'src/libcrun/cgroup-resources.c' || echo './'`src/libcrun/cgroup-resources.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-resources.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo -c src/libcrun/cgroup-resources.c -o src/libcrun/libcrun_la-cgroup-resources.o
mv -f src/libcrun/.deps/libcrun_la-cgroup-resources.Tpo src/libcrun/.deps/libcrun_la-cgroup-resources.Plo
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:43: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'fetchve': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: warning: leak of 'read_file("/proc/self/cmdline", &cmdline_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (5) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (6) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (7) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (8) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (16) calling 'xrealloc' from 'read_file' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:61: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (17) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (36) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (37) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (38) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (41) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (44) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (45) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (46) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (47) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (48) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (49) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (52) returning to 'fetchve' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (53) 'read_file("/proc/self/cmdline", &cmdline_size)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'parse_xargs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:523:16: note: (2) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (5) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (6) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (7) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (8) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (9) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (17) calling 'xrealloc' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (18) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch (when 'data' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (34) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:19: note: (35) following 'false' branch... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (39) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:18: note: (40) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL '*output + (long unsigned int)num * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/blake3/blake3.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/blake3/blake3.c:229: warning: uninitvar(CWE-457): Uninitialized variable: parents_array <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c: In function 'libcrun_precreate_cgroup_cgroupfs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: warning: leak of file descriptor 'open(cgroup_path, 720896)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:68:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:71:9: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:72:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:78:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:79:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-cgroupfs.c:82:12: note: (8) 'open(cgroup_path, 720896)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'cgroup_dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (15) assuming 'cgroup_dirfd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1290:21: note: (18) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:23: <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v2_resources' at src/libcrun/cgroup-resources.c:1290:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (19) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (20) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1290:21: note: (21) inlined call to 'cleanup_closep' from 'update_cgroup_v2_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v2_resources' at src/libcrun/cgroup-resources.c:1290:21:
cc1: note: (22) calling 'cleanup_closep.part.0' from 'update_cgroup_v2_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (23) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (24) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (25) following 'true' branch... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (27) second 'close' here; first 'close' was at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd_netprio' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (19) assuming 'dirfd_netprio' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (22) calling 'write_network_resources' from 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:445:1: note: (23) entry to 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:451:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (26) returning to 'update_cgroup_v1_resources' from 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1134:10: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (28) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (30) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (32) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
cc1: note: (33) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (34) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (35) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (36) following 'true' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (38) second 'close' here; first 'close' was at (35) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (20) calling 'write_network_resources' from 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:445:1: note: (21) entry to 'write_network_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:451:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:10: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:458:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:463:10: note: (26) following 'false' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (28) inlined call to 'cleanup_closep' from 'write_network_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_network_resources' at src/libcrun/cgroup-resources.c:461:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (29) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:461:25: note: (31) inlined call to 'cleanup_closep' from 'write_network_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_network_resources' at src/libcrun/cgroup-resources.c:461:25:
cc1: note: (32) calling 'cleanup_closep.part.0' from 'write_network_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (33) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (34) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (35) following 'true' branch... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (37) second 'close' here; first 'close' was at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:278:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:322:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:322:10: note: (26) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:328:14: note: (28) following 'false' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (30) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (31) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (32) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:324:29: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:324:29:
cc1: note: (34) calling 'cleanup_closep.part.0' from 'write_blkio_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (35) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (36) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (37) following 'true' branch... <--[gcc]
cc1: note: (38) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (39) second 'close' here; first 'close' was at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd_netclass' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (17) assuming 'dirfd_netclass' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1130:10: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1133:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1134:10: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1114:25: note: (23) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1114:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (25) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1112:25: note: (27) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1112:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (28) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1112:25: note: (30) inlined call to 'cleanup_closep' from 'update_cgroup_v1_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'update_cgroup_v1_resources' at src/libcrun/cgroup-resources.c:1112:25:
cc1: note: (31) calling 'cleanup_closep.part.0' from 'update_cgroup_v1_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (32) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (33) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (34) following 'true' branch... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (36) second 'close' here; first 'close' was at (33) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'wfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:395:13: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:397:10: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:400:13: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:402:10: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:405:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:407:10: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:410:13: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:412:10: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (33) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (35) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (37) inlined call to 'cleanup_closep' from 'write_blkio_resources' <--[gcc]
In function 'cleanup_closep',
    inlined from 'write_blkio_resources' at src/libcrun/cgroup-resources.c:385:25:
cc1: note: (38) calling 'cleanup_closep.part.0' from 'write_blkio_resources'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (39) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (40) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (41) following 'true' branch... <--[gcc]
cc1: note: (42) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (43) second 'close' here; first 'close' was at (40) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'write_unified_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1349:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1351:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1351:13: note: (18) calling 'write_unified_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1251:1: note: (19) entry to 'write_unified_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1256:17: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1258:25: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1263:11: note: (22) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1263:10: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1266:46: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1266:11: note: (25) inlined call to 'is_empty_string' from 'write_unified_resources' <--[gcc]
In function 'is_empty_string',
    inlined from 'write_unified_resources' at src/libcrun/cgroup-resources.c:1266:11:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'write_unified_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (28) calling 'xstrdup' from 'write_unified_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (32) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1269:15: note: (36) returning to 'write_unified_resources' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) 'xstrdup(*<unknown>)' leaks here; was allocated at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'check_cgroup_v2_controller_available_wrapper': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1333:6: note: (16) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1335:13: note: (18) calling 'write_blkio_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:271:1: note: (19) entry to 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:311:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:320:12: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:383:6: note: (22) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:385:25: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:389:10: note: (24) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:391:39: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:392:18: note: (26) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_blkio_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:131:1: note: (27) entry to 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:133:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:136:3: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:139:6: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:141:26: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:150:13: note: (32) calling 'xstrdup' from 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (33) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (34) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (36) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (38) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:150:13: note: (40) returning to 'check_cgroup_v2_controller_available_wrapper' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (41) 'xstrdup(name)' leaks here; was allocated at (36) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:152:12: warning: use of NULL 'controllers' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1289:22: note: (10) 'cgroup_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1301:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1304:16: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1340:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1342:13: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1342:13: note: (19) calling 'write_hugetlb_resources' from 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:479:1: note: (20) entry to 'write_hugetlb_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:485:17: note: (21) following 'true' branch (when 'i < htlb_len')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:487:26: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:487:26: note: (23) 'filename' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:492:32: note: (24) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:494:50: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:497:13: note: (26) calling 'write_file_and_check_controllers_at' from 'write_hugetlb_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:188:1: note: (27) entry to 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:193:9: note: (28) calling 'write_cgroup_file_or_alias' from 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:69:1: note: (29) entry to 'write_cgroup_file_or_alias' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:74:6: note: (30) following 'false' branch... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:193:9: note: (32) returning to 'write_file_and_check_controllers_at' from 'write_cgroup_file_or_alias' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:194:6: note: (33) following 'true' branch (when 'cgroup2 != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:195:12: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:195:12: note: (35) calling 'check_cgroup_v2_controller_available_wrapper' from 'write_file_and_check_controllers_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:131:1: note: (36) entry to 'check_cgroup_v2_controller_available_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:141:26: note: (37) 'controllers' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:144:13: note: (38) 'controllers' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:152:12: note: (39) argument 1 ('xstrdup(name)') NULL where non-null expected <--[gcc]
<built-in>: note: argument 1 of '__builtin_strchr' must be non-null
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'update_cgroup_v1_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: warning: leak of file descriptor 'open(path_to_blkio, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1090:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1092:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1097:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1100:21: note: (15) 'open(path_to_blkio, 2686976)' leaks here; was opened at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: warning: leak of file descriptor 'open(path_to_netclass, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (17) 'open(path_to_netclass, 2686976)' leaks here; was opened at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: warning: leak of file descriptor 'open(path_to_netprio, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1109:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1111:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1118:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1121:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1122:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1125:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1126:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1129:23: note: (19) 'open(path_to_netprio, 2686976)' leaks here; was opened at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: warning: leak of file descriptor 'open(path_to_htlb, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 2 ... 3:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1400:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1402:14: note: (8) calling 'update_cgroup_v1_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1086:1: note: (9) entry to 'update_cgroup_v1_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1138:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1140:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1144:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1146:20: note: (15) 'open(path_to_htlb, 2686976)' leaks here; was opened at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c: In function 'update_cgroup_v2_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: warning: leak of file descriptor 'open(cgroup_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1360:1: note: (1) entry to 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1370:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1373:6: note: (4) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1395:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1397:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1398:14: note: (8) calling 'update_cgroup_v2_resources' from 'update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1287:1: note: (9) entry to 'update_cgroup_v2_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1293:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1296:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1297:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (14) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-resources.c:1300:18: note: (15) 'open(cgroup_path, 589824)' leaks here; was opened at (14) <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-utils.Tpo -c -o src/libcrun/libcrun_la-utils.lo `test -f 'src/libcrun/utils.c' || echo './'`src/libcrun/utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-utils.Tpo -c src/libcrun/utils.c -o src/libcrun/libcrun_la-utils.o
mv -f src/libcrun/.deps/libcrun_la-utils.Tpo src/libcrun/.deps/libcrun_la-utils.Plo
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'format_default_id_mapping': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1560:12: warning: 'from' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
 1560 |       from += used;
      |            ^~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1544:12: note: 'from' was declared here <--[gcc]
 1544 |   uint32_t from, available;
      |            ^~~~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1561:17: warning: 'available' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
 1561 |       available -= used;
      |                 ^~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1544:18: note: 'available' was declared here <--[gcc]
 1544 |   uint32_t from, available;
      |                  ^~~~~~~~~
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(128)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (6) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (7) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (10) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (11) 'xmalloc(128)' leaks here; was allocated at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_all_fd_with_size_hint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(allocated + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2475:1: note: (1) entry to 'read_file_as_long_or_default' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2483:9: note: (2) calling 'read_all_file' from 'read_file_as_long_or_default' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1050:1: note: (3) entry to 'read_all_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1055:10: note: (4) calling 'read_all_file_at' from 'read_all_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1038:1: note: (5) entry to 'read_all_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1043:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1046:10: note: (7) inlined call to 'read_all_fd' from 'read_all_file_at' <--[gcc]
In function 'read_all_fd',
    inlined from 'read_all_file_at' at src/libcrun/utils.c:1046:10:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (9) calling 'read_all_fd_with_size_hint' from 'read_all_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'read_all_fd_with_size_hint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:975:1: note: (10) entry to 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:983:6: note: (11) following 'false' branch (when 'size_hint == 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (13) calling 'get_file_size' from 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:657:1: note: (14) entry to 'get_file_size' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:667:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:673:14: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:987:13: note: (17) returning to 'read_all_fd_with_size_hint' from 'get_file_size' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:988:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:991:24: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:995:9: note: (20) calling 'xmalloc' from 'read_all_fd_with_size_hint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (21) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (22) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (23) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:995:9: note: (26) returning to 'read_all_fd_with_size_hint' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (27) 'xmalloc(allocated + 1)' leaks here; was allocated at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'copy_from_fd_to_fd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(get_page_size())' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (21) calling 'copy_from_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1279:1: note: (22) entry to 'copy_from_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1304:16: note: (23) calling 'xmalloc' from 'copy_from_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1304:16: note: (29) returning to 'copy_from_fd_to_fd' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(get_page_size())' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'copy_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(xattr_len + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1988:1: note: (1) entry to 'copy_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1995:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2003:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2003:6: note: (4) following 'false' branch (when 'xattr_len != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:28: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:9: note: (6) calling 'xmalloc' from 'copy_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (9) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2006:9: note: (12) returning to 'copy_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (13) 'xmalloc((long unsigned int)(xattr_len + 1))' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (8) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (9) 'xmalloc((long unsigned int)(current_size + 1))' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2569:13: note: (9) calling 'xrealloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (10) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2569:13: note: (15) returning to 'read_dir_entries' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (16) 'xrealloc(entries, (n_entries + 1) * 8)' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries,  entries_size * 16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (11) following 'false' branch (when 'n_entries != entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:24: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (13) calling 'xstrdup' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (14) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (15) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (19) returning to 'read_dir_entries' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (20) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (22) following 'true' branch (when 'n_entries == entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2564:24: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2565:21: note: (24) calling 'xrealloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (25) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (26) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (27) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2565:21: note: (30) returning to 'read_dir_entries' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (31) 'xrealloc(entries,  entries_size * 16)' leaks here; was allocated at (26) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(buffer, (long unsigned int)(current_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (6) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1965:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (9) following 'false' branch (when 'current_size <= s')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1971:20: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (11) calling 'xrealloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (12) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (13) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (17) returning to 'safe_read_xattr' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (18) 'xrealloc(buffer, (long unsigned int)(current_size + 1))' leaks here; was allocated at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'safe_readlinkat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (17) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (18) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (19) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (21) calling 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (22) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (23) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (28) 'xrealloc(tmp_buf, (long unsigned int)(buf_size + 1))' leaks here; was allocated at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'buffer' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'safe_read_xattr': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1953:1: note: (1) entry to 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (2) calling 'xmalloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1960:12: note: (8) returning to 'safe_read_xattr' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1965:10: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1968:10: note: (11) following 'false' branch (when 'current_size <= s')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1971:20: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (13) calling 'xrealloc' from 'safe_read_xattr' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (14) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (15) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (16) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1972:16: note: (19) returning to 'safe_read_xattr' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1955:22: note: (20) inlined call to 'cleanup_freep' from 'safe_read_xattr' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_read_xattr' at src/libcrun/utils.c:1955:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (21) second 'free' here; first 'free' was at (15) <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'tmp_buf' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'safe_readlinkat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2096:26: note: (6) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (22) passing freed pointer 'tmp_buf' in call to 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:423:22: note: (28) inlined call to 'cleanup_freep' from 'safe_readlinkat' <--[gcc]
In function 'cleanup_freep',
    inlined from 'safe_readlinkat' at src/libcrun/utils.c:423:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (29) second 'free' here; first 'free' was at (6) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:26: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'destdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (33) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2109:38: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (35) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (36) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2082:20: note: (38) inlined call to 'cleanup_dirp' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2082:20:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (39) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:198:5: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2081:21: note: (41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (42) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (43) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2081:21: note: (44) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2081:21:
cc1: note: (45) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (46) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (47) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (48) following 'true' branch... <--[gcc]
cc1: note: (49) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (50) second 'close' here; first 'close' was at (47) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'srcfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 16384:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2136:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2138:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2141:19: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2142:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2145:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2146:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2150:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2151:14: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2155:17: note: (25) calling 'copy_recursive_fd_to_fd' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (26) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (29) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (33) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (35) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (39) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2120:42: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (41) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (42) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (43) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (45) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (46) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (47) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2094:25:
cc1: note: (48) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (49) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (50) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (51) following 'true' branch... <--[gcc]
cc1: note: (52) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (53) second 'close' here; first 'close' was at (50) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'destfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2128:14: note: (23) following 'false' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (26) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (27) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2095:25: note: (29) inlined call to 'cleanup_closep' from 'copy_recursive_fd_to_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'copy_recursive_fd_to_fd' at src/libcrun/utils.c:2095:25:
cc1: note: (30) calling 'cleanup_closep.part.0' from 'copy_recursive_fd_to_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (31) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (32) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(getenv("PATH"))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1880:1: note: (1) entry to 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1889:6: note: (2) following 'false' branch (when 'executable_path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:22: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:33: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:66: note: (6) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:63: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:22: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:15: note: (11) calling 'xstrdup' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (12) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (13) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (16) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1923:15: note: (19) returning to 'find_executable' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) 'xstrdup(getenv("PATH"))' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_dir_entries': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*<unknown>.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2542:1: note: (1) entry to 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2551:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (4) calling 'xmalloc' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (5) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2557:13: note: (8) returning to 'read_dir_entries' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2558:10: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:21: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2560:10: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2562:10: note: (13) following 'false' branch (when 'n_entries != entries_size')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (15) calling 'xstrdup' from 'read_dir_entries' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2567:30: note: (23) returning to 'read_dir_entries' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (24) 'xstrdup(&*<unknown>.d_name)' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(executable_path)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1880:1: note: (1) entry to 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1889:6: note: (2) following 'false' branch (when 'executable_path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:22: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1895:33: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1915:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (8) calling 'check_access' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1853:1: note: (9) entry to 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1866:9: note: (10) inlined call to 'get_file_type' from 'check_access' <--[gcc]
In function 'get_file_type',
    inlined from 'check_access' at src/libcrun/utils.c:1866:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:232:10: note: (11) calling 'get_file_type_at' from 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:200:1: note: (12) entry to 'get_file_type_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:202:49: note: (13) following 'false' branch (when 'path' is non-NULL)... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:80: note: (15) following 'false' branch (when 'nofollow == 0')... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:9: note: (17) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:211:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1866:9: note: (19) inlined call to 'get_file_type' from 'check_access' <--[gcc]
In function 'get_file_type',
    inlined from 'check_access' at src/libcrun/utils.c:1866:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:232:10: note: (20) returning to 'check_access' from 'get_file_type_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'find_executable': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1917:13: note: (21) returning to 'find_executable' from 'check_access' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1918:10: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (24) calling 'xstrdup' from 'find_executable' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (25) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (26) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (30) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:1919:16: note: (32) returning to 'find_executable' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) 'xstrdup(executable_path)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'copy_recursive_fd_to_fd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: warning: leak of 'fdopendir(srcdirfd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2085:12: note: (2) 'fdopendir(srcdirfd)' leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: warning: double 'close' of file descriptor 'srcdirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (1) following 'true' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: note: (3) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:7: note: (4) following 'true' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2088:27: note: (6) second 'close' here; first 'close' was at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: warning: double 'close' of file descriptor 'destfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (9) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (12) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (15) following 'case 32768:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2113:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2115:14: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2118:20: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2119:14: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2122:17: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2123:14: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2127:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2128:14: note: (23) following 'false' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:11: note: (26) following 'true' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2132:31: note: (28) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: warning: use of NULL 'target_buf' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2079:1: note: (1) entry to 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2086:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2092:31: note: (4) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2094:25: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2096:26: note: (6) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2104:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (9) calling 'copy_rec_stat_file_at' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2037:1: note: (10) entry to 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2049:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2051:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2107:13: note: (13) returning to 'copy_recursive_fd_to_fd' from 'copy_rec_stat_file_at' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2108:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:20: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2111:7: note: (16) following 'case 40960:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2161:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (18) calling 'safe_readlinkat' from 'copy_recursive_fd_to_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:420:1: note: (19) entry to 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:428:10: note: (20) following 'false' branch (when 'tmp_buf' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:45: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (22) calling 'xrealloc' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (23) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (24) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:432:17: note: (27) returning to 'safe_readlinkat' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2162:17: note: (28) returning to 'copy_recursive_fd_to_fd' from 'safe_readlinkat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2163:14: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (31) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (32) 'target_buf' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2166:17: note: (33) argument 1 ('target_buf') NULL where non-null expected <--[gcc]
/usr/include/unistd.h:847:12: note: argument 1 of 'symlinkat' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c: In function 'read_file_as_long_or_default': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2491:9: warning: use of NULL 'content' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2477:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2484:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2490:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.c:2491:9: note: (4) argument 1 ('content') NULL where non-null expected <--[gcc]
In file included from /usr/include/features.h:511, <--[gcc]
                 from /usr/include/bits/libc-header-start.h:33, <--[gcc]
                 from /usr/include/stdio.h:28, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:22: <--[gcc]
/usr/include/stdlib.h:215:17: note: argument 1 of 'strtol' must be non-null <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup-setup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo -c -o src/libcrun/libcrun_la-cgroup-setup.lo `test -f 'src/libcrun/cgroup-setup.c' || echo './'`src/libcrun/cgroup-setup.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-setup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo -c src/libcrun/cgroup-setup.c -o src/libcrun/libcrun_la-cgroup-setup.o
mv -f src/libcrun/.deps/libcrun_la-cgroup-setup.Tpo src/libcrun/.deps/libcrun_la-cgroup-setup.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-chroot_realpath.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo -c -o src/libcrun/libcrun_la-chroot_realpath.lo `test -f 'src/libcrun/chroot_realpath.c' || echo './'`src/libcrun/chroot_realpath.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-chroot_realpath.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo -c src/libcrun/chroot_realpath.c -o src/libcrun/libcrun_la-chroot_realpath.o
mv -f src/libcrun/.deps/libcrun_la-chroot_realpath.Tpo src/libcrun/.deps/libcrun_la-chroot_realpath.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-custom-handler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-custom-handler.Tpo -c -o src/libcrun/libcrun_la-custom-handler.lo `test -f 'src/libcrun/custom-handler.c' || echo './'`src/libcrun/custom-handler.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-custom-handler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-custom-handler.Tpo -c src/libcrun/custom-handler.c -o src/libcrun/libcrun_la-custom-handler.o
mv -f src/libcrun/.deps/libcrun_la-custom-handler.Tpo src/libcrun/.deps/libcrun_la-custom-handler.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup.Tpo -c -o src/libcrun/libcrun_la-cgroup.lo `test -f 'src/libcrun/cgroup.c' || echo './'`src/libcrun/cgroup.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup.Tpo -c src/libcrun/cgroup.c -o src/libcrun/libcrun_la-cgroup.o
mv -f src/libcrun/.deps/libcrun_la-cgroup.Tpo src/libcrun/.deps/libcrun_la-cgroup.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cloned_binary.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cloned_binary.Tpo -c -o src/libcrun/libcrun_la-cloned_binary.lo `test -f 'src/libcrun/cloned_binary.c' || echo './'`src/libcrun/cloned_binary.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cloned_binary.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cloned_binary.Tpo -c src/libcrun/cloned_binary.c -o src/libcrun/libcrun_la-cloned_binary.o
mv -f src/libcrun/.deps/libcrun_la-cloned_binary.Tpo src/libcrun/.deps/libcrun_la-cloned_binary.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-ebpf.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-ebpf.Tpo -c -o src/libcrun/libcrun_la-ebpf.lo `test -f 'src/libcrun/ebpf.c' || echo './'`src/libcrun/ebpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-ebpf.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-ebpf.Tpo -c src/libcrun/ebpf.c -o src/libcrun/libcrun_la-ebpf.o
mv -f src/libcrun/.deps/libcrun_la-ebpf.Tpo src/libcrun/.deps/libcrun_la-ebpf.Plo
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_unified_cgroup_pid': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(from)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:408:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:411:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:419:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:422:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:423:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:426:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:439:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:442:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:454:10: note: (14) following 'true' branch (when 'init_pid > 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (16) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:294:1: note: (17) entry to 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:304:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (20) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:308:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:311:8: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:313:8: note: (23) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:314:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:316:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:318:11: note: (26) calling 'xstrdup' from 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (27) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (28) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (30) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (31) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:318:11: note: (34) returning to 'read_unified_cgroup_pid' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (35) 'xstrdup(from)' leaks here; was allocated at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem_rec': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: warning: leak of file descriptor 'open(path, 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:338:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:341:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:342:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:352:19: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:353:8: note: (10) following 'true' branch (when 'has_data != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:359:11: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:371:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (16) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:197:1: note: (17) entry to 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:204:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (20) following 'true' branch (when 'create_if_missing != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:209:13: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:210:10: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:10: note: (24) following 'true' branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (26) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:148:1: note: (27) entry to 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (28) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: note: (35) calling 'initialize_cpuset_subsystem_rec' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:43:1: note: (36) entry to 'initialize_cpuset_subsystem_rec' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: note: (37) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:53:11: note: (38) 'open(path, 2686976)' leaks here; was opened at (37) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'initialize_cpuset_subsystem': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'false' branch (when 'cgroup_mode != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:505:13: note: (4) calling 'enter_cgroup_v1' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:323:1: note: (5) entry to 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:325:22: note: (6) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:338:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:341:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:342:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:352:19: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:353:8: note: (11) following 'true' branch (when 'has_data != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:359:11: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:371:10: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:373:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:377:13: note: (17) calling 'enter_cgroup_subsystem' from 'enter_cgroup_v1' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:197:1: note: (18) entry to 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:200:22: note: (19) 'cgroup_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:204:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:207:6: note: (22) following 'true' branch (when 'create_if_missing != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:209:13: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:210:10: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:11: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:219:10: note: (26) following 'true' branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:221:17: note: (28) calling 'initialize_cpuset_subsystem' from 'enter_cgroup_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:148:1: note: (29) entry to 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (30) calling 'xstrdup' from 'initialize_cpuset_subsystem' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'true' branch (when 'str' is NULL)... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:150:33: note: (34) returning to 'initialize_cpuset_subsystem' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:155:10: note: (35) argument 1 ('xstrdup(path)') NULL where non-null expected <--[gcc]
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c: In function 'enter_cgroup_v2': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: warning: use of NULL 'cgroup_crun_exec_path' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:493:1: note: (1) entry to 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:497:6: note: (2) following 'true' branch (when 'cgroup_mode == 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:499:13: note: (4) calling 'enter_cgroup_v2' from 'enter_cgroup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:397:1: note: (5) entry to 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:399:22: note: (6) 'cgroup_path_procs' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:400:22: note: (7) 'cgroup_path_procs' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:408:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:411:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:419:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:422:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:423:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:426:17: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:439:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:442:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:450:26: note: (16) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:451:26: note: (17) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:454:10: note: (18) following 'true' branch (when 'init_pid > 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (20) calling 'read_unified_cgroup_pid' from 'enter_cgroup_v2' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:294:1: note: (21) entry to 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:299:22: note: (22) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:307:10: note: (23) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:308:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:86:25: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:309:12: note: in expansion of macro 'crun_make_error' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:456:17: note: (26) returning to 'enter_cgroup_v2' from 'read_unified_cgroup_pid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:457:14: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (29) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (30) 'cgroup_crun_exec_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-setup.c:461:15: note: (31) argument 2 ('cgroup_crun_exec_path') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:23: <--[gcc]
/usr/include/string.h:159:12: note: argument 2 of 'strncmp' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/chroot_realpath.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_cgroup_enter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(24)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (8) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(24)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_destroy': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:195:1: note: (1) entry to 'libcrun_cgroup_destroy' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:197:34: note: (2) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:200:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_cgroup_destroy' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:200:9: note: (7) returning to 'libcrun_cgroup_destroy' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:201:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (10) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:204:24: note: (11) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_update_cgroup_resources': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:208:1: note: (1) entry to 'libcrun_update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:213:34: note: (2) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:216:9: note: (3) calling 'get_cgroup_manager' from 'libcrun_update_cgroup_resources' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (4) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (5) following 'default:' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:216:9: note: (7) returning to 'libcrun_update_cgroup_resources' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:217:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (10) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:220:21: note: (11) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_preenter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:259:1: note: (1) entry to 'libcrun_cgroup_preenter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:268:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:271:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:271:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (6) calling 'get_cgroup_manager' from 'libcrun_cgroup_preenter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (7) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (8) following 'default:' branch... <--[gcc]
cc1: note: (9) ...to here
cc1: note: (10) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (11) entry to 'get_cgroup_manager.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (12) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (13) 'cgroup_manager' is NULL <--[gcc]
cc1: note: (14) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:274:9: note: (15) returning to 'libcrun_cgroup_preenter' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:275:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (18) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:278:21: note: (19) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c: In function 'libcrun_cgroup_enter': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: warning: dereference of NULL 'cgroup_manager' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:285:1: note: (1) entry to 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (2) calling 'xmalloc0' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:289:64: note: (6) returning to 'libcrun_cgroup_enter' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:297:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:305:7: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:329:9: note: (9) calling 'get_cgroup_manager' from 'libcrun_cgroup_enter' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (10) entry to 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:68:3: note: (11) following 'default:' branch... <--[gcc]
cc1: note: (12) ...to here
cc1: note: (13) calling 'get_cgroup_manager.part.0' from 'get_cgroup_manager'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:66:1: note: (14) entry to 'get_cgroup_manager.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (15) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:83:8: note: (16) 'cgroup_manager' is NULL <--[gcc]
cc1: note: (17) returning to 'get_cgroup_manager' from 'get_cgroup_manager.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:329:9: note: (18) returning to 'libcrun_cgroup_enter' from 'get_cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:330:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:333:25: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: note: (21) 'cgroup_manager' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.c:335:23: note: (22) dereference of NULL 'cgroup_manager' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:43: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'fetchve': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: warning: leak of 'read_file("/proc/self/cmdline", &cmdline_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (5) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (6) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (7) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (8) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (16) calling 'xrealloc' from 'read_file' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:61: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (17) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch... <--[gcc]
cc1: note: (33) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (34) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (36) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (37) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (38) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (41) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:217:20: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (44) calling 'xrealloc' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (45) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (46) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (47) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (48) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:218:27: note: (49) returning to 'parse_xargs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (52) returning to 'fetchve' from 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (53) 'read_file("/proc/self/cmdline", &cmdline_size)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c: In function 'parse_xargs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:520:5: note: (1) entry to 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:523:16: note: (2) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:527:12: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:530:13: note: (5) calling 'fetchve' from 'ensure_cloned_binary' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:231:12: note: (6) entry to 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (7) calling 'read_file' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:168:14: note: (8) entry to 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:173:12: note: (9) following 'false' branch (when 'length' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:176:14: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:177:12: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:180:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:40: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (17) calling 'xrealloc' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (18) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (19) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:190:24: note: (22) returning to 'read_file' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:185:20: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:187:20: note: (25) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:194:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:236:19: note: (27) returning to 'fetchve' from 'read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:237:12: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:240:13: note: (30) calling 'parse_xargs' from 'fetchve' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:208:12: note: (31) entry to 'parse_xargs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:12: note: (32) following 'false' branch (when 'data' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:22: note: (34) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:213:19: note: (35) following 'false' branch... <--[gcc]
cc1: note: (36) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:216:20: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:10: note: (39) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:18: note: (40) 'argv' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cloned_binary.c:222:24: note: (41) dereference of NULL '*output + (long unsigned int)num * 8' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(progs,  cur_size * 4)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:387:13: note: (2) calling 'read_all_progs' from 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (3) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:282:32: note: (4) following 'true' branch (when 'cur_size <= 4096')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (6) calling 'xrealloc' from 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (13) 'xrealloc(progs,  cur_size * 4)' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_ebpf_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(log,  log_size)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (4) calling 'xrealloc' from 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (7) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (10) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (11) 'xrealloc(log,  log_size)' leaks here; was allocated at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'progs' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:381:30: note: (2) first 'free' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:387:13: note: (3) calling 'read_all_progs' from 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (4) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:282:32: note: (5) following 'true' branch (when 'cur_size <= 4096')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (7) passing freed pointer 'progs' in call to 'xrealloc' from 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (8) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (9) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:284:15: note: (12) returning to 'read_all_progs' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:275:26: note: (13) inlined call to 'cleanup_freep' from 'read_all_progs' <--[gcc]
In function 'cleanup_freep',
    inlined from 'read_all_progs' at src/libcrun/ebpf.c:275:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (14) second 'free' here; first 'free' was at (2) <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_ebpf_load' at src/libcrun/ebpf.c:507:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'log' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'libcrun_ebpf_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:475:1: note: (1) entry to 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:504:6: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (4) passing freed pointer 'log' in call to 'xrealloc' from 'libcrun_ebpf_load' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:511:13: note: (9) returning to 'libcrun_ebpf_load' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:507:26: note: (10) inlined call to 'cleanup_freep' from 'libcrun_ebpf_load' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_ebpf_load' at src/libcrun/ebpf.c:507:26:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (11) second 'free' here <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c: In function 'read_all_progs': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: warning: infinite loop [CWE-835] [-Wanalyzer-infinite-loop] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:363:1: note: (1) entry to 'ebpf_attach_program' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:272:1: note: (2) entry to 'read_all_progs' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (3) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (4) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (5) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (6) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (7) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (8) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (9) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (10) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (11) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (12) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (15) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (16) when 'realloc' succeeds, without moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (17) infinite loop here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (18) when 'ret < 0': always following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.h:25: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:21: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (20) if it ever follows 'true' branch, it will always do so... <--[gcc]
cc1: note: (21) ...to here
cc1: note: (22) looping back...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/ebpf.c:294:18: note: (23) ...to here <--[gcc]
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-error.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-error.Tpo -c -o src/libcrun/libcrun_la-error.lo `test -f 'src/libcrun/error.c' || echo './'`src/libcrun/error.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-error.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-error.Tpo -c src/libcrun/error.c -o src/libcrun/libcrun_la-error.o
mv -f src/libcrun/.deps/libcrun_la-error.Tpo src/libcrun/.deps/libcrun_la-error.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo -c -o src/libcrun/libcrun_la-cgroup-utils.lo `test -f 'src/libcrun/cgroup-utils.c' || echo './'`src/libcrun/cgroup-utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-utils.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo -c src/libcrun/cgroup-utils.c -o src/libcrun/libcrun_la-cgroup-utils.o
mv -f src/libcrun/.deps/libcrun_la-cgroup-utils.Tpo src/libcrun/.deps/libcrun_la-cgroup-utils.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-criu.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-criu.Tpo -c -o src/libcrun/libcrun_la-criu.lo `test -f 'src/libcrun/criu.c' || echo './'`src/libcrun/criu.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-criu.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-criu.Tpo -c src/libcrun/criu.c -o src/libcrun/libcrun_la-criu.o
mv -f src/libcrun/.deps/libcrun_la-criu.Tpo src/libcrun/.deps/libcrun_la-criu.Plo
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /usr/include/sys/syslog.h:207, <--[gcc]
In function 'write_log':
                 from /usr/include/syslog.h:1, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:41, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:26, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:27: <--[gcc]
In function 'syslog',
    inlined from 'log_write_to_syslog' at src/libcrun/error.c:310:5:
/usr/include/bits/syslog.h:37:3: warning: 'priority' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
   37 |   __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'log_write_to_syslog': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: 'priority' was declared here <--[gcc]
  294 |   int priority;
      |       ^~~~~~~~
cc1: warning: leak of 'make_json_error(output,  errno_,  verbosity)' [CWE-401] [-Wanalyzer-malloc-leak]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:433:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:437:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:446:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[gcc]
cc1: note: (10) following 'true' branch...
cc1: note: (11) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:415:6: note: (14) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:416:11: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:416:11: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (17) returning to 'write_log' from 'make_json_error' <--[gcc]
cc1: note: (18) 'make_json_error(output,  errno_,  verbosity)' leaks here; was allocated at (16)
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'log_write_to_syslog': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (5) following 'true' branch (when 'errno_ == 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:308:5: note: (7) use of uninitialized value 'priority' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: warning: use of uninitialized value 'priority' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:294:7: note: (2) capacity: 4 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:307:6: note: (5) following 'false' branch (when 'errno_ != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:310:5: note: (7) use of uninitialized value 'priority' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c: In function 'make_json_error': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (2) capacity: 8 bytes <--[gcc]
cc1: note: (3) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:379:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: note: (7) use of uninitialized value 'level' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: warning: use of uninitialized value 'level' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:424:1: note: (1) entry to 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:430:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:433:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:434:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:437:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:440:3: note: (6) following 'case 1:' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:446:5: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:447:14: note: (8) calling 'make_json_error' from 'write_log' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:364:1: note: (9) entry to 'make_json_error' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (10) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:366:15: note: (11) capacity: 8 bytes <--[gcc]
cc1: note: (12) following 'false' branch...
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:379:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:388:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:391:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.c:407:3: note: (16) use of uninitialized value 'level' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-internal.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'write_controller_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(controllers_len + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (9) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (12) returning to 'write_controller_file' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (13) 'xmalloc(controllers_len + 1)' leaks here; was allocated at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'maybe_make_cgroup_threaded': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(t)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:758:1: note: (1) entry to 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:773:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:775:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:776:6: note: (4) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (6) calling 'xmalloc' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (7) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:778:45: note: (10) returning to 'write_controller_file' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:807:10: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:809:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:809:17: note: (13) calling 'maybe_make_cgroup_threaded' from 'write_controller_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:75:1: note: (14) entry to 'maybe_make_cgroup_threaded' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:88:20: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:91:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:92:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:95:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:96:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:99:12: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:106:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (23) calling 'xstrdup' from 'maybe_make_cgroup_threaded' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:109:12: note: (31) returning to 'maybe_make_cgroup_threaded' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (32) 'xstrdup(t)' leaks here; was allocated at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: warning: leak of file descriptor 'open(path_to_cgroup, 2818048)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:944:1: note: (1) entry to 'libcrun_get_cgroup_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:952:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:955:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:955:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:958:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:958:6: note: (6) following 'false' branch (when 'status' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:961:30: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:961:7: note: (8) inlined call to 'is_empty_string' from 'libcrun_get_cgroup_dirfd' <--[gcc]
In function 'is_empty_string',
    inlined from 'libcrun_get_cgroup_dirfd' at src/libcrun/cgroup-utils.c:961:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c: In function 'libcrun_get_cgroup_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:964:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:965:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (13) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-utils.c:968:17: note: (14) 'open(path_to_cgroup, 2818048)' leaks here; was opened at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:185:1: note: (1) entry to 'criu_notify' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:187:6: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:197:10: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:200:34: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:203:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:208:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:209:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (9) inlined call to 'cleanup_closep' from 'criu_notify' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:35: <--[gcc]
In function 'cleanup_closep',
    inlined from 'criu_notify' at src/libcrun/criu.c:192:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (11) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (12) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:192:25: note: (13) inlined call to 'cleanup_closep' from 'criu_notify' <--[gcc]
In function 'cleanup_closep',
    inlined from 'criu_notify' at src/libcrun/criu.c:192:25:
cc1: note: (14) calling 'cleanup_closep.part.0' from 'criu_notify'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (15) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (16) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (17) following 'true' branch... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (19) second 'close' here; first 'close' was at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'root_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:658:1: note: (1) entry to 'prepare_restore_mounts' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:663:17: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:665:23: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:673:10: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:678:21: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:680:30: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:708:10: note: (9) assuming 'root_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:708:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:711:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:716:14: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:667:25: note: (13) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[gcc]
In function 'cleanup_closep',
    inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (15) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:667:25: note: (17) inlined call to 'cleanup_closep' from 'prepare_restore_mounts' <--[gcc]
In function 'cleanup_closep',
    inlined from 'prepare_restore_mounts' at src/libcrun/criu.c:667:25:
cc1: note: (18) calling 'cleanup_closep.part.0' from 'prepare_restore_mounts'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (19) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (20) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (21) following 'true' branch... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (23) second 'close' here; first 'close' was at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:446:18: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:494:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:515:9: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:398:21: note: (26) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (27) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:398:21: note: (29) inlined call to 'cleanup_closep' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_checkpoint_linux_criu' at src/libcrun/criu.c:398:21:
cc1: note: (30) calling 'cleanup_closep.part.0' from 'libcrun_container_checkpoint_linux_criu'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (31) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (32) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (33) following 'true' branch... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (35) second 'close' here; first 'close' was at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'image_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (21) assuming 'image_fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (28) following 'false' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/json_common.h:9, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src/ocispec/runtime_spec_schema_config_schema.h:7, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:32: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (30) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:743:21: note: (31) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:743:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:740:21: note: (33) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (34) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:740:21: note: (36) inlined call to 'cleanup_closep' from 'libcrun_container_restore_linux_criu' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_restore_linux_criu' at src/libcrun/criu.c:740:21:
cc1: note: (37) calling 'cleanup_closep.part.0' from 'libcrun_container_restore_linux_criu'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (38) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (39) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (40) following 'true' branch... <--[gcc]
cc1: note: (41) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (42) second 'close' here; first 'close' was at (39) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_restore_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*status.bundle)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:872:6: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:37: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:22: note: (30) calling 'xstrdup' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (34) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (35) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (36) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:873:22: note: (38) returning to 'libcrun_container_restore_linux_criu' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (39) 'xstrdup(*status.bundle)' leaks here; was allocated at (34) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'restore_cgroup_v1_mount': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:298:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:281:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:25: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:298:22: note: (19) dereference of NULL 'strchr(subsystem, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:300:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:253:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:255:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:262:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:265:6: note: (5) following 'false' branch... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:278:6: note: (7) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:281:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:282:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:25: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:285:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:288:51: note: (13) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:290:26: note: (15) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:291:26: note: (16) 'destination' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:296:19: note: (17) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:297:17: note: (18) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:300:20: note: (19) dereference of NULL 'strchr(from, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'checkpoint_cgroup_v1_mount': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:365:22: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:349:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:25: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:15: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:365:22: note: (14) dereference of NULL 'strchr(subsystem, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:367:20: warning: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:329:22: note: (1) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:331:9: note: (2) 'content' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:346:6: note: (3) following 'true' branch (when 'has_cgroup_mount != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:349:9: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:350:6: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:25: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:353:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:15: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:356:51: note: (9) following 'true' branch (when 'from' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:358:26: note: (11) 'source_path' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:363:19: note: (12) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:364:17: note: (13) when 'strchr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:367:20: note: (14) dereference of NULL 'strchr(from, 58)' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'libcrun_container_checkpoint_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:442:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:390:1: note: (1) entry to 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (2) calling 'load_wrapper' from 'libcrun_container_checkpoint_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:404:9: note: (9) returning to 'libcrun_container_checkpoint_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:405:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:408:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:428:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:429:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:432:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:435:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:438:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:443:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:446:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:460:6: note: (22) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (24) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:462:17: note: (25) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'prepare_restore_mounts': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: warning: leak of file descriptor 'open(root, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:663:17: note: (1) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:665:23: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:673:10: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:678:21: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:680:30: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:707:17: note: (8) 'open(root, 524288)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c: In function 'libcrun_container_restore_linux_criu': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: warning: leak of file descriptor 'open(*cr_options.image_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (20) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (21) 'open(*cr_options.image_path, 589824)' leaks here; was opened at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: warning: leak of file descriptor 'open(*cr_options.work_path, 589824)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:819:6: note: (28) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (30) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:821:17: note: (31) 'open(*cr_options.work_path, 589824)' leaks here; was opened at (30) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: warning: leak of file descriptor 'open(**_148.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to heremake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-handler-utils.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo -c -o src/libcrun/handlers/libcrun_la-handler-utils.lo `test -f 'src/libcrun/handlers/handler-utils.c' || echo './'`src/libcrun/handlers/handler-utils.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-handler-utils.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo -c src/libcrun/handlers/handler-utils.c -o src/libcrun/handlers/libcrun_la-handler-utils.o
mv -f src/libcrun/handlers/.deps/libcrun_la-handler-utils.Tpo src/libcrun/handlers/.deps/libcrun_la-handler-utils.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-cgroup-systemd.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo -c -o src/libcrun/libcrun_la-cgroup-systemd.lo `test -f 'src/libcrun/cgroup-systemd.c' || echo './'`src/libcrun/cgroup-systemd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-cgroup-systemd.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo -c src/libcrun/cgroup-systemd.c -o src/libcrun/libcrun_la-cgroup-systemd.o
mv -f src/libcrun/.deps/libcrun_la-cgroup-systemd.Tpo src/libcrun/.deps/libcrun_la-cgroup-systemd.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-wasmtime.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmtime.lo `test -f 'src/libcrun/handlers/wasmtime.c' || echo './'`src/libcrun/handlers/wasmtime.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmtime.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo -c src/libcrun/handlers/wasmtime.c -o src/libcrun/handlers/libcrun_la-wasmtime.o
mv -f src/libcrun/handlers/.deps/libcrun_la-wasmtime.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmtime.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-mono.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-mono.Tpo -c -o src/libcrun/handlers/libcrun_la-mono.lo `test -f 'src/libcrun/handlers/mono.c' || echo './'`src/libcrun/handlers/mono.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-mono.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-mono.Tpo -c src/libcrun/handlers/mono.c -o src/libcrun/handlers/libcrun_la-mono.o
mv -f src/libcrun/handlers/.deps/libcrun_la-mono.Tpo src/libcrun/handlers/.deps/libcrun_la-mono.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-wasmer.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmer.lo `test -f 'src/libcrun/handlers/wasmer.c' || echo './'`src/libcrun/handlers/wasmer.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmer.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo -c src/libcrun/handlers/wasmer.c -o src/libcrun/handlers/libcrun_la-wasmer.o
mv -f src/libcrun/handlers/.deps/libcrun_la-wasmer.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmer.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-wasmedge.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo -c -o src/libcrun/handlers/libcrun_la-wasmedge.lo `test -f 'src/libcrun/handlers/wasmedge.c' || echo './'`src/libcrun/handlers/wasmedge.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-wasmedge.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo -c src/libcrun/handlers/wasmedge.c -o src/libcrun/handlers/libcrun_la-wasmedge.o
mv -f src/libcrun/handlers/.deps/libcrun_la-wasmedge.Tpo src/libcrun/handlers/.deps/libcrun_la-wasmedge.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-spin.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-spin.Tpo -c -o src/libcrun/handlers/libcrun_la-spin.lo `test -f 'src/libcrun/handlers/spin.c' || echo './'`src/libcrun/handlers/spin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-spin.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-spin.Tpo -c src/libcrun/handlers/spin.c -o src/libcrun/handlers/libcrun_la-spin.o
mv -f src/libcrun/handlers/.deps/libcrun_la-spin.Tpo src/libcrun/handlers/.deps/libcrun_la-spin.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/handlers/libcrun_la-krun.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-krun.Tpo -c -o src/libcrun/handlers/libcrun_la-krun.lo `test -f 'src/libcrun/handlers/krun.c' || echo './'`src/libcrun/handlers/krun.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/handlers/libcrun_la-krun.lo -MD -MP -MF src/libcrun/handlers/.deps/libcrun_la-krun.Tpo -c src/libcrun/handlers/krun.c -o src/libcrun/handlers/libcrun_la-krun.o
mv -f src/libcrun/handlers/.deps/libcrun_la-krun.Tpo src/libcrun/handlers/.deps/libcrun_la-krun.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-io_priority.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-io_priority.Tpo -c -o src/libcrun/libcrun_la-io_priority.lo `test -f 'src/libcrun/io_priority.c' || echo './'`src/libcrun/io_priority.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-io_priority.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-io_priority.Tpo -c src/libcrun/io_priority.c -o src/libcrun/libcrun_la-io_priority.o
mv -f src/libcrun/.deps/libcrun_la-io_priority.Tpo src/libcrun/.deps/libcrun_la-io_priority.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-scheduler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-scheduler.Tpo -c -o src/libcrun/libcrun_la-scheduler.lo `test -f 'src/libcrun/scheduler.c' || echo './'`src/libcrun/scheduler.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-scheduler.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-scheduler.Tpo -c src/libcrun/scheduler.c -o src/libcrun/libcrun_la-scheduler.o
mv -f src/libcrun/.deps/libcrun_la-scheduler.Tpo src/libcrun/.deps/libcrun_la-scheduler.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-mount_flags.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-mount_flags.Tpo -c -o src/libcrun/libcrun_la-mount_flags.lo `test -f 'src/libcrun/mount_flags.c' || echo './'`src/libcrun/mount_flags.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-mount_flags.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-mount_flags.Tpo -c src/libcrun/mount_flags.c -o src/libcrun/libcrun_la-mount_flags.o
mv -f src/libcrun/.deps/libcrun_la-mount_flags.Tpo src/libcrun/.deps/libcrun_la-mount_flags.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-signals.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-signals.Tpo -c -o src/libcrun/libcrun_la-signals.lo `test -f 'src/libcrun/signals.c' || echo './'`src/libcrun/signals.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-signals.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-signals.Tpo -c src/libcrun/signals.c -o src/libcrun/libcrun_la-signals.o
mv -f src/libcrun/.deps/libcrun_la-signals.Tpo src/libcrun/.deps/libcrun_la-signals.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-container.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-container.Tpo -c -o src/libcrun/libcrun_la-container.lo `test -f 'src/libcrun/container.c' || echo './'`src/libcrun/container.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-container.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-container.Tpo -c src/libcrun/container.c -o src/libcrun/libcrun_la-container.o
mv -f src/libcrun/.deps/libcrun_la-container.Tpo src/libcrun/.deps/libcrun_la-container.Plo
 <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:880:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:884:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:898:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:902:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:918:53: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (44) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:924:32: note: (45) 'open(**_148.path, 0)' leaks here; was opened at (44) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: warning: leak of file descriptor 'open(**_165.path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:733:1: note: (1) entry to 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (2) calling 'load_wrapper' from 'libcrun_container_restore_linux_criu' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:116:1: note: (3) entry to 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (4) calling 'xmalloc0' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (5) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:118:52: note: (8) returning to 'load_wrapper' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:748:9: note: (9) returning to 'libcrun_container_restore_linux_criu' from 'load_wrapper' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:749:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:752:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:755:24: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:756:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:24: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:759:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:27: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:762:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:765:14: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:766:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:769:18: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:779:8: note: (22) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:782:11: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:783:8: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:792:12: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:793:8: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl/src/api/yajl_tree.h:155:49: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:877:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:880:9: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:881:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:884:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:885:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:898:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:899:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:902:24: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:903:6: note: (36) following 'false' branch... <--[gcc]
cc1: note: (37) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:915:17: note: (38) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:918:53: note: (39) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:919:10: note: (40) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:922:10: note: (41) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:931:10: note: (42) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (44) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/criu.c:933:32: note: (45) 'open(**_165.path, 0)' leaks here; was opened at (44) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/handler-utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-systemd.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:21, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup-systemd.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmtime.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/mono.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmer.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/wasmedge.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/spin.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_load': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:262:9: warning: unused variable 'handle' [-Wunused-variable] <--[gcc]
  262 |   void *handle;
      |         ^~~~~~
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: warning: 'create_sev' may be used uninitialized [-Wmaybe-uninitialized] <--[gcc]
  248 |   if (create_sev)
      |      ^
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: 'create_sev' was declared here <--[gcc]
  180 |   bool create_sev;
      |        ^~~~~~~~~~
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.h:22, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'rootfsfd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:167:1: note: (1) entry to 'libkrun_configure_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:182:6: note: (2) following 'false' branch (when 'rootfs' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (4) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:187:10: note: (5) assuming 'rootfsfd_cleanup' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:187:10: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:191:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:177:21: note: (8) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/custom-handler.h:23: <--[gcc]
In function 'cleanup_closep',
    inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:177:21: note: (11) inlined call to 'cleanup_closep' from 'libkrun_configure_container' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libkrun_configure_container' at src/libcrun/handlers/krun.c:177:21:
cc1: note: (12) calling 'cleanup_closep.part.0' from 'libkrun_configure_container'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c: In function 'libkrun_configure_container': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: warning: leak of file descriptor 'open(rootfs, 2621440)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:182:6: note: (1) following 'false' branch (when 'rootfs' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:186:37: note: (4) 'open(rootfs, 2621440)' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: warning: use of uninitialized value 'create_sev' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: (1) region created on stack here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:180:8: note: (2) capacity: 1 byte <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:191:6: note: (3) following 'false' branch (when 'phase != 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:215:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:215:6: note: (5) following 'false' branch (when 'phase == 2')... <--[gcc]
cc1: note: (6) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:225:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:235:11: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:236:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:239:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:240:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:242:14: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:245:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/handlers/krun.c:248:6: note: (15) use of uninitialized value 'create_sev' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/io_priority.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/scheduler.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/mount_flags.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/signals.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(144)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (8) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0(144)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0((num_mount_options + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (8) returning to 'retrieve_mount_options' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (9) 'xmalloc0((num_mount_options + 1) * 8)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_load_from_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (24) 'make_container(runtime_spec_schema_config_schema_parse_file(path, 0, & oci_error), path, 0)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_update_intel_rdt': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (15) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (18) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (19) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (24) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (25) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_restore': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file("config.json", err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (11) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (14) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (15) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (17) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (18) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (19) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (28) 'libcrun_container_load_from_file("config.json", err)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (28) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'read_container_config_from_state': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'libcrun_container_load_from_file(config_file,  err)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1611:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (19) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (22) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (23) following 'false' branch (when 'path' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (25) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (27) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (28) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (29) 'libcrun_container_load_from_file(config_file,  err)' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(176)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3821:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3824:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3829:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3832:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3833:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3836:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3837:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:6: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (14) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (15) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (17) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (20) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (21) 'xmalloc0(176)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(120)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3821:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3824:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3829:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3832:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3833:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3836:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3837:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3843:6: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (14) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (15) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3846:62: note: (18) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3847:61: note: (19) calling 'xmalloc0' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (21) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3847:61: note: (25) returning to 'libcrun_container_update' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(120)' leaks here; was allocated at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_restore': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (27) returning to 'libcrun_container_restore' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (28) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (29) '<unknown>' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_update_intel_rdt': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4437:1: note: (1) entry to 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4445:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4448:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4449:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (6) calling 'libcrun_container_load_from_file' from 'libcrun_container_update_intel_rdt' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (7) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (10) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (11) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (13) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (17) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (19) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (20) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (21) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (23) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (24) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (25) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (27) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (28) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (30) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4452:15: note: (31) returning to 'libcrun_container_update_intel_rdt' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (32) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (33) '<unknown>' leaks here; was allocated at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (35) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (37) '<unknown>' leaks here; was allocated at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'read_container_config_from_state': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3803:1: note: (1) entry to 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3817:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3820:9: note: (4) calling 'read_container_config_from_state' from 'libcrun_container_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1598:1: note: (5) entry to 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1608:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1611:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1612:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (10) calling 'libcrun_container_load_from_file' from 'read_container_config_from_state' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (21) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (24) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (25) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (28) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (31) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (32) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (34) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1615:16: note: (35) returning to 'read_container_config_from_state' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:575:22: note: (36) inlined call to 'cleanup_freep' from 'libcrun_container_load_from_file' <--[gcc]
In function 'cleanup_freep',
    inlined from 'libcrun_container_load_from_file' at src/libcrun/container.c:575:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (37) '<unknown>' leaks here; was allocated at (27) <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'console_socket_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:46: <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:25: <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:18: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3738:13: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:18: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:49: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3748:17: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:29: note: (75) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (76) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (77) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:29: note: (78) inlined call to 'cleanup_closep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3745:29:
cc1: note: (79) calling 'cleanup_closep.part.0' from 'libcrun_container_exec_with_options'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (80) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (81) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (82) following 'true' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (84) second 'close' here; first 'close' was at (81) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'signalfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'false' branch... <--[gcc]
cc1: note: (66) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3767:6: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:35: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3784:38: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3794:15: note: (71) calling 'wait_for_process' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1969:1: note: (72) entry to 'wait_for_process' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1983:6: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1986:20: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1997:6: note: (75) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2000:11: note: (76) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2000:6: note: (77) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2007:3: note: (78) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2009:6: note: (79) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2012:14: note: (80) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2013:6: note: (81) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2016:9: note: (82) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2017:6: note: (83) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2020:7: note: (84) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2020:6: note: (85) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2023:11: note: (86) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2023:6: note: (87) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2057:14: note: (88) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2058:6: note: (89) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2060:11: note: (90) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2069:6: note: (91) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1979:67: note: (92) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1972:21: note: (93) inlined call to 'cleanup_closep' from 'wait_for_process' <--[gcc]
In function 'cleanup_closep',
    inlined from 'wait_for_process' at src/libcrun/container.c:1972:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (94) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (95) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1972:21: note: (96) inlined call to 'cleanup_closep' from 'wait_for_process' <--[gcc]
In function 'cleanup_closep',
    inlined from 'wait_for_process' at src/libcrun/container.c:1972:21:
cc1: note: (97) calling 'cleanup_closep.part.0' from 'wait_for_process'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (98) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (99) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (100) following 'true' branch... <--[gcc]
cc1: note: (101) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (102) second 'close' here; first 'close' was at (99) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3393:21: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3421:26: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3433:10: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3437:7: note: (18) calling 'close_and_reset' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (19) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (20) following 'true' branch... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (22) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (23) following 'true' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (25) second 'close' here; first 'close' was at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3725:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3726:5: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3726:5: note: (67) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (68) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (69) following 'true' branch... <--[gcc]
cc1: note: (70) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (71) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (72) following 'true' branch... <--[gcc]
cc1: note: (73) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (74) second 'close' here; first 'close' was at (71) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'terminal_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (50) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (51) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (56) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (57) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (58) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (61) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) following 'false' branch... <--[gcc]
cc1: note: (64) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (65) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:18: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3732:10: note: (67) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3738:13: note: (68) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3739:10: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:18: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3742:10: note: (71) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3745:49: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3746:14: note: (73) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3748:17: note: (74) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3749:14: note: (75) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3751:11: note: (76) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3751:11: note: (77) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (78) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (79) following 'true' branch... <--[gcc]
cc1: note: (80) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (81) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (82) following 'true' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (84) second 'close' here; first 'close' was at (81) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'own_seccomp_receiver_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:6: note: (41) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (43) calling 'get_seccomp_receiver_fd' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2285:1: note: (44) entry to 'get_seccomp_receiver_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2295:6: note: (45) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2300:13: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2301:10: note: (47) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:2304:16: note: (48) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3618:13: note: (49) returning to 'libcrun_container_exec_with_options' from 'get_seccomp_receiver_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3621:10: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:29: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (52) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (54) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (55) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (56) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (58) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (59) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (60) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (61) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (62) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3685:10: note: (63) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3687:27: note: (64) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3688:14: note: (65) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (66) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (67) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (68) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (69) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (70) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (71) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (72) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (73) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (74) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (75) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (76) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (77) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (78) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (79) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (80) following 'false' branch... <--[gcc]
cc1: note: (81) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3728:6: note: (82) following 'false' branch... <--[gcc]
cc1: note: (83) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3767:6: note: (84) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:35: note: (85) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3772:10: note: (86) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3774:31: note: (87) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3775:14: note: (88) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3778:17: note: (89) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3778:17: note: (90) calling 'close_and_reset' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (91) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (92) following 'true' branch... <--[gcc]
cc1: note: (93) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (94) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (95) following 'true' branch... <--[gcc]
cc1: note: (96) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (97) second 'close' here; first 'close' was at (94) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'seccomp_fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:73: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:39: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3397:57: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3421:26: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3433:10: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3436:7: note: (20) calling 'close_and_reset' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (21) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (24) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (25) following 'true' branch... <--[gcc]
cc1: note: (26) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (27) second 'close' here; first 'close' was at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_get_features': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.0.0")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (12) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (13) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (15) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (16) 'xstrdup("1.0.0")' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup("1.1.0+dev")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4034:1: note: (1) entry to 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (2) calling 'xmalloc0' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4046:11: note: (6) returning to 'libcrun_container_get_features' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (7) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (8) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (9) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (11) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (12) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4049:30: note: (13) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4050:30: note: (14) calling 'xstrdup' from 'libcrun_container_get_features' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (15) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (16) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (19) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4050:30: note: (22) returning to 'libcrun_container_get_features' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (23) 'xstrdup("1.1.0+dev")' leaks here; was allocated at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'retrieve_mount_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*<unknown>.name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4013:1: note: (1) entry to 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (2) calling 'xmalloc0' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4026:28: note: (6) returning to 'retrieve_mount_options' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4029:24: note: (7) following 'true' branch (when 'num_mount_options > i')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:60: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:33: note: (9) calling 'xstrdup' from 'retrieve_mount_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (10) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (11) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (13) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (14) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (15) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4030:33: note: (17) returning to 'retrieve_mount_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (18) 'xstrdup(*<unknown>.name)' leaks here; was allocated at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_70->process.selinux_label)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_70->process.selinux_label)' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(*_75->process.apparmor_profile)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (63) 'xstrdup(*_75->process.apparmor_profile)' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_load_from_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: warning: leak of '<unknown>' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4209:1: note: (1) entry to 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4221:15: note: (2) calling 'libcrun_container_load_from_file' from 'libcrun_container_restore' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (3) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (6) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (7) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (8) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (9) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (12) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:549:6: note: (13) following 'true' branch (when 'path' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (15) calling 'xstrdup' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (16) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (17) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (20) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (21) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:550:30: note: (23) returning to 'make_container' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (24) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (26) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (27) '<unknown>' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'container_delete_internal': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:15: warning: dereference of NULL 'container' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4177:1: note: (1) entry to 'libcrun_container_checkpoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4183:42: note: (2) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4183:42: note: (3) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4186:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4189:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4190:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4192:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4192:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4195:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4196:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4198:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4198:9: note: (12) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4199:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4202:20: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4202:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4203:12: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:4203:12: note: (17) calling 'container_delete_internal' from 'libcrun_container_checkpoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1684:1: note: (18) entry to 'container_delete_internal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1689:42: note: (19) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1694:6: note: (20) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1708:19: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1710:6: note: (22) following 'true' branch (when 'force != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1728:15: note: (23) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1728:6: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1730:10: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1730:10: note: (26) following 'true' branch (when 'def' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1732:17: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1733:14: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:26: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:26: note: (30) 'container' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1736:15: note: (31) dereference of NULL 'container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'exec_process_entrypoint': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3315:1: note: (1) entry to 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3348:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3351:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3352:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3355:14: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3384:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3387:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3388:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:16: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3391:6: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3393:21: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3416:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3419:16: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3441:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (16) calling 'maybe_chown_std_streams' from 'exec_process_entrypoint' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1018:1: note: (17) entry to 'maybe_chown_std_streams' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1023:17: note: (18) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:13: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:13: note: (20) when 'isatty' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1025:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:1023:23: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3444:9: note: (23) returning to 'exec_process_entrypoint' from 'maybe_chown_std_streams' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3445:6: note: (24) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3448:14: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3454:6: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3457:6: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: note: (28) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:3: note: (29) following 'true' branch... <--[gcc]
cc1: note: (30) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3496:23: note: (31) second 'close' here; first 'close' was at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: warning: dereference of NULL 'process' [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3293:1: note: (1) entry to 'libcrun_container_exec_process_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3301:10: note: (2) calling 'libcrun_container_exec_with_options' from 'libcrun_container_exec_process_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (3) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (4) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (5) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3555:46: note: (6) 'process' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (15) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (16) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (19) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (20) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (21) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (22) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (25) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (26) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (28) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (29) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (30) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (35) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (37) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (42) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (43) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (44) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (45) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:6: note: (46) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:29: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (50) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (52) dereference of NULL 'process' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:32: warning: leak of '*process.selinux_label' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:34: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3680:32: note: (63) '*process.selinux_label' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:35: warning: leak of '*process.apparmor_profile' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (48) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (49) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3677:6: note: (50) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3679:18: note: (51) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3682:10: note: (52) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (53) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (54) calling 'xstrdup' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (55) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (56) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (57) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (58) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (59) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (61) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:37: note: (62) returning to 'libcrun_container_exec_with_options' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3683:35: note: (63) '*process.apparmor_profile' leaks here; was allocated at (58) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: warning: double 'close' of file descriptor 'pipefd0' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (50) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (56) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (59) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (61) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (64) following 'true' branch... <--[gcc]
cc1: note: (65) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: note: (66) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:7: note: (67) following 'true' branch... <--[gcc]
cc1: note: (68) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3709:27: note: (69) second 'close' here; first 'close' was at (66) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3531:1: note: (1) entry to 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3560:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3563:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3564:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3568:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3569:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3572:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3573:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (10) calling 'libcrun_container_load_from_file' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:572:1: note: (11) entry to 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:578:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (14) calling 'make_container' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:541:1: note: (15) entry to 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (16) calling 'xmalloc0' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (17) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:543:36: note: (20) returning to 'make_container' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:551:6: note: (21) following 'false' branch (when 'config' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:554:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:583:10: note: (23) returning to 'libcrun_container_load_from_file' from 'make_container' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3576:15: note: (24) returning to 'libcrun_container_exec_with_options' from 'libcrun_container_load_from_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3577:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3580:22: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3582:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3588:21: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3591:8: note: (29) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3586:57: note: (30) inlined call to 'cgroup_status_freep' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'cgroup_status_freep',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3586:57:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/cgroup.h:80:6: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3595:6: note: (32) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3598:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3603:6: note: (34) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3606:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3607:6: note: (36) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3610:3: note: (37) inlined call to 'libcrun_seccomp_gen_ctx_init' from 'libcrun_container_exec_with_options' <--[gcc]
In function 'libcrun_seccomp_gen_ctx_init',
    inlined from 'libcrun_container_exec_with_options' at src/libcrun/container.c:3610:3:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:52:3: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c: In function 'libcrun_container_exec_with_options': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3613:6: note: (39) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3616:18: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3625:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:11: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3628:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3665:9: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3666:6: note: (45) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-buimake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-intelrdt.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-intelrdt.Tpo -c -o src/libcrun/libcrun_la-intelrdt.lo `test -f 'src/libcrun/intelrdt.c' || echo './'`src/libcrun/intelrdt.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-intelrdt.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-intelrdt.Tpo -c src/libcrun/intelrdt.c -o src/libcrun/libcrun_la-intelrdt.o
mv -f src/libcrun/.deps/libcrun_la-intelrdt.Tpo src/libcrun/.deps/libcrun_la-intelrdt.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-seccomp_notify.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo -c -o src/libcrun/libcrun_la-seccomp_notify.lo `test -f 'src/libcrun/seccomp_notify.c' || echo './'`src/libcrun/seccomp_notify.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp_notify.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo -c src/libcrun/seccomp_notify.c -o src/libcrun/libcrun_la-seccomp_notify.o
mv -f src/libcrun/.deps/libcrun_la-seccomp_notify.Tpo src/libcrun/.deps/libcrun_la-seccomp_notify.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-seccomp.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp.Tpo -c -o src/libcrun/libcrun_la-seccomp.lo `test -f 'src/libcrun/seccomp.c' || echo './'`src/libcrun/seccomp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-seccomp.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-seccomp.Tpo -c src/libcrun/seccomp.c -o src/libcrun/libcrun_la-seccomp.o
mv -f src/libcrun/.deps/libcrun_la-seccomp.Tpo src/libcrun/.deps/libcrun_la-seccomp.Plo
ld/crun-HEAD/src/libcrun/container.c:3669:9: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (47) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3669:9: note: (48) when 'pipe2' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3670:6: note: (49) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3672:33: note: (50) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (51) calling 'initialize_security' from 'libcrun_container_exec_with_options' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:641:1: note: (52) entry to 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:645:6: note: (53) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:648:11: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:656:6: note: (55) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:659:9: note: (56) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3693:9: note: (57) returning to 'libcrun_container_exec_with_options' from 'initialize_security' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3694:6: note: (58) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3697:9: note: (59) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3698:6: note: (60) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3702:47: note: (61) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3703:6: note: (62) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (63) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3707:6: note: (64) following 'false' branch... <--[gcc]
cc1: note: (65) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: note: (66) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:3: note: (67) following 'true' branch... <--[gcc]
cc1: note: (68) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/container.c:3720:23: note: (69) second 'close' here; first 'close' was at (66) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'resctl_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:23: note: (9) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (11) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:210:1: note: (12) entry to 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (13) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (14) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (19) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:311:49: note: (20) returning to 'resctl_update' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (21) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'resctl_create': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (15) calling 'intelrdt_clean_l3_cache_schema' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:210:1: note: (16) entry to 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (17) calling 'xmalloc' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (18) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (20) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:215:9: note: (23) returning to 'intelrdt_clean_l3_cache_schema' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:255:49: note: (24) returning to 'resctl_create' from 'intelrdt_clean_l3_cache_schema' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (25) 'intelrdt_clean_l3_cache_schema(l3_cache_schema)' leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((n_parts_a + 1) * 8)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (41) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (42) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (43) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (45) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (46) 'xmalloc((n_parts_a + 1) * 8)' leaks here; was allocated at (41) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:295:1: note: (1) entry to 'resctl_update' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (6) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:26: note: (8) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:23: note: (9) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:314:6: note: (12) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:314:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:317:9: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:299:21: note: (15) inlined call to 'cleanup_closep' from 'resctl_update' <--[gcc]
In function 'cleanup_closep',
    inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (16) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (17) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:299:21: note: (18) inlined call to 'cleanup_closep' from 'resctl_update' <--[gcc]
In function 'cleanup_closep',
    inlined from 'resctl_update' at src/libcrun/intelrdt.c:299:21:
cc1: note: (19) calling 'cleanup_closep.part.0' from 'resctl_update'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (20) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (21) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (22) following 'true' branch... <--[gcc]
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (24) second 'close' here; first 'close' was at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'compare_rdt_configurations': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (48) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (49) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (50) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (51) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (52) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (53) 'xstrdup(<unknown>)' leaks here; was allocated at (48) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(<unknown>)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:233:1: note: (1) entry to 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:241:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:243:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:246:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:247:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:250:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:251:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:6: note: (10) following 'true' branch (when 'l3_cache_schema' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:26: note: (12) when 'strstr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:254:23: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:43: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:259:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:268:6: note: (17) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:269:12: note: (19) calling 'validate_rdt_configuration' from 'resctl_create' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:158:1: note: (20) entry to 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:166:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:169:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:170:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:173:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:174:10: note: (25) following 'true' branch (when 'it' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:178:10: note: (27) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:179:15: note: (29) calling 'compare_rdt_configurations' from 'validate_rdt_configuration' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:98:1: note: (30) entry to 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:108:8: note: (31) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:109:19: note: (32) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:111:8: note: (34) when 'strchr' returns NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:112:19: note: (35) following 'false' branch (when 'it' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:114:15: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:117:6: note: (37) following 'false' branch (when 'n_parts_a == n_parts_b')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:56: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (39) calling 'xmalloc' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (40) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (41) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:120:8: note: (43) returning to 'compare_rdt_configurations' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (44) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (45) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (46) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (47) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (48) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (49) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:122:18: note: (50) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:136:18: note: (51) calling 'xstrdup' from 'compare_rdt_configurations' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (52) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (53) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (54) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (55) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (56) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (57) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (58) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:136:18: note: (59) returning to 'compare_rdt_configurations' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (60) 'xstrdup(<unknown>)' leaks here; was allocated at (55) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c: In function 'resctl_update': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: warning: leak of file descriptor 'open(path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:303:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:306:9: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:307:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:310:6: note: (5) following 'false' branch (when 'l3_cache_schema' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (7) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/intelrdt.c:313:8: note: (8) 'open(path, 524289)' leaks here; was opened at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:32: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_load_seccomp_notify_plugins': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (12) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (15) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (16) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif)' leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (16) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (17) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (18) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (20) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (21) 'xmalloc((long unsigned int)*(struct seccomp_notify_context_s *)<unknown>.sizes.seccomp_notif_resp)' leaks here; was allocated at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: warning: leak of 'xmalloc0(48)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:70:15: note: (21) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (22) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (25) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:21: note: (26) 'xmalloc0(48)' leaks here; was allocated at (21) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(plugins)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:83:1: note: (1) entry to 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (2) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (3) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:87:73: note: (6) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:92:6: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:34: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (9) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (10) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:95:15: note: (13) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (14) calling 'xmalloc' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (15) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:96:16: note: (18) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (19) calling 'xmalloc0' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:68:1: note: (20) entry to 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:71:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:73:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:102:18: note: (23) returning to 'libcrun_load_seccomp_notify_plugins' from 'xmalloc0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:104:7: note: (24) calling 'xstrdup' from 'libcrun_load_seccomp_notify_plugins' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (25) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (26) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (28) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (29) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (30) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (31) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp_notify.c:104:7: note: (32) returning to 'libcrun_load_seccomp_notify_plugins' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) 'xstrdup(plugins)' leaks here; was allocated at (28) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:25: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_copy_seccomp': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(in_size + 1)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:836:1: note: (1) entry to 'libcrun_copy_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:845:14: note: (2) calling 'xmalloc' from 'libcrun_copy_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:845:14: note: (8) returning to 'libcrun_copy_seccomp' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (9) 'xmalloc(in_size + 1)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: warning: leak of 'xrealloc(entries, (n_entries + 1) * 88)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (12) calling 'xrealloc' from 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (15) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (18) returning to 'evict_cache' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:21: note: (19) 'xrealloc(entries, (n_entries + 1) * 88)' leaks here; was allocated at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
In function 'cleanup_freep',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: warning: double-'free' of 'entries' [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:492:1: note: (1) entry to 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:529:14: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:531:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (12) passing freed pointer 'entries' in call to 'xrealloc' from 'evict_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:77:1: note: (13) entry to 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:79:15: note: (14) when 'realloc' succeeds, moving buffer <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:80:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:82:10: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:554:25: note: (17) returning to 'evict_cache' from 'xrealloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:517:24: note: (18) inlined call to 'cleanup_dirp' from 'evict_cache' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:517:24:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (19) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:198:5: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:516:40: note: (21) inlined call to 'cleanup_freep' from 'evict_cache' <--[gcc]
In function 'cleanup_freep',
    inlined from 'evict_cache' at src/libcrun/seccomp.c:516:40:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (22) second 'free' here <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:23: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[gcc]
cc1: note: (7) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:872:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:876:49: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:861:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:861:21: note: (19) inlined call to 'cleanup_closep' from 'libcrun_open_seccomp_bpf' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_open_seccomp_bpf' at src/libcrun/seccomp.c:861:21:
cc1: note: (20) calling 'cleanup_closep.part.0' from 'libcrun_open_seccomp_bpf'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (21) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (22) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (23) following 'true' branch... <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (25) second 'close' here; first 'close' was at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (10) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:269:38: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (12) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (13) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (15) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
cc1: note: (16) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (17) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (18) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (19) following 'true' branch... <--[gcc]
cc1: note: (20) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (21) second 'close' here; first 'close' was at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '<unknown>' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infmake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-status.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-status.Tpo -c -o src/libcrun/libcrun_la-status.lo `test -f 'src/libcrun/status.c' || echo './'`src/libcrun/status.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-status.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-status.Tpo -c src/libcrun/status.c -o src/libcrun/libcrun_la-status.o
mv -f src/libcrun/.deps/libcrun_la-status.Tpo src/libcrun/.deps/libcrun_la-status.Plo
d >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:261:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:273:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (16) calling 'close_and_reset' from 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (17) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (20) returning to 'libcrun_apply_seccomp' from 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:284:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:290:10: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:290:10: note: (23) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (24) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:250:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (25) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (26) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:325:6: note: (28) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:334:6: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:334:6: note: (30) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:336:43: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:206:21: note: (32) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:206:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (33) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (34) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:206:21: note: (35) inlined call to 'cleanup_closep' from 'libcrun_apply_seccomp' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_apply_seccomp' at src/libcrun/seccomp.c:206:21:
cc1: note: (36) calling 'cleanup_closep.part.0' from 'libcrun_apply_seccomp'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (37) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (38) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (39) following 'true' branch... <--[gcc]
cc1: note: (40) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (41) second 'close' here; first 'close' was at (38) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'dirfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[gcc]
In function 'is_empty_string',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[gcc]
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:587:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:591:48: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:577:21: note: (19) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[gcc]
In function 'cleanup_closep',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (20) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (21) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:577:21: note: (22) inlined call to 'cleanup_closep' from 'store_seccomp_cache' <--[gcc]
In function 'cleanup_closep',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:577:21:
cc1: note: (23) calling 'cleanup_closep.part.0' from 'store_seccomp_cache'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (24) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (25) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (26) following 'true' branch... <--[gcc]
cc1: note: (27) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (28) second 'close' here; first 'close' was at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'close_and_reset': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: warning: double 'close' of file descriptor 'memfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:200:1: note: (1) entry to 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:214:6: note: (2) following 'false' branch (when 'infd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:17: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:217:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:221:6: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:242:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:245:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:248:6: note: (8) following 'true' branch (when 'listener_receiver_fd >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:250:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:261:10: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:267:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:268:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:271:13: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:273:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:277:7: note: (16) calling 'close_and_reset' from 'libcrun_apply_seccomp' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:202:1: note: (17) entry to 'close_and_reset' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:205:6: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (20) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:13: note: (21) following 'true' branch... <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:207:33: note: (23) second 'close' here; first 'close' was at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_50->context.state_root,  err)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:859:1: note: (1) entry to 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:868:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (4) calling 'open_rundir_dirfd' from 'libcrun_open_seccomp_bpf' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (5) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (6) following 'false' branch... <--[gcc]
cc1: note: (7) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (8) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (9) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (11) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'libcrun_open_seccomp_bpf': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:871:11: note: (13) returning to 'libcrun_open_seccomp_bpf' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: note: (14) 'open_rundir_dirfd(*container_50->context.state_root,  err)' leaks here; was opened at (8) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: warning: leak of file descriptor 'open_rundir_dirfd(*container_44->context.state_root,  err)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:572:1: note: (1) entry to 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:580:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:583:7: note: (3) inlined call to 'is_empty_string' from 'store_seccomp_cache' <--[gcc]
In function 'is_empty_string',
    inlined from 'store_seccomp_cache' at src/libcrun/seccomp.c:583:7:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:24: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:395:20: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:39: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (7) calling 'open_rundir_dirfd' from 'store_seccomp_cache' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:455:1: note: (8) entry to 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (9) following 'false' branch... <--[gcc]
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (11) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (12) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (13) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:457:22: note: (14) inlined call to 'cleanup_freep' from 'open_rundir_dirfd' <--[gcc]
In function 'cleanup_freep',
    inlined from 'open_rundir_dirfd' at src/libcrun/seccomp.c:457:22:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:89:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'store_seccomp_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:586:11: note: (16) returning to 'store_seccomp_cache' from 'open_rundir_dirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:21: note: (17) 'open_rundir_dirfd(*container_44->context.state_root,  err)' leaks here; was opened at (11) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'open_rundir_dirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: warning: leak of file descriptor 'open(libcrun_get_state_directory(state_root, 0), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (4) 'open(libcrun_get_state_directory(state_root, 0), 2686976)' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: warning: leak of file descriptor '<unknown>' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:461:6: note: (1) following 'false' branch... <--[gcc]
cc1: note: (2) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:31: note: (3) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:464:11: note: (4) assuming 'open(libcrun_get_state_directory(state_root, 0), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:465:6: note: (5) '<unknown>' leaks here; was opened at (3) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c: In function 'evict_cache': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: warning: leak of 'fdopendir(cache_dir_fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (8) 'fdopendir(cache_dir_fd)' leaks here; was allocated at (7) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:562:7: warning: use of NULL 'entries' where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:500:6: note: (1) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:503:30: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:506:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:514:6: note: (5) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:522:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:523:10: note: (7) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:526:20: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.c:562:7: note: (9) argument 1 ('entries') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/seccomp.h:22: <--[gcc]
/usr/include/stdlib.h:970:13: note: argument 1 of 'qsort' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:557:1: warning: leak of file descriptor 'rundir_dfd' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (10) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (11) following 'false' branch... <--[gcc]
cc1: note: (12) ...to here
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:21: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (13) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:16: note: (14) assuming 'open(get_run_directory(state_root), 2686976)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'true' branch... <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:24, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:22: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:538:34: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:529:21: note: (17) inlined call to 'cleanup_closep' from 'libcrun_container_delete_status' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_container_delete_status' at src/libcrun/status.c:529:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (18) following 'false' branch... <--[gcc]
In function 'libcrun_container_delete_status':
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:557:1: note: (20) 'rundir_dfd' leaks here; was opened at (13) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (30) 'xmalloc(16)' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(16)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (25) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (26) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (27) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (29) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (30) calling 'xstrdup' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (31) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (32) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (33) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (37) 'xmalloc(16)' leaks here; was allocated at (25) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:120:6: note: (7) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:120:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:131:9: note: (9) inlined call to 'read_all_fd' from 'read_pid_stat' <--[gcc]
In function 'read_all_fd',
    inlined from 'read_pid_stat' at src/libcrun/status.c:131:9:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:305:10: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:112:21: note: (11) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[gcc]
In function 'cleanup_closep',
    inlined from 'read_pid_stat' at src/libcrun/status.c:112:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (12) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:112:21: note: (14) inlined call to 'cleanup_closep' from 'read_pid_stat' <--[gcc]
In function 'cleanup_closep',
    inlined from 'read_pid_stat' at src/libcrun/status.c:112:21:
cc1: note: (15) calling 'cleanup_closep.part.0' from 'read_pid_stat'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (16) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (18) following 'true' branch... <--[gcc]
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (20) second 'close' here; first 'close' was at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd_cleanup' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:540:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (21) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (22) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (23) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (24) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (25) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (26) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (27) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (28) following 'true' branch... <--[gcc]
cc1: note: (29) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (30) second 'close' here; first 'close' was at (27) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'cfd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (12) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (13) following 'false' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:537:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:540:9: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:541:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:544:9: note: (19) calling 'rmdirfd' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (20) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:475:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:479:14: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:481:26: note: (23) following 'true' branch (when 'de' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:483:22: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:483:10: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:487:13: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:488:10: note: (27) following 'true' branch (when 'ret < 0')... <--[gcc]
cc1: note: (28) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:504:14: note: (29) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:509:18: note: (31) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (33) calling 'rmdirfd' from 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:467:1: note: (34) entry to 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:475:6: note: (35) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:476:34: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (37) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (38) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (39) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (40) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (41) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (42) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (43) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:472:46: note: (44) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:472:46:
cc1: note: (45) returning to 'rmdirfd' from 'cleanup_closep.part.0'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:470:20: note: (46) inlined call to 'cleanup_dirp' from 'rmdirfd' <--[gcc]
In function 'cleanup_dirp',
    inlined from 'rmdirfd' at src/libcrun/status.c:470:20:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:197:6: note: (47) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (48) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:512:21: note: (49) returning to 'rmdirfd' from 'rmdirfd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (50) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:506:33:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (51) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (52) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:506:33: note: (53) inlined call to 'cleanup_closep' from 'rmdirfd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'rmdirfd' at src/libcrun/status.c:506:33:
cc1: note: (54) calling 'cleanup_closep.part.0' from 'rmdirfd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (55) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (56) second 'close' here; first 'close' was at (43) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&*next.d_name)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (10) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:584:6: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:15: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:587:30: note: (13) following 'true' branch (when 'next' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:590:26: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:594:10: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:597:54: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:598:10: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:601:16: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:602:10: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:607:10: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (23) calling 'xmalloc' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (24) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (25) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:613:24: note: (27) returning to 'libcrun_get_containers_list' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (28) calling 'xstrdup' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (29) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (30) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (31) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (32) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (33) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (34) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (35) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:614:30: note: (36) returning to 'libcrun_get_containers_list' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (37) 'xstrdup(&*next.d_name)' leaks here; was allocated at (32) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: warning: leak of 'get_run_directory(state_root)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'true' branch (when 'state_root' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (6) calling 'xstrdup' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (7) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (8) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (11) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (12) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (13) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:49:12: note: (14) returning to 'get_run_directory' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:66:9: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (19) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (20) 'get_run_directory(state_root)' leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'read_pid_stat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: warning: leak of file descriptor 'open(&pid_stat_file, 524288)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:643:1: note: (1) entry to 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:649:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:652:9: note: (4) calling 'read_pid_stat' from 'libcrun_check_pid_valid' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:109:1: note: (5) entry to 'read_pid_stat' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:119:8: note: (7) 'open(&pid_stat_file, 524288)' leaks here; was opened at (6) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'rmdirfd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: warning: leak of 'fdopendir(fd)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:474:7: note: (2) 'fdopendir(fd)' leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_container_delete_status': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: warning: leak of file descriptor 'open(get_run_directory(state_root), 2686976)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:525:1: note: (1) entry to 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (2) calling 'get_run_directory' from 'libcrun_container_delete_status' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:69:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:532:9: note: (14) returning to 'libcrun_container_delete_status' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:533:6: note: (15) following 'false' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (17) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:536:36: note: (18) 'open(get_run_directory(state_root), 2686976)' leaks here; was opened at (17) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_get_containers_list': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: warning: use of NULL where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:45:9: note: (4) 'root' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (5) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) 'root' is NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (10) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (12) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:58:15: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (15) argument 1 ('get_run_directory(state_root)') NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:27: <--[gcc]
/usr/include/dirent.h:141:13: note: argument 1 of 'opendir' must be non-null <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: warning: leak of 'opendir(get_run_directory(state_root))' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:575:1: note: (1) entry to 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (2) calling 'get_run_directory' from 'libcrun_get_containers_list' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (3) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (4) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (6) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:53:10: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:55:17: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:56:14: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:63:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:67:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:69:10: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:579:29: note: (14) returning to 'libcrun_get_containers_list' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (15) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:583:9: note: (16) 'opendir(get_run_directory(state_root))' leaks here; was allocated at (15) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_status_create_exec_fifo': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: warning: leak of file descriptor 'open(fifo_path, 526336)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:678:1: note: (1) entry to 'libcrun_status_create_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:680:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_create_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:83:7: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:680:34: note: (13) returning to 'libcrun_status_create_exec_fifo' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:685:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:688:3: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:690:6: note: (16) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (18) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:693:8: note: (19) 'open(fifo_path, 526336)' leaks here; was opened at (18) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c: In function 'libcrun_status_write_exec_fifo': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: warning: leak of file descriptor 'open(fifo_path, 524289)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:701:1: note: (1) entry to 'libcrun_status_write_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:703:34: note: (2) calling 'libcrun_get_state_directory' from 'libcrun_status_write_exec_fifo' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:73:1: note: (3) entry to 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (4) calling 'get_run_directory' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:42:1: note: (5) entry to 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:48:6: note: (6) following 'false' branch (when 'state_root' is NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:12: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:50:6: note: (8) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:52:33: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:78:29: note: (10) returning to 'libcrun_get_state_directory' from 'get_run_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/smake[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-terminal.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-terminal.Tpo -c -o src/libcrun/libcrun_la-terminal.lo `test -f 'src/libcrun/terminal.c' || echo './'`src/libcrun/terminal.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-terminal.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-terminal.Tpo -c src/libcrun/terminal.c -o src/libcrun/libcrun_la-terminal.o
mv -f src/libcrun/.deps/libcrun_la-terminal.Tpo src/libcrun/.deps/libcrun_la-terminal.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT src/libcrun/libcrun_la-linux.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-linux.Tpo -c -o src/libcrun/libcrun_la-linux.lo `test -f 'src/libcrun/linux.c' || echo './'`src/libcrun/linux.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT src/libcrun/libcrun_la-linux.lo -MD -MP -MF src/libcrun/.deps/libcrun_la-linux.Tpo -c src/libcrun/linux.c -o src/libcrun/libcrun_la-linux.o
mv -f src/libcrun/.deps/libcrun_la-linux.Tpo src/libcrun/.deps/libcrun_la-linux.Plo
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
rm -f libcrun_testing.a
ar cru libcrun_testing.a src/libcrun/libcrun_testing_a-utils.o src/libcrun/blake3/libcrun_testing_a-blake3.o src/libcrun/blake3/libcrun_testing_a-blake3_portable.o src/libcrun/libcrun_testing_a-cgroup-cgroupfs.o src/libcrun/libcrun_testing_a-cgroup-resources.o src/libcrun/libcrun_testing_a-cgroup-setup.o src/libcrun/libcrun_testing_a-cgroup-systemd.o src/libcrun/libcrun_testing_a-cgroup-utils.o src/libcrun/libcrun_testing_a-cgroup.o src/libcrun/libcrun_testing_a-chroot_realpath.o src/libcrun/libcrun_testing_a-cloned_binary.o src/libcrun/libcrun_testing_a-container.o src/libcrun/libcrun_testing_a-criu.o src/libcrun/libcrun_testing_a-custom-handler.o src/libcrun/libcrun_testing_a-ebpf.o src/libcrun/libcrun_testing_a-error.o src/libcrun/handlers/libcrun_testing_a-handler-utils.o src/libcrun/handlers/libcrun_testing_a-krun.o src/libcrun/handlers/libcrun_testing_a-mono.o src/libcrun/handlers/libcrun_testing_a-spin.o src/libcrun/handlers/libcrun_testing_a-wasmedge.o src/libcrun/handlers/libcrun_testing_a-wasmer.o src/libcrun/handlers/libcrun_testing_a-wasmtime.o src/libcrun/libcrun_testing_a-intelrdt.o src/libcrun/libcrun_testing_a-io_priority.o src/libcrun/libcrun_testing_a-linux.o src/libcrun/libcrun_testing_a-mount_flags.o src/libcrun/libcrun_testing_a-scheduler.o src/libcrun/libcrun_testing_a-seccomp.o src/libcrun/libcrun_testing_a-seccomp_notify.o src/libcrun/libcrun_testing_a-signals.o src/libcrun/libcrun_testing_a-status.o src/libcrun/libcrun_testing_a-terminal.o libocispec/libocispec.la 
ranlib libcrun_testing.a
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
depbase=`echo tests/init.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I.     -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/init.o -MD -MP -MF $depbase.Tpo -c -o tests/init.o tests/init.c &&\
mv -f $depbase.Tpo $depbase.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/tests_libcrun_errors tests/tests_libcrun_errors-tests_libcrun_errors.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl   
libtool: link: gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_errors tests/tests_libcrun_errors-tests_libcrun_errors.o  libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -fvisibility=hidden -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -Wl,--version-script=/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libcrun.lds -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o libcrun.la -rpath /usr/local/lib src/libcrun/libcrun_la-utils.lo src/libcrun/blake3/libcrun_la-blake3.lo src/libcrun/blake3/libcrun_la-blake3_portable.lo src/libcrun/libcrun_la-cgroup-cgroupfs.lo src/libcrun/libcrun_la-cgroup-resources.lo src/libcrun/libcrun_la-cgroup-setup.lo src/libcrun/libcrun_la-cgroup-systemd.lo src/libcrun/libcrun_la-cgroup-utils.lo src/libcrun/libcrun_la-cgroup.lo src/libcrun/libcrun_la-chroot_realpath.lo src/libcrun/libcrun_la-cloned_binary.lo src/libcrun/libcrun_la-container.lo src/libcrun/libcrun_la-criu.lo src/libcrun/libcrun_la-custom-handler.lo src/libcrun/libcrun_la-ebpf.lo src/libcrun/libcrun_la-error.lo src/libcrun/handlers/libcrun_la-handler-utils.lo src/libcrun/handlers/libcrun_la-krun.lo src/libcrun/handlers/libcrun_la-mono.lo src/libcrun/handlers/libcrun_la-spin.lo src/libcrun/handlers/libcrun_la-wasmedge.lo src/libcrun/handlers/libcrun_la-wasmer.lo src/libcrun/handlers/libcrun_la-wasmtime.lo src/libcrun/libcrun_la-intelrdt.lo src/libcrun/libcrun_la-io_priority.lo src/libcrun/libcrun_la-linux.lo src/libcrun/libcrun_la-mount_flags.lo src/libcrun/libcrun_la-scheduler.lo src/libcrun/libcrun_la-seccomp.lo src/libcrun/libcrun_la-seccomp_notify.lo src/libcrun/libcrun_la-signals.lo src/libcrun/libcrun_la-status.lo src/libcrun/libcrun_la-terminal.lo libocispec/libocispec.la -lsystemd -lseccomp -lcap -lyajl   
libtool: link: (cd .libs/libcrun.lax/libocispec.a && ar x "/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/.libs/libocispec.a")
libtool: link: ar cr .libs/libcrun.a  src/libcrun/libcrun_la-utils.o src/libcrun/blake3/libcrun_la-blake3.o src/libcrun/blake3/libcrun_la-blake3_portable.o src/libcrun/libcrun_la-cgroup-cgroupfs.o src/libcrun/libcrun_la-cgroup-resources.o src/libcrun/libcrun_la-cgroup-setup.o src/libcrun/libcrun_la-cgroup-systemd.o src/libcrun/libcrun_la-cgroup-utils.o src/libcrun/libcrun_la-cgroup.o src/libcrun/libcrun_la-chroot_realpath.o src/libcrun/libcrun_la-cloned_binary.o src/libcrun/libcrun_la-container.o src/libcrun/libcrun_la-criu.o src/libcrun/libcrun_la-custom-handler.o src/libcrun/libcrun_la-ebpf.o src/libcrun/libcrun_la-error.o src/libcrun/handlers/libcrun_la-handler-utils.o src/libcrun/handlers/libcrun_la-krun.o src/libcrun/handlers/libcrun_la-mono.o src/libcrun/handlers/libcrun_la-spin.o src/libcrun/handlers/libcrun_la-wasmedge.o src/libcrun/handlers/libcrun_la-wasmer.o src/libcrun/handlers/libcrun_la-wasmtime.o src/libcrun/libcrun_la-intelrdt.o src/libcrun/libcrun_la-io_priority.o src/libcrun/libcrun_la-linux.o src/libcrun/libcrun_la-mount_flags.o src/libcrun/libcrun_la-scheduler.o src/libcrun/libcrun_la-seccomp.o src/libcrun/libcrun_la-seccomp_notify.o src/libcrun/libcrun_la-signals.o src/libcrun/libcrun_la-status.o src/libcrun/libcrun_la-terminal.o  .libs/libcrun.lax/libocispec.a/basic_test_double_array.o .libs/libcrun.lax/libocispec.a/basic_test_double_array_item.o .libs/libcrun.lax/libocispec.a/basic_test_top_array_int.o .libs/libcrun.lax/libocispec.a/basic_test_top_array_string.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_int.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_obj.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_refobj.o .libs/libcrun.lax/libocispec.a/basic_test_top_double_array_string.o .libs/libcrun.lax/libocispec.a/image_manifest_items_image_manifest_items_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_config_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_content_descriptor.o .libs/libcrun.lax/libocispec.a/image_spec_schema_defs.o .libs/libcrun.lax/libocispec.a/image_spec_schema_defs_descriptor.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_index_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_layout_schema.o .libs/libcrun.lax/libocispec.a/image_spec_schema_image_manifest_schema.o .libs/libcrun.lax/libocispec.a/json_common.o .libs/libcrun.lax/libocispec.a/read-file.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_schema.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_solaris.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_vm.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_windows.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_config_zos.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_vm.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_windows.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_defs_zos.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_features_linux.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_features_schema.o .libs/libcrun.lax/libocispec.a/runtime_spec_schema_state_schema.o 
libtool: link: ranlib .libs/libcrun.a
libtool: link: rm -fr .libs/libcrun.lax
libtool: link: ( cd ".libs" && rm -f "libcrun.la" && ln -s "../libcrun.la" "libcrun.la" )
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/tests_libcrun_intelrdt tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl   
libtool: link: gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_intelrdt tests/tests_libcrun_intelrdt-tests_libcrun_intelrdt.o  libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -static-libgcc -all-static -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/init tests/init.o  
libtool: link: gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -static-libgcc -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/init tests/init.o 
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
gcc -DHAVE_CONFIG_H -I.    -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT tests/tests_libcrun_utils-tests_libcrun_utils.o -MD -MP -MF tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Tpo -c -o tests/tests_libcrun_utils-tests_libcrun_utils.o `test -f 'tests/tests_libcrun_utils.c' || echo './'`tests/tests_libcrun_utils.c
mv -f tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Tpo tests/.deps/tests_libcrun_utils-tests_libcrun_utils.Po
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/tests_libcrun_utils tests/tests_libcrun_utils-tests_libcrun_utils.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl   
libtool: link: gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_utils tests/tests_libcrun_utils-tests_libcrun_utils.o  libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o tests/tests_libcrun_fuzzer tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o libcrun_testing.a -lsystemd -lseccomp -lcap -lyajl   libocispec/libocispec.la  
libtool: link: gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o tests/tests_libcrun_fuzzer tests/tests_libcrun_fuzzer-tests_libcrun_fuzzer.o  libcrun_testing.a -lsystemd -lseccomp -lcap libocispec/.libs/libocispec.a -lyajl
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR="\"/usr/local/lib/crun\"" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes  -o crun src/crun-crun.o src/crun-run.o src/crun-delete.o src/crun-kill.o src/crun-pause.o src/crun-unpause.o src/crun-oci_features.o src/crun-spec.o src/crun-exec.o src/crun-list.o src/crun-create.o src/crun-start.o src/crun-state.o src/crun-update.o src/crun-ps.o src/crun-checkpoint.o src/crun-restore.o src/libcrun/crun-cloned_binary.o libcrun.la -lsystemd -lseccomp -lcap -lyajl   
libtool: link: gcc -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -I /builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/src -D CRUN_LIBDIR=\"/usr/local/lib/crun\" -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,pack-relative-relocs -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o crun src/crun-crun.o src/crun-run.o src/crun-delete.o src/crun-kill.o src/crun-pause.o src/crun-unpause.o src/crun-oci_features.o src/crun-spec.o src/crun-exec.o src/crun-list.o src/crun-create.o src/crun-start.o src/crun-state.o src/crun-update.o src/crun-ps.o src/crun-checkpoint.o src/crun-restore.o src/libcrun/crun-cloned_binary.o  ./.libs/libcrun.a -lsystemd -lseccomp -lcap -lyajl
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
rc/libcrun/status.c:81:6: note: (11) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:83:7: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:703:34: note: (13) returning to 'libcrun_status_write_exec_fifo' from 'libcrun_get_state_directory' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:712:6: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (16) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/status.c:715:8: note: (17) 'open(fifo_path, 524289)' leaks here; was opened at (16) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/error.h:42, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.h:23, <--[gcc]
                 from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:24: <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (2) following 'true' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:26: note: (2) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:48:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:21: note: (6) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:25: <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (7) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (8) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:44:21: note: (9) inlined call to 'cleanup_closep' from 'libcrun_new_terminal' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_new_terminal' at src/libcrun/terminal.c:44:21:
cc1: note: (10) calling 'cleanup_closep.part.0' from 'libcrun_new_terminal'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (11) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (12) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (13) following 'true' branch... <--[gcc]
cc1: note: (14) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (15) second 'close' here; first 'close' was at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:26: note: (2) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (3) assuming 'fd' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (4) following 'false' branch... <--[gcc]
cc1: note: (5) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (6) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (8) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (9) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (10) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (11) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
cc1: note: (12) calling 'cleanup_closep.part.0' from 'libcrun_set_stdio'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (13) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (14) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: (15) following 'true' branch... <--[gcc]
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (17) second 'close' here; first 'close' was at (14) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_set_stdio': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:106:1: warning: leak of file descriptor 'ret' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:95:1: note: (1) entry to 'libcrun_set_stdio' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:100:6: note: (2) following 'false' branch... <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (4) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (6) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (7) assuming 'ret' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:23: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:17: note: (10) following 'true' branch (when 'i != 3')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:105:13: note: (12) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (13) assuming 'ret' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:106:10: note: (14) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:103:23: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:98:21: note: (16) inlined call to 'cleanup_closep' from 'libcrun_set_stdio' <--[gcc]
In function 'cleanup_closep',
    inlined from 'libcrun_set_stdio' at src/libcrun/terminal.c:98:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[gcc]
In function 'libcrun_set_stdio':
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:106:1: note: (19) 'ret' leaks here; was opened at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'libcrun_new_terminal': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: warning: leak of 'xstrdup(&buf)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:40:1: note: (1) entry to 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:45:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:48:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:49:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:52:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:53:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (8) calling 'xstrdup' from 'libcrun_new_terminal' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:215:1: note: (9) entry to 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:218:6: note: (10) following 'false' branch (when 'str' is non-NULL)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:221:9: note: (12) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (13) assuming 'ret' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (14) following 'false' branch (when 'ret' is non-NULL)... <--[gcc]
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/terminal.c:56:10: note: (16) returning to 'libcrun_new_terminal' from 'xstrdup' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:222:6: note: (17) 'xstrdup(&buf)' leaks here; was allocated at (12) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c:3680: error: uninitvar(CWE-457): Uninitialized variable: code <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/linux.c: internal warning: child 13033 timed out after 30s <--[gcc]
cswrap: error: child 13033 (/usr/bin/gcc) terminated by signal 15 (timed out)
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'main': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:305:3: warning: 'strncpy' specified bound 108 equals destination size [-Wstringop-truncation] <--[gcc]
  305 |   strncpy (notify_socket_unix_name.sun_path, notify_socket_name,
      |   ^
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'write_to': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:6: warning: leak of file descriptor 'open(path, 1)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:161:12: note: (1) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:162:6: note: (2) assuming 'open(path, 1)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:162:6: note: (3) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:7: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:6: note: (5) 'open(path, 1)' leaks here; was opened at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'check_idmapped_mounts': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:209:6: warning: leak of file descriptor 'open(&proc_path, 0)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:176:1: note: (1) entry to 'check_idmapped_mounts' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:187:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:189:6: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:189:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:197:3: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:198:3: note: (6) calling 'write_to' from 'check_idmapped_mounts' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:159:1: note: (7) entry to 'write_to' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:162:6: note: (8) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:7: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:6: note: (10) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:167:7: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:167:6: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:169:1: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:198:3: note: (14) returning to 'check_idmapped_mounts' from 'write_to' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:200:3: note: (15) calling 'write_to' from 'check_idmapped_mounts' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:159:1: note: (16) entry to 'write_to' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:162:6: note: (17) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:7: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:165:6: note: (19) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:167:7: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:167:6: note: (21) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:169:1: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:200:3: note: (23) returning to 'check_idmapped_mounts' from 'write_to' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:203:8: note: (24) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:204:6: note: (25) assuming 'open(&proc_path, 0)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:204:6: note: (26) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:207:18: note: (27) inlined call to 'syscall_open_tree' from 'check_idmapped_mounts' <--[gcc]
In function 'syscall_open_tree',
    inlined from 'check_idmapped_mounts' at tests/init.c:207:18:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:132:16: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'check_idmapped_mounts': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:209:6: note: (29) 'open(&proc_path, 0)' leaks here; was opened at (24) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'cat': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: warning: leak of FILE 'fopen(file, "rbe")' [CWE-775] [-Wanalyzer-file-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:224:13: note: (1) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:226:6: note: (2) assuming 'fopen(file, "rbe")' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:226:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:231:10: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: note: (7) 'fopen(file, "rbe")' leaks here; was opened at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: warning: leak of 'fopen(file, "rbe")' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:224:13: note: (1) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:226:6: note: (2) assuming 'fopen(file, "rbe")' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:226:6: note: (3) following 'false' branch... <--[gcc]
cc1: note: (4) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:231:10: note: (5) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:241:11: note: (7) 'fopen(file, "rbe")' leaks here; was allocated at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c: In function 'main': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:627:10: warning: leak of file descriptor 'open(&path, 1)' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:380:6: note: (1) following 'false' branch (when 'argc > 1')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:383:7: note: (2) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:383:6: note: (3) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:388:7: note: (4) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:388:6: note: (5) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:396:7: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:396:6: note: (7) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:404:7: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:404:6: note: (9) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:417:7: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:417:6: note: (11) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:424:7: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:424:6: note: (13) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:441:7: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:441:6: note: (15) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:448:7: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:448:6: note: (17) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:458:7: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:458:6: note: (19) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:503:7: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:503:6: note: (21) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:516:7: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:516:6: note: (23) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:529:7: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:529:6: note: (25) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:539:7: note: (26) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:539:6: note: (27) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:552:7: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:552:6: note: (29) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:566:7: note: (30) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:566:6: note: (31) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:580:7: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:580:6: note: (33) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:590:7: note: (34) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:590:6: note: (35) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:597:7: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:597:6: note: (37) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:601:7: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:601:6: note: (39) following 'false' branch (when the strings are non-equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:607:7: note: (40) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:607:6: note: (41) following 'true' branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:613:10: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:613:10: note: (43) following 'false' branch (when 'argc != 2')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:616:7: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:618:10: note: (45) following 'false' branch (when 'ret >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:621:7: note: (46) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:623:12: note: (47) opened here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:624:10: note: (48) assuming 'open(&path, 1)' is a valid file descriptor (>= 0) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:624:10: note: (49) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:626:13: note: (50) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/init.c:627:10: note: (51) 'open(&path, 1)' leaks here; was opened at (47) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c: In function 'test_send_receive_fd': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:144:1: warning: leak of file descriptor 'pipes[1]' [CWE-775] [-Wanalyzer-fd-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:74:1: note: (1) entry to 'test_send_receive_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:82:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:88:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:92:6: note: (6) following 'false' branch (when 'pid >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (8) following 'true' branch (when 'pid != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (10) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (11) when 'pipe' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:104:22: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:98:25: note: (14) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In file included from /builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:20: <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:98:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (15) following 'false' branch... <--[gcc]
In function 'test_send_receive_fd':
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:144:1: note: (17) 'pipes[1]' leaks here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'test_write_read_file': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: warning: leak of 'xmalloc(1024)' [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:190:1: note: (1) entry to 'test_write_read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:198:32: note: (2) calling 'xmalloc' from 'test_write_read_file' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:59:1: note: (3) entry to 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:61:15: note: (4) allocated here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (5) assuming 'res' is non-NULL <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:6: note: (6) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:64:10: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:198:32: note: (8) returning to 'test_write_read_file' from 'xmalloc' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:62:21: note: (9) 'xmalloc(1024)' leaks here; was allocated at (4) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor '*(void *)p' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (1) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (2) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (3) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (4) second 'close' here; first 'close' was at (1) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'pipefd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:74:1: note: (1) entry to 'test_send_receive_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:82:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:88:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:92:6: note: (6) following 'false' branch (when 'pid >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (8) following 'true' branch (when 'pid != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (10) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (11) when 'pipe' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:104:22: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:98:25: note: (14) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:98:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (15) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (16) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:98:25: note: (17) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:98:25:
cc1: note: (18) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (19) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (20) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (21) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (22) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (23) second 'close' here; first 'close' was at (20) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'pipefd0' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:74:1: note: (1) entry to 'test_send_receive_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:82:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:88:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:92:6: note: (6) following 'false' branch (when 'pid >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (8) following 'true' branch (when 'pid != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (10) opened here as read-write <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (11) when 'pipe' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:10: note: (12) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:104:22: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:98:25: note: (14) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:98:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (15) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (16) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:97:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:7: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (18) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (19) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (20) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:97:25:
cc1: note: (21) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (22) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (23) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (24) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (25) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (26) second 'close' here; first 'close' was at (23) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: warning: double 'close' of file descriptor 'fd1' [CWE-1341] [-Wanalyzer-fd-double-close] <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:74:1: note: (1) entry to 'test_send_receive_fd' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:82:6: note: (2) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:85:12: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:88:6: note: (4) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:91:9: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:92:6: note: (6) following 'false' branch (when 'pid >= 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:95:6: note: (8) following 'true' branch (when 'pid != 0')... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:97:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:11: note: (10) when 'pipe' succeeds <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:101:10: note: (11) following 'false' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:104:22: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:98:25: note: (13) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:98:25:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (14) following 'false' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (15) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:79:21: note: (16) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:79:21:
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:104:6: note: (17) following 'true' branch... <--[gcc]
In function 'cleanup_closep.part.0':
cc1: note: (18) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/tests/tests_libcrun_utils.c:79:21: note: (19) inlined call to 'cleanup_closep' from 'test_send_receive_fd' <--[gcc]
In function 'cleanup_closep',
    inlined from 'test_send_receive_fd' at tests/tests_libcrun_utils.c:79:21:
cc1: note: (20) calling 'cleanup_closep.part.0' from 'test_send_receive_fd'
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h: In function 'cleanup_closep.part.0': <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:101:1: note: (21) entry to 'cleanup_closep.part.0' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (22) first 'close' here <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:40:27: note: (23) following 'true' branch... <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:5: note: in expansion of macro 'TEMP_FAILURE_RETRY' <--[gcc]
cc1: note: (24) ...to here
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:105:25: note: (25) second 'close' here; first 'close' was at (22) <--[gcc]
/builddir/build/BUILD/crun-1.18-build/crun-HEAD/src/libcrun/utils.h:39:32: note: in definition of macro 'TEMP_FAILURE_RETRY' <--[gcc]
+ RPM_EC=0
++ jobs -p
+ exit 0
Finish: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:gcc\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' sh -c \\"rpmbuild -bc --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""']
Finish: run

>>> 2024-10-29 20:36:56	"/usr/bin/mock" "-r" "fedora-rawhide-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "rpmbuild --nocheck"

>>> 2024-10-29 20:36:57	"/usr/bin/mock" "-r" "fedora-rawhide-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--chroot" "/bin/su mockbuild -l -c \"PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\\$PATH CSWRAP_CAP_FILE=\\\$'/builddir/cswrap-capture.err' CSWRAP_TIMEOUT=\\\$'30' CSWRAP_TIMEOUT_FOR=\\\$'::cppcheck:gcc' CSWRAP_ADD_CFLAGS=\\\$'-Wno-unknown-pragmas' CSWRAP_DEL_CFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSWRAP_ADD_CXXFLAGS=\\\$'' CSWRAP_DEL_CXXFLAGS=\\\$'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register' CSGCCA_ADD_OPTS=\\\$'-fdiagnostics-text-art-charset=none' sh -c \\\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec '--define' '_unpackaged_files_terminate_build 0' '--define' 'apidocs 0' '--define' 'with_publican 0' '--without' 'docs' '--without' 'langpacks' '--define' 'libguestfs_runtests 0' '--define' 'runselftest 0' '--without' 'test' '--without' 'testsuite' '--nocheck' '--define' 'libguestfs_runtests 0' '--define' 'runselftest 0' '--without' 'test' '--without' 'testsuite'\\\"\""
INFO: mock.py version 5.9 starting (python version = 3.9.20, NVR = mock-5.9-1.el9), args: /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --plugin-option=tmpfs:keep_mounted=True --config-opts=print_main_output=True --chroot '/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\$PATH CSWRAP_CAP_FILE=\$'"'"'/builddir/cswrap-capture.err'"'"' CSWRAP_TIMEOUT=\$'"'"'30'"'"' CSWRAP_TIMEOUT_FOR=\$'"'"'::cppcheck:gcc'"'"' CSWRAP_ADD_CFLAGS=\$'"'"'-Wno-unknown-pragmas'"'"' CSWRAP_DEL_CFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSWRAP_ADD_CXXFLAGS=\$'"'"''"'"' CSWRAP_DEL_CXXFLAGS=\$'"'"'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register'"'"' CSGCCA_ADD_OPTS=\$'"'"'-fdiagnostics-text-art-charset=none'"'"' sh -c \"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec '"'"'--define'"'"' '"'"'_unpackaged_files_terminate_build 0'"'"' '"'"'--define'"'"' '"'"'apidocs 0'"'"' '"'"'--define'"'"' '"'"'with_publican 0'"'"' '"'"'--without'"'"' '"'"'docs'"'"' '"'"'--without'"'"' '"'"'langpacks'"'"' '"'"'--define'"'"' '"'"'libguestfs_runtests 0'"'"' '"'"'--define'"'"' '"'"'runselftest 0'"'"' '"'"'--without'"'"' '"'"'test'"'"' '"'"'--without'"'"' '"'"'testsuite'"'"' '"'"'--nocheck'"'"' '"'"'--define'"'"' '"'"'libguestfs_runtests 0'"'"' '"'"'--define'"'"' '"'"'runselftest 0'"'"' '"'"'--without'"'"' '"'"'test'"'"' '"'"'--without'"'"' '"'"'testsuite'"'"'\""'
Start(bootstrap): init plugins
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
Mock Version: 5.9
INFO: Mock Version: 5.9
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Package manager dnf5 detected and used (fallback)
Finish(bootstrap): chroot init
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
INFO: Package manager dnf5 detected and used (direct choice)
Finish: chroot init
INFO: Running in chroot: ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:gcc\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""']
Start: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:gcc\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""']
setting SOURCE_DATE_EPOCH=1730160000
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Yo56D3
+ umask 022
+ cd /builddir/build/BUILD/crun-1.18-build
+ '[' /builddir/build/BUILD/crun-1.18-build/BUILDROOT '!=' / ']'
+ rm -rf /builddir/build/BUILD/crun-1.18-build/BUILDROOT
++ dirname /builddir/build/BUILD/crun-1.18-build/BUILDROOT
+ mkdir -p /builddir/build/BUILD/crun-1.18-build
+ mkdir /builddir/build/BUILD/crun-1.18-build/BUILDROOT
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd crun-HEAD
+ /usr/bin/make install DESTDIR=/builddir/build/BUILD/crun-1.18-build/BUILDROOT 'INSTALL=/usr/bin/install -p' prefix=/usr
/usr/bin/make  install-recursive
make[1]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
Making install in libocispec
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
/usr/bin/make  install-recursive
make[3]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
Making install in yajl
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl'
make[5]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl'
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec/yajl'
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[5]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[5]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[3]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD/libocispec'
make[2]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[3]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
 /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -p   libcrun.la '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib'
libtool: install: /usr/bin/install -p .libs/libcrun.lai /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib/libcrun.la
libtool: install: /usr/bin/install -p .libs/libcrun.a /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib/libcrun.a
libtool: install: chmod 644 /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib/libcrun.a
libtool: install: ranlib /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib/libcrun.a
libtool: warning: remember to run 'libtool --finish /usr/local/lib'
 /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -p crun '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/bin'
libtool: install: /usr/bin/install -p crun /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/bin/crun
/usr/bin/make  install-exec-hook
make[4]: Entering directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
ln -s -f crun /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/bin/krun
ln -s -f crun /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/bin/crun-wasm
make[4]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
 /usr/bin/mkdir -p '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/man/man1'
 /usr/bin/install -p -m 644 crun.1 krun.1 '/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/man/man1'
make[3]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[2]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
make[1]: Leaving directory '/builddir/build/BUILD/crun-1.18-build/crun-HEAD'
+ rm -rf /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/lib
+ /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 --unique-debug-suffix -1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64 --unique-debug-src-base crun-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/crun-1.18-build/crun-HEAD
find-debuginfo: starting
Extracting debug info from 1 files
DWARF-compressing 1 files
sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match.
Creating .debug symlinks for symlinks to ELF files
Copying sources found by 'debugedit -l' to /usr/src/debug/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
3378 blocks
find-debuginfo: done
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j8 /builddir/build/BUILD/crun-1.18-build/BUILDROOT
Scanned 21 directories and 124 files,
               processed 0 inodes,
               0 modified (0 replaced + 0 rewritten),
               0 unsupported format, 0 errors
Reading /builddir/build/BUILD/crun-1.18-build/SPECPARTS/rpm-debuginfo.specpart
Processing files: crun-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.ilIEIG
+ umask 022
+ cd /builddir/build/BUILD/crun-1.18-build
+ cd crun-HEAD
+ LICENSEDIR=/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun
+ export LC_ALL=C.UTF-8
+ LC_ALL=C.UTF-8
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun
+ cp -pr /builddir/build/BUILD/crun-1.18-build/crun-HEAD/COPYING /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: crun = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 crun(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 oci-runtime
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.28)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.5)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libcap.so.2()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libseccomp.so.2()(64bit) libsystemd.so.0()(64bit) libsystemd.so.0(LIBSYSTEMD_209)(64bit) libsystemd.so.0(LIBSYSTEMD_221)(64bit) libsystemd.so.0(LIBSYSTEMD_237)(64bit) libsystemd.so.0(LIBSYSTEMD_246)(64bit) libyajl.so.2()(64bit) rtld(GNU_HASH)
Recommends: criu >= 3.17.1 criu-libs
Processing files: crun-krun-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.WFoFqo
+ umask 022
+ cd /builddir/build/BUILD/crun-1.18-build
+ cd crun-HEAD
+ LICENSEDIR=/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-krun
+ export LC_ALL=C.UTF-8
+ LC_ALL=C.UTF-8
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-krun
+ cp -pr /builddir/build/BUILD/crun-1.18-build/crun-HEAD/COPYING /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-krun
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: crun-krun = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 crun-krun(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 krun = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: crun-wasm-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.OIqzbX
+ umask 022
+ cd /builddir/build/BUILD/crun-1.18-build
+ cd crun-HEAD
+ LICENSEDIR=/builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-wasm
+ export LC_ALL=C.UTF-8
+ LC_ALL=C.UTF-8
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-wasm
+ cp -pr /builddir/build/BUILD/crun-1.18-build/crun-HEAD/COPYING /builddir/build/BUILD/crun-1.18-build/BUILDROOT/usr/share/licenses/crun-wasm
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: crun-wasm = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 crun-wasm(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: wasmedge
Processing files: crun-debugsource-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
Provides: crun-debugsource = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 crun-debugsource(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: crun-debuginfo-1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42.x86_64
Provides: crun-debuginfo = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 crun-debuginfo(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42 debuginfo(build-id) = c4a453a26bd8ede04f673fa023bbf7907c34e48d
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: crun-debugsource(x86-64) = 1.18-1.20241029201628929161.pr1596.14.gc41f034.fc42
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/crun-1.18-build/BUILDROOT
Finish: chroot ['/bin/su mockbuild -l -c "PATH=/usr/lib64/cscppc:/usr/lib64/csgcca:/usr/lib64/cswrap:\\$PATH CSWRAP_CAP_FILE=\\$\'/builddir/cswrap-capture.err\' CSWRAP_TIMEOUT=\\$\'30\' CSWRAP_TIMEOUT_FOR=\\$\'::cppcheck:gcc\' CSWRAP_ADD_CFLAGS=\\$\'-Wno-unknown-pragmas\' CSWRAP_DEL_CFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSWRAP_ADD_CXXFLAGS=\\$\'\' CSWRAP_DEL_CXXFLAGS=\\$\'-Werror*:-fdiagnostics-color*:-no-canonical-prefixes:-Wno-error=deprecated-register\' CSGCCA_ADD_OPTS=\\$\'-fdiagnostics-text-art-charset=none\' sh -c \\"rpmbuild -bi --nodeps --short-circuit /builddir/build/SPECS/crun.spec \'--define\' \'_unpackaged_files_terminate_build 0\' \'--define\' \'apidocs 0\' \'--define\' \'with_publican 0\' \'--without\' \'docs\' \'--without\' \'langpacks\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\' \'--nocheck\' \'--define\' \'libguestfs_runtests 0\' \'--define\' \'runselftest 0\' \'--without\' \'test\' \'--without\' \'testsuite\'\\""']
Finish: run

>>> 2024-10-29 20:36:59	"/usr/bin/mock" "-r" "fedora-rawhide-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "SC_RESULTS_DIR=/builddir/shellcheck-results SC_BATCH=1 SC_TIMEOUT=30 /usr/share/csmock/scripts/run-shellcheck.sh /builddir/build/BUILDROOT/*"
Looking for shell scripts...find: '/builddir/build/BUILDROOT/*': No such file or directory
 done

>>> 2024-10-29 20:37:01	"/usr/bin/mock" "-r" "fedora-rawhide-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--chroot" "LANG=en_US.utf8 /usr/share/csmock/scripts/find-unicode-control.py -d -v /builddir/build/BUILD -p bidi --notests >/builddir/unicontrol-capture.err 2>/builddir/unicontrol-capture.log"

>>> 2024-10-29 20:37:05	'/usr/bin/mock' '-r' 'fedora-rawhide-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'tar -c --remove-files '/builddir/cswrap-capture.err' '/builddir/shellcheck-results' '/builddir/unicontrol-capture.err' '/builddir/unicontrol-capture.log' '/builddir/clippy-output.txt'' | tar -xC '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/raw-results'
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets

>>> 2024-10-29 20:37:06	cat '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/raw-results/builddir/cswrap-capture.err' | csgrep --mode=json --quiet --path '^/builddir/build/BUILD/' --remove-duplicates | csgrep --mode=json --invert-match --checker CPPCHECK_WARNING --event 'cppcheckError|internalAstError|normalCheckLevelMaxBranches|preprocessorErrorDirective|syntaxError|unknownMacro' | csgrep --mode=json --invert-match --checker COMPILER_WARNING --event error > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/uni-results/cswrap-capture.js'

>>> 2024-10-29 20:37:07	set -o pipefail; /usr/share/csmock/scripts/convert-clippy.py < /tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/raw-results/builddir/clippy-output.txt | csgrep --remove-duplicates > /tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/uni-results/clippy-capture.err

>>> 2024-10-29 20:37:07	cd /tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/raw-results/builddir/shellcheck-results && csgrep --mode=json --remove-duplicates --quiet --invert-match --event '^info|style|warning\[SC1090\]' *.json > /tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/uni-results/shellcheck-capture.json

>>> 2024-10-29 20:37:07	csgrep --mode=json '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/raw-results/builddir/unicontrol-capture.err' > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/uni-results/unicontrol-capture.js'

scan.ini: time-finished = 2024-10-29 20:37:07
scan.ini: exit-code = 0
>>> 2024-10-29 20:37:07	cslinker --quiet --cwelist '/usr/share/csmock/cwe-map.csv' --inifile '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan.ini' '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/uni-results'/* > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/scan-results-all.js'

>>> 2024-10-29 20:37:07	'/usr/bin/mock' '-r' 'fedora-rawhide-x86_64' '--plugin-option=tmpfs:keep_mounted=True' '--config-opts=print_main_output=True' '--quiet' '--shell' 'csgrep --mode=json --embed-context 3 '--warning-rate-limit=1024' '--limit-msg-len=512'' <'/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/scan-results-all.js' >'/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/scan-results-all.js.tmp'

>>> 2024-10-29 20:37:08	"/usr/bin/mock" "-r" "fedora-rawhide-x86_64" "--plugin-option=tmpfs:keep_mounted=True" "--config-opts=print_main_output=True" "--quiet" "--clean"

>>> 2024-10-29 20:37:11	cat '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/scan-results-all.js' | sed 's|/builddir/build/BUILDROOT/[^/]*/|/builddir/build/BUILD//|' | csgrep --mode=json --path '^/builddir/build/BUILD/' --strip-path-prefix /builddir/build/BUILD/ | csgrep --mode=json --invert-match --path '^ksh-.*[0-9]+\.c$' | csgrep --mode=json --invert-match --path 'CMakeFiles/CMakeTmp|conftest.c' | cssort --key=path > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.js'

>>> 2024-10-29 20:37:12	cat '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/scan-results-all.js' | sed 's|/builddir/build/BUILDROOT/[^/]*/|/builddir/build/BUILD//|' | csgrep --mode=json --strip-path-prefix /builddir/build/BUILD/ | csdiff --show-internal '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.js' - | cssort > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.js'

>>> 2024-10-29 20:37:12	csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.js' > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.err'

>>> 2024-10-29 20:37:12	csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.js' | cshtml - > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.html'

>>> 2024-10-29 20:37:12	csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results.js' | tee '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/debug/suppressed-results-summary.txt'

>>> 2024-10-29 20:37:12	csgrep --mode=grep --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.js' > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.err'

>>> 2024-10-29 20:37:12	csgrep --mode=json --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.js' | cshtml - > '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.html'

>>> 2024-10-29 20:37:13	csgrep --mode=evtstat --invert-match --event "internal warning" --prune-events=1 '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results.js' | tee '/tmp/csmockoxvdiihf/crun-1.18-1.20241029201628929161.pr1596.14.gc41f034/scan-results-summary.txt'
      3	COMPILER_WARNING                                	warning[-Wmaybe-uninitialized]
      1	COMPILER_WARNING                                	warning[-Wstringop-truncation]
      1	COMPILER_WARNING                                	warning[-Wunused-variable]
    189	CPPCHECK_WARNING                                	error[memleak]
      1	CPPCHECK_WARNING                                	error[uninitvar]
      1	CPPCHECK_WARNING                                	warning[uninitvar]
      5	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-double-free]
     33	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-fd-double-close]
     33	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-fd-leak]
      2	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-file-leak]
      1	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-infinite-loop]
    204	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-malloc-leak]
      7	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-null-argument]
     19	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-null-dereference]
      4	GCC_ANALYZER_WARNING                            	warning[-Wanalyzer-use-of-uninitialized-value]

<<< 2024-10-29 20:37:13	csmock exit code: 0