Task #78407 - systemd-258.1-2.fc44/scan-results.err

back to task #78407
download
<...trimmed, download required for full log>
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘d[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘k[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘a[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘b[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘d[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘k[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘a[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘b[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘d[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘k[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘a[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘b[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘d[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘k[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘a[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘b[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘d[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘k[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘a[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘b[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘d[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘k[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘a[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘b[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘d[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘k[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘a[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘b[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘d[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘k[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘a[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘b[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘d[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘k[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘a[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘b[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘d[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘k[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘a[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘b[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘d[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘k[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘a[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘b[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘d[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘k[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘a[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘b[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘d[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘k[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘a[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘b[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘d[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘k[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘a[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘b[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘d[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘k[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘a[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘b[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘d[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘k[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘a[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘b[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘d[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘k[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘a[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘b[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘d[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘k[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘a[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘b[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘d[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘k[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘a[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘b[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘d[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘k[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘b[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘d[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘k[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:294:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:294:9: danger: ‘d[1]’ leaks here
#  292|           safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|->         safe_close_pair(d);
#  295|           safe_close_pair(k);
#  296|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:294:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:294:9: danger: ‘k[1]’ leaks here
#  292|           safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|->         safe_close_pair(d);
#  295|           safe_close_pair(k);
#  296|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-event/test-event.c:295:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258.1/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-event/test-event.c:295:9: danger: ‘k[1]’ leaks here
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|->         safe_close_pair(k);
#  296|   }
#  297|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-hwdb/sd-hwdb.c:102: error[uninitvar]: Uninitialized variable: &search.child_off
#  100|   
#  101|           search.c = c;
#  102|->         child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count,
#  103|                           le64toh(hwdb->head->child_entry_size), trie_children_cmp_f);
#  104|           if (child)

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-journal/catalog.c:623:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:610:5: enter_function: entry to ‘catalog_get’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:613:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/catalog.c:614:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/catalog.c:614:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/catalog.c:616:29: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/catalog.c:619:13: call_function: calling ‘open_mmap’ from ‘catalog_get’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:619:13: return_function: returning to ‘catalog_get’ from ‘open_mmap’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:620:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/catalog.c:623:25: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/catalog.c:623:25: danger: use of uninitialized value ‘p’ here
#  621|                   return r;
#  622|   
#  623|->         const char *s = find_id(p, id);
#  624|           if (!s)
#  625|                   r = -ENOENT;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-journal/catalog.c:684:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:672:5: enter_function: entry to ‘catalog_list’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:675:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/catalog.c:677:29: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/catalog.c:680:13: call_function: calling ‘open_mmap’ from ‘catalog_list’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:680:13: return_function: returning to ‘catalog_list’ from ‘open_mmap’
systemd-258.1/src/libsystemd/sd-journal/catalog.c:681:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/catalog.c:684:30: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/catalog.c:684:30: danger: use of uninitialized value ‘p’ here
#  682|                   return r;
#  683|   
#  684|->         const CatalogHeader *h = p;
#  685|           const CatalogItem *items = (const CatalogItem*) ((const uint8_t*) p + le64toh(h->header_size));
#  686|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_false: following ‘false’ branch (when ‘fname’ is NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4142:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
# 4128|                                               DEFAULT_COMPRESS_THRESHOLD :
# 4129|                                               MAX(MIN_COMPRESS_THRESHOLD, compress_threshold_bytes),
# 4130|->                 .strict_order = FLAGS_SET(file_flags, JOURNAL_STRICT_ORDER),
# 4131|                   .newest_boot_id_prioq_idx = PRIOQ_IDX_NULL,
# 4132|                   .last_direction = _DIRECTION_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
# 4154|                    * it doesn't hurt in that case. */
# 4155|   
# 4156|->                 f->fd = openat_report_new(AT_FDCWD, f->path, f->open_flags|O_CLOEXEC|O_NONBLOCK, f->mode, &newly_created);
# 4157|                   if (f->fd < 0) {
# 4158|                           r = f->fd;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
# 4154|                    * it doesn't hurt in that case. */
# 4155|   
# 4156|->                 f->fd = openat_report_new(AT_FDCWD, f->path, f->open_flags|O_CLOEXEC|O_NONBLOCK, f->mode, &newly_created);
# 4157|                   if (f->fd < 0) {
# 4158|                           r = f->fd;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4165:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
# 4163|                   f->close_fd = true;
# 4164|   
# 4165|->                 r = fd_nonblock(f->fd, false);
# 4166|                   if (r < 0)
# 4167|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4165:21: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
# 4163|                   f->close_fd = true;
# 4164|   
# 4165|->                 r = fd_nonblock(f->fd, false);
# 4166|                   if (r < 0)
# 4167|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4166:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4169:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4169:20: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: call_function: calling ‘mmap_prot_from_open_flags’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: return_function: returning to ‘journal_file_open’ from ‘mmap_prot_from_open_flags’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
# 4181|           }
# 4182|   
# 4183|->         r = mmap_cache_add_fd(mmap_cache, f->fd, mmap_prot_from_open_flags(open_flags), &f->cache_fd);
# 4184|           if (r < 0)
# 4185|                   goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4166:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4169:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4169:20: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: call_function: calling ‘mmap_prot_from_open_flags’ from ‘journal_file_open’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: return_function: returning to ‘journal_file_open’ from ‘mmap_prot_from_open_flags’
systemd-258.1/src/libsystemd/sd-journal/journal-file.c:4183:13: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
# 4181|           }
# 4182|   
# 4183|->         r = mmap_cache_add_fd(mmap_cache, f->fd, mmap_prot_from_open_flags(open_flags), &f->cache_fd);
# 4184|           if (r < 0)
# 4185|                   goto fail;

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:461:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  459|           va_list aq;
#  460|   
#  461|->         assert_return(priority >= 0, -EINVAL);
#  462|           assert_return(priority <= 7, -EINVAL);
#  463|           assert_return(format, -EINVAL);

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:462:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  460|   
#  461|           assert_return(priority >= 0, -EINVAL);
#  462|->         assert_return(priority <= 7, -EINVAL);
#  463|           assert_return(format, -EINVAL);
#  464|   

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:465:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  463|           assert_return(format, -EINVAL);
#  464|   
#  465|->         xsprintf(p, "PRIORITY=%i", LOG_PRI(priority));
#  466|   
#  467|           va_copy(aq, ap);

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:99:24: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘w’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:255:12: enter_function: entry to ‘mmap_try_harder’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:256:24: call_function: calling ‘mmap_cache_fd_cache’ from ‘mmap_try_harder’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:256:24: return_function: returning to ‘mmap_try_harder’ from ‘mmap_cache_fd_cache’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:258:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:264:20: branch_false: following ‘false’ branch (when ‘ptr == 18446744073709551615’)...
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:268:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:268:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:273:22: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:273:20: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:264:20: branch_false: following ‘false’ branch (when ‘ptr == 18446744073709551615’)...
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:268:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:268:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:273:22: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:273:20: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
#   97|           assert(w);
#   98|   
#   99|->         MMapCache *m = mmap_cache_fd_cache(w->fd);
#  100|   
#  101|           if (w->ptr)

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:206:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘m’
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:435:15: enter_function: entry to ‘sd_journal_flush_matches’
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:439:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:440:17: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:440:17: call_function: calling ‘match_free’ from ‘sd_journal_flush_matches’
#  204|           assert(m);
#  205|   
#  206|->         while (m->matches)
#  207|                   match_free(m->matches);
#  208|   

Error: GCC_ANALYZER_WARNING (CWE-415):
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:212:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*m.data’
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:435:15: enter_function: entry to ‘sd_journal_flush_matches’
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:439:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:440:17: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/sd-journal.c:440:17: call_function: calling ‘match_free’ from ‘sd_journal_flush_matches’
#  210|                   LIST_REMOVE(matches, m->parent->matches, m);
#  211|   
#  212|->         free(m->data);
#  213|           return mfree(m);
#  214|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:31:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fn, 524290)’
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:70:12: enter_function: entry to ‘run_test’
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:81:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:84:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:84:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:87:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:90:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:90:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:91:16: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:95:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:107:28: branch_true: following ‘true’ branch (when ‘n != 6000’)...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:108:38: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:113:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:114:25: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:115:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:108:38: call_function: inlined call to ‘freep’ from ‘run_test’
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:142:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:147:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:154:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:157:15: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:160:34: branch_true: following ‘true’ branch (when ‘end > p’)...
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:161:17: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-verify.c:161:17: call_function: calling ‘bit_toggle’ from ‘run_test’
#   29|           assert_se(fd >= 0);
#   30|   
#   31|->         r = pread(fd, &b, 1, p/8);
#   32|           assert_se(r == 1);
#   33|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-json/json-util.c:66: error[uninitvar]: Uninitialized variable: i
#   64|                   uint64_t b;
#   65|   
#   66|->                 if (!sd_json_variant_is_unsigned(i))
#   67|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an unsigned integer.", k, strna(name));
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-json/json-util.c:235:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘filename’
systemd-258.1/src/libsystemd/sd-json/json-util.c:224:5: enter_function: entry to ‘json_dispatch_filename’
systemd-258.1/src/libsystemd/sd-json/json-util.c:225:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-json/json-util.c:226:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-json/json-util.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-json/json-util.c:231:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-json/json-util.c:231:13: call_function: calling ‘json_dispatch_const_filename’ from ‘json_dispatch_filename’
systemd-258.1/src/libsystemd/sd-json/json-util.c:231:13: return_function: returning to ‘json_dispatch_filename’ from ‘json_dispatch_const_filename’
systemd-258.1/src/libsystemd/sd-json/json-util.c:232:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-json/json-util.c:235:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-json/json-util.c:235:13: danger: use of uninitialized value ‘filename’ here
#  233|                   return r;
#  234|   
#  235|->         if (free_and_strdup(n, filename) < 0)
#  236|                   return json_log_oom(variant, flags);
#  237|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-json/sd-json.c:4279: error[legacyUninitvar]: Uninitialized variable: userdata
# 4277|                           }
# 4278|   
# 4279|->                         cb = va_arg(ap, sd_json_build_callback_t);
# 4280|                           userdata = va_arg(ap, void *);
# 4281|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-json/sd-json.c:4862: error[legacyUninitvar]: Uninitialized variable: userdata
# 4860|   
# 4861|                           n = va_arg(ap, const char*);
# 4862|->                         cb = va_arg(ap, sd_json_build_callback_t);
# 4863|                           userdata = va_arg(ap, void*);
# 4864|   

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/libsystemd/sd-json/sd-json.c:5661:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
# 5659|                   return CMP(*a, *b);
# 5660|   
# 5661|->         return strcmp(sd_json_variant_string(*a), sd_json_variant_string(*b));
# 5662|   }
# 5663|   

Error: GCC_ANALYZER_WARNING (CWE-131):
systemd-258.1/src/libsystemd/sd-login/sd-login.c:905:29: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
systemd-258.1/src/libsystemd/sd-login/sd-login.c:858:14: enter_function: entry to ‘sd_seat_get_sessions’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:870:13: call_function: calling ‘file_of_seat’ from ‘sd_seat_get_sessions’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:870:13: return_function: returning to ‘sd_seat_get_sessions’ from ‘file_of_seat’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:871:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:874:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:877:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:879:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:879:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:882:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:882:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:890:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:890:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:891:24: call_function: calling ‘malloc_multiply’ from ‘sd_seat_get_sessions’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:891:24: return_function: returning to ‘sd_seat_get_sessions’ from ‘malloc_multiply’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:892:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:896:34: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:900:28: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:902:28: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:902:28: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:905:51: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:905:29: danger: assigned to ‘uid_t *’ {{aka ‘unsigned int *’}} here; ‘sizeof (uid_t {{aka unsigned int}})’ is ‘4’
#  903|                                   break;
#  904|   
#  905|->                         r = parse_uid(word, &uids[n++]);
#  906|                           if (r < 0)
#  907|                                   return r;

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1090: error[memleak]: Memory leak: c
# 1088|                   *ret_class = TAKE_PTR(c);
# 1089|   
# 1090|->         return 0;
# 1091|   }
# 1092|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1091:1: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1066:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1067:21: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1067:21: acquire_memory: allocated here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1068:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1087:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1087:12: branch_false: following ‘false’ branch (when ‘ret_class’ is NULL)...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/sd-login.c:1091:1: danger: ‘c’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1089|   
# 1090|           return 0;
# 1091|-> }
# 1092|   
# 1093|   _public_ int sd_machine_get_ifindices(const char *machine, int **ret_ifindices) {

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-login/test-login.c:29: error[uninitvar]: Uninitialized variable: &inc
#   27|   
#   28|           for (int k = 0; k < count; k++) {
#   29|->                 sprintf(*buf + pos, "%s"UID_FMT"%n", k > 0 ? " " : "", uids[k], &inc);
#   30|                   pos += inc;
#   31|           }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-login/test-login.c:30:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘inc’
systemd-258.1/src/libsystemd/sd-login/test-login.c:26:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/test-login.c:28:25: branch_true: following ‘true’ branch (when ‘k < count’)...
systemd-258.1/src/libsystemd/sd-login/test-login.c:29:76: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-login/test-login.c:29:17: branch_false: following ‘false’ branch (when ‘k == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-login/test-login.c:30:21: danger: use of uninitialized value ‘inc’ here
#   28|           for (int k = 0; k < count; k++) {
#   29|                   sprintf(*buf + pos, "%s"UID_FMT"%n", k > 0 ? " " : "", uids[k], &inc);
#   30|->                 pos += inc;
#   31|           }
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:243:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:633:5: enter_function: entry to ‘sd_netlink_message_open_container_union’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:637:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:638:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:638:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:639:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:639:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:641:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:641:13: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container_union’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:641:13: return_function: returning to ‘sd_netlink_message_open_container_union’ from ‘message_attribute_has_type’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:642:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:646:39: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:648:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:651:23: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:655:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:658:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:658:13: call_function: calling ‘sd_netlink_message_append_string’ from ‘sd_netlink_message_open_container_union’
#  241|                   return r;
#  242|   
#  243|->         if (size) {
#  244|                   length = strnlen(data, size+1);
#  245|                   if (length > size)

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:624:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:584:5: enter_function: entry to ‘sd_netlink_message_open_container’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:588:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:589:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:589:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:591:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:591:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:593:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:593:13: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:593:13: return_function: returning to ‘sd_netlink_message_open_container’ from ‘message_attribute_has_type’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:598:21: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:598:21: return_function: returning to ‘sd_netlink_message_open_container’ from ‘message_attribute_has_type’
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:599:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:602:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:603:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:607:47: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:609:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:613:25: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:621:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:624:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-message.c:624:13: danger: use of uninitialized value ‘size’ here
#  622|                   return -EOPNOTSUPP;
#  623|   
#  624|->         r = add_rtattr(m, attr_type | NLA_F_NESTED, NULL, size);
#  625|           if (r < 0)
#  626|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/libsystemd/sd-netlink/netlink-util.c:664:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258.1/src/libsystemd/sd-netlink/netlink-util.c:660:14: acquire_resource: socket created here
systemd-258.1/src/libsystemd/sd-netlink/netlink-util.c:661:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/libsystemd/sd-netlink/netlink-util.c:664:16: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/netlink-util.c:664:16: danger: ‘fd’ leaks here
#  662|                   return -errno;
#  663|   
#  664|->         return fd_move_above_stdio(fd);
#  665|   }
#  666|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:139:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  137|           }
#  138|           hashmap_free(nl->reply_callbacks);
#  139|->         prioq_free(nl->reply_callbacks_prioq);
#  140|   
#  141|           sd_event_source_unref(nl->io_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  139|           prioq_free(nl->reply_callbacks_prioq);
#  140|   
#  141|->         sd_event_source_unref(nl->io_event_source);
#  142|           sd_event_source_unref(nl->time_event_source);
#  143|           sd_event_unref(nl->event);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  140|   
#  141|           sd_event_source_unref(nl->io_event_source);
#  142|->         sd_event_source_unref(nl->time_event_source);
#  143|           sd_event_unref(nl->event);
#  144|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  141|           sd_event_source_unref(nl->io_event_source);
#  142|           sd_event_source_unref(nl->time_event_source);
#  143|->         sd_event_unref(nl->event);
#  144|   
#  145|           hashmap_free(nl->broadcast_group_refs);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:153:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:30:12: enter_function: entry to ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:33:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:35:14: call_function: inlined call to ‘malloc_multiply’ from ‘netlink_new’
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:36:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:68:39: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-netlink/sd-netlink.c:31:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘netlink_new’
#  151|   }
#  152|   
#  153|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_netlink, sd_netlink, netlink_free);
#  154|   
#  155|   int sd_netlink_send(

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:251:1: warning[-Wanalyzer-malloc-leak]: leak of ‘a’
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:174:12: enter_function: entry to ‘acquire_lookup_dirs’
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:203:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:204:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:204:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:205:9: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:205:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:206:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:208:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:210:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:212:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:212:12: branch_false: following ‘false’ branch (when ‘persistent’ is non-NULL)...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:215:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:215:9: branch_false: following ‘false’ branch (when ‘scope != 1’)...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:217:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:219:21: acquire_memory: allocated here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:221:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:221:21: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:221:21: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:200:41: call_function: inlined call to ‘freep’ from ‘acquire_lookup_dirs’
systemd-258.1/src/libsystemd/sd-path/path-lookup.c:251:1: danger: ‘a’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#  249|                   assert_not_reached();
#  250|           }
#  251|-> }
#  252|   
#  253|   static int patch_root_prefix(char **p, const char *root_dir) {

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/libsystemd/sd-path/sd-path.c:512:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/libsystemd/sd-path/sd-path.c:520:12: enter_function: entry to ‘get_search’
systemd-258.1/src/libsystemd/sd-path/sd-path.c:523:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-path/sd-path.c:525:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-path/sd-path.c:538:24: call_function: calling ‘search_from_environment’ from ‘get_search’
#  510|           *ret = TAKE_PTR(l);
#  511|           return 0;
#  512|-> }
#  513|   
#  514|   #if HAVE_SPLIT_BIN

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:710:31: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1236:12: enter_function: entry to ‘io_callback’
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1237:31: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: call_function: calling ‘sd_resolve_process’ from ‘io_callback’
#  708|   
#  709|           if (s.ai_addrlen > 0) {
#  710|->                 ai->ai_addr = memdup((const uint8_t*) *p + sizeof(AddrInfoSerialization), s.ai_addrlen);
#  711|                   if (!ai->ai_addr) {
#  712|                           free(ai);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:718:36: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1236:12: enter_function: entry to ‘io_callback’
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1237:31: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: call_function: calling ‘sd_resolve_process’ from ‘io_callback’
#  716|   
#  717|           if (s.canonname_len > 0) {
#  718|->                 ai->ai_canonname = memdup((const uint8_t*) *p + sizeof(AddrInfoSerialization) + s.ai_addrlen, s.canonname_len);
#  719|                   if (!ai->ai_canonname) {
#  720|                           free(ai->ai_addr);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-varlink/sd-varlink-idl.c:1764: error[uninitvar]: Uninitialized variable: i
# 1762|   
# 1763|                   JSON_VARIANT_ARRAY_FOREACH(i, v) {
# 1764|->                         r = varlink_idl_validate_field_element_type(field, i);
# 1765|                           if (r < 0)
# 1766|                                   return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-varlink/sd-varlink-idl.c:1777: error[uninitvar]: Uninitialized variable: e
# 1775|   
# 1776|                   JSON_VARIANT_OBJECT_FOREACH(k, e, v) {
# 1777|->                         r = varlink_idl_validate_field_element_type(field, e);
# 1778|                           if (r < 0)
# 1779|                                   return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/libsystemd/sd-varlink/sd-varlink-idl.c:1866: error[uninitvar]: Uninitialized variable: name
# 1864|                   const char *name;
# 1865|                   JSON_VARIANT_OBJECT_FOREACH(name, e, v) {
# 1866|->                         if (!varlink_idl_find_field(symbol, name)) {
# 1867|                                   if (reterr_bad_field)
# 1868|                                           *reterr_bad_field = name;

Error: COMPILER_WARNING:
systemd-258.1/src/libsystemd/sd-varlink/sd-varlink.c:3126:32: error[error]: ‘SCM_MAX_FD’ undeclared (first use in this function)
# 3124|                   return -EPERM;
# 3125|   
# 3126|->         if (v->n_pushed_fds >= SCM_MAX_FD) /* Kernel doesn't support more than 253 fds per message, refuse early hence */
# 3127|                   return -ENOBUFS;
# 3128|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/libudev/libudev-device.c:216:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(128)’
systemd-258.1/src/libudev/libudev-device.c:348:30: enter_function: entry to ‘udev_device_new_from_environment’
systemd-258.1/src/libudev/libudev-device.c:353:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libudev/libudev-device.c:356:16: branch_false: ...to here
systemd-258.1/src/libudev/libudev-device.c:356:16: call_function: calling ‘udev_device_new’ from ‘udev_device_new_from_environment’
#  214|                   .n_ref = 1,
#  215|                   .udev = udev,
#  216|->                 .device = sd_device_ref(device),
#  217|                   .properties = TAKE_PTR(properties),
#  218|                   .all_tags = TAKE_PTR(all_tags),

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/libudev/libudev-util.h:10:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258.1/src/libudev/test-libudev.c:138:13: enter_function: entry to ‘test_device_subsys_name’
systemd-258.1/src/libudev/test-libudev.c:141:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libudev/test-libudev.c:141:9: branch_true: ...to here
systemd-258.1/src/libudev/test-libudev.c:139:59: call_function: calling ‘udev_device_unrefp’ from ‘test_device_subsys_name’
#    8|   /* Cleanup functions */
#    9|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
#   10|-> DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
#   11|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
#   12|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-button.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-button.c:67:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:68:9: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:70:13: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:71:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
systemd-258.1/src/login/logind-button.c:74:19: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:74:19: acquire_memory: allocated here
systemd-258.1/src/login/logind-button.c:75:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:78:13: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:78:13: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   76|                   return mfree(b);
#   77|   
#   78|->         if (hashmap_put(m->buttons, b->name, b) < 0) {
#   79|                   free(b->name);
#   80|                   return mfree(b);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-button.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
systemd-258.1/src/login/logind-button.c:67:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:68:9: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:70:13: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:70:13: acquire_memory: allocated here
systemd-258.1/src/login/logind-button.c:71:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
systemd-258.1/src/login/logind-button.c:74:19: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:75:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-button.c:78:13: branch_false: ...to here
systemd-258.1/src/login/logind-button.c:78:13: danger: ‘b’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   76|                   return mfree(b);
#   77|   
#   78|->         if (hashmap_put(m->buttons, b->name, b) < 0) {
#   79|                   free(b->name);
#   80|                   return mfree(b);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-device.c:27:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-device.c:16:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:17:9: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:17:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:19:13: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:20:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258.1/src/login/logind-device.c:23:20: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:23:20: acquire_memory: allocated here
systemd-258.1/src/login/logind-device.c:24:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:27:13: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:27:13: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   25|                   return mfree(d);
#   26|   
#   27|->         if (hashmap_put(m->devices, d->sysfs, d) < 0) {
#   28|                   free(d->sysfs);
#   29|                   return mfree(d);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-device.c:27:13: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258.1/src/login/logind-device.c:16:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:17:9: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:17:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:19:13: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:19:13: acquire_memory: allocated here
systemd-258.1/src/login/logind-device.c:20:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258.1/src/login/logind-device.c:23:20: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:24:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-device.c:27:13: branch_false: ...to here
systemd-258.1/src/login/logind-device.c:27:13: danger: ‘d’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   25|                   return mfree(d);
#   26|   
#   27|->         if (hashmap_put(m->devices, d->sysfs, d) < 0) {
#   28|                   free(d->sysfs);
#   29|                   return mfree(d);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-inhibit.c:50:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(id)’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-inhibit.c:50:31: danger: ‘strdup(id)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#   48|                   .manager = m,
#   49|                   .id = strdup(id),
#   50|->                 .state_file = path_join("/run/systemd/inhibit/", id),
#   51|                   .what = _INHIBIT_WHAT_INVALID,
#   52|                   .mode = _INHIBIT_MODE_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-inhibit.c:74:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(120)’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:58:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   72|                   return NULL;
#   73|   
#   74|->         free(i->who);
#   75|           free(i->why);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/login/logind-inhibit.c:74:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*i.who’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   72|                   return NULL;
#   73|   
#   74|->         free(i->who);
#   75|           free(i->why);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-inhibit.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   76|   
#   77|           sd_event_source_unref(i->event_source);
#   78|->         safe_close(i->fifo_fd);
#   79|   
#   80|           hashmap_remove(i->manager->inhibitors, i->id);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-inhibit.c:80:48: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   78|           safe_close(i->fifo_fd);
#   79|   
#   80|->         hashmap_remove(i->manager->inhibitors, i->id);
#   81|   
#   82|           /* Note that we don't remove neither the state file nor the fifo path here, since we want both to

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-inhibit.c:84:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258.1/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258.1/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   82|           /* Note that we don't remove neither the state file nor the fifo path here, since we want both to
#   83|            * survive daemon restarts */
#   84|->         free(i->fifo_path);
#   85|           free(i->state_file);
#   86|           free(i->id);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-seat.c:57:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(id)’
systemd-258.1/src/login/logind-seat.c:39:5: enter_function: entry to ‘seat_new’
systemd-258.1/src/login/logind-seat.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:47:14: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:47:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:47:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258.1/src/login/logind-seat.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:50:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:56:23: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:56:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-seat.c:57:31: danger: ‘strdup(id)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#   55|                   .manager = m,
#   56|                   .id = strdup(id),
#   57|->                 .state_file = path_join("/run/systemd/seats/", id),
#   58|           };
#   59|           if (!s->id || !s->state_file)

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-seat.c:74:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258.1/src/login/logind-seat.c:39:5: enter_function: entry to ‘seat_new’
systemd-258.1/src/login/logind-seat.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:47:14: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:47:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:47:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258.1/src/login/logind-seat.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:50:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:56:23: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:59:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:40:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   72|                   return NULL;
#   73|   
#   74|->         if (s->in_gc_queue)
#   75|                   LIST_REMOVE(gc_queue, s->manager->seat_gc_queue, s);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/login/logind-seat.c:74:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*s)[72]’
systemd-258.1/src/login/logind-seat.c:39:5: enter_function: entry to ‘seat_new’
systemd-258.1/src/login/logind-seat.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:47:14: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:47:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:47:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258.1/src/login/logind-seat.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:50:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:56:23: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:40:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   72|                   return NULL;
#   73|   
#   74|->         if (s->in_gc_queue)
#   75|                   LIST_REMOVE(gc_queue, s->manager->seat_gc_queue, s);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-seat.c:87:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-seat.c:39:5: enter_function: entry to ‘seat_new’
systemd-258.1/src/login/logind-seat.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:47:14: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:47:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:47:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258.1/src/login/logind-seat.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:50:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:56:23: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:56:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-seat.c:59:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:59:13: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:59:13: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:40:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   85|           hashmap_remove(s->manager->seats, s->id);
#   86|   
#   87|->         set_free(s->uevents);
#   88|           free(s->positions);
#   89|           free(s->state_file);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind-seat.c:88:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/login/logind-seat.c:39:5: enter_function: entry to ‘seat_new’
systemd-258.1/src/login/logind-seat.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:47:14: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:47:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:47:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258.1/src/login/logind-seat.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:50:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258.1/src/login/logind-seat.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:56:23: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:56:23: acquire_memory: allocated here
systemd-258.1/src/login/logind-seat.c:59:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:59:13: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:59:13: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-seat.c:40:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   86|   
#   87|           set_free(s->uevents);
#   88|->         free(s->positions);
#   89|           free(s->state_file);
#   90|           free(s->id);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/login/logind-user.c:111:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*u)[124]’
systemd-258.1/src/login/logind-user.c:42:5: enter_function: entry to ‘user_new’
systemd-258.1/src/login/logind-user.c:47:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-user.c:48:9: branch_false: ...to here
systemd-258.1/src/login/logind-user.c:48:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-user.c:49:9: branch_false: ...to here
systemd-258.1/src/login/logind-user.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-user.c:51:14: branch_false: ...to here
systemd-258.1/src/login/logind-user.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-user.c:54:14: branch_false: ...to here
systemd-258.1/src/login/logind-user.c:54:12: branch_true: following ‘true’ branch...
systemd-258.1/src/login/logind-user.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘user_new’
systemd-258.1/src/login/logind-user.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-user.c:63:32: branch_false: ...to here
systemd-258.1/src/login/logind-user.c:43:37: call_function: inlined call to ‘user_freep’ from ‘user_new’
#  109|                   return NULL;
#  110|   
#  111|->         if (u->in_gc_queue)
#  112|                   LIST_REMOVE(gc_queue, u->manager->user_gc_queue, u);
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/login/logind.c:118:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(760)’
systemd-258.1/src/login/logind.c:58:12: enter_function: entry to ‘manager_new’
systemd-258.1/src/login/logind.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind.c:64:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258.1/src/login/logind.c:65:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind.c:74:28: branch_false: ...to here
systemd-258.1/src/login/logind.c:59:43: call_function: inlined call to ‘manager_freep’ from ‘manager_new’
#  116|                   return NULL;
#  117|   
#  118|->         hashmap_free(m->devices);
#  119|           hashmap_free(m->seats);
#  120|           hashmap_free(m->sessions);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/login/logind.c:118:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*m.devices’
systemd-258.1/src/login/logind.c:58:12: enter_function: entry to ‘manager_new’
systemd-258.1/src/login/logind.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind.c:64:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258.1/src/login/logind.c:65:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind.c:74:28: branch_false: ...to here
systemd-258.1/src/login/logind.c:59:43: call_function: inlined call to ‘manager_freep’ from ‘manager_new’
#  116|                   return NULL;
#  117|   
#  118|->         hashmap_free(m->devices);
#  119|           hashmap_free(m->seats);
#  120|           hashmap_free(m->sessions);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/login/test-session-properties.c:115:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(arg_tty, 524546)’
systemd-258.1/src/login/test-session-properties.c:111:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/test-session-properties.c:114:14: branch_false: ...to here
systemd-258.1/src/login/test-session-properties.c:114:14: acquire_resource: opened here
systemd-258.1/src/login/test-session-properties.c:115:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/test-session-properties.c:117:9: branch_false: ...to here
systemd-258.1/src/login/test-session-properties.c:115:9: danger: ‘open(arg_tty, 524546)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  113|   
#  114|           fd = open(arg_tty, O_RDWR|O_CLOEXEC|O_NOCTTY);
#  115|->         assert_se(fd >= 0);
#  116|   
#  117|           assert_se(sd_bus_open_system(&bus) >= 0);

Error: COMPILER_WARNING:
systemd-258.1/src/login/user-runtime-dir.c:253:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘quotactl_fd’; did you mean ‘quotactl’?
#  251|   
#  252|                   struct dqblk req;
#  253|->                 r = RET_NERRNO(quotactl_fd(fd, QCMD_FIXED(Q_GETQUOTA, USRQUOTA), uid, &req));
#  254|                   if (r == -ESRCH)
#  255|                           zero(req);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/machine/machine-varlink.c:92: error[uninitvar]: Uninitialized variable: i
#   90|                   uint64_t b;
#   91|   
#   92|->                 if (!sd_json_variant_is_unsigned(i))
#   93|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an unsigned integer.", k, strna(name));
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/machine/machine.c:112:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(248)’
systemd-258.1/src/machine/machine.c:49:5: enter_function: entry to ‘machine_new’
systemd-258.1/src/machine/machine.c:52:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machine.c:53:9: branch_false: ...to here
systemd-258.1/src/machine/machine.c:53:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machine.c:59:13: call_function: inlined call to ‘malloc_multiply’ from ‘machine_new’
systemd-258.1/src/machine/machine.c:60:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machine.c:63:9: branch_false: ...to here
systemd-258.1/src/machine/machine.c:70:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
systemd-258.1/src/machine/machine.c:71:27: branch_true: ...to here
systemd-258.1/src/machine/machine.c:72:20: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/machine/machine.c:50:43: call_function: inlined call to ‘machine_freep’ from ‘machine_new’
#  110|                   return NULL;
#  111|   
#  112|->         while (m->operations)
#  113|                   operation_free(m->operations);
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/machine/machined-dbus.c:417:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/machine/machined-dbus.c:396:12: enter_function: entry to ‘method_create_machine_internal’
systemd-258.1/src/machine/machined-dbus.c:397:28: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:398:18: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:398:18: release_memory: ‘m’ is NULL
systemd-258.1/src/machine/machined-dbus.c:401:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:403:13: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:403:13: call_function: calling ‘method_create_or_register_machine’ from ‘method_create_machine_internal’
systemd-258.1/src/machine/machined-dbus.c:403:13: return_function: returning to ‘method_create_machine_internal’ from ‘method_create_or_register_machine’
systemd-258.1/src/machine/machined-dbus.c:404:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:406:12: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:406:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:409:13: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:410:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:413:13: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:413:13: release_memory: ‘m’ is NULL
systemd-258.1/src/machine/machined-dbus.c:414:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:417:29: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:417:9: danger: dereference of NULL ‘m’
#  415|                   goto fail;
#  416|   
#  417|->         m->create_message = sd_bus_message_ref(message);
#  418|           return 1;
#  419|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/machine/machined-dbus.c:455:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘m’
systemd-258.1/src/machine/machined-dbus.c:433:12: enter_function: entry to ‘method_register_machine_internal’
systemd-258.1/src/machine/machined-dbus.c:434:28: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:436:18: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:436:18: release_memory: ‘m’ is NULL
systemd-258.1/src/machine/machined-dbus.c:439:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:441:13: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:441:13: call_function: calling ‘method_create_or_register_machine’ from ‘method_register_machine_internal’
systemd-258.1/src/machine/machined-dbus.c:441:13: return_function: returning to ‘method_register_machine_internal’ from ‘method_create_or_register_machine’
systemd-258.1/src/machine/machined-dbus.c:442:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:444:12: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:444:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:447:61: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:447:61: release_memory: ‘m’ is NULL
systemd-258.1/src/machine/machined-dbus.c:448:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined-dbus.c:455:28: branch_false: ...to here
systemd-258.1/src/machine/machined-dbus.c:455:28: danger: dereference of NULL ‘m’
#  453|           }
#  454|   
#  455|->         if (!empty_or_root(m->subgroup)) {
#  456|                   /* If this is not a top-level cgroup, then we need the cgroup path to be able to watch when
#  457|                    * it empties */

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:86:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(128)’
systemd-258.1/src/machine/machined.c:41:12: enter_function: entry to ‘manager_new’
systemd-258.1/src/machine/machined.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258.1/src/machine/machined.c:48:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/machined.c:51:9: branch_false: ...to here
systemd-258.1/src/machine/machined.c:56:12: branch_true: following ‘true’ branch...
systemd-258.1/src/machine/machined.c:42:44: call_function: inlined call to ‘manager_unrefp’ from ‘manager_new’
#   84|                   return NULL;
#   85|   
#   86|->         while (m->operations)
#   87|                   operation_free(m->operations);
#   88|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:134: error[memleak]: Memory leak: rd
#  132|           unit = strdup(SPECIAL_ROOT_SLICE);
#  133|           if (!unit)
#  134|->                 return log_oom();
#  135|   
#  136|           r = pidref_set_pid(&pidref, 1);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:138: error[memleak]: Memory leak: rd
#  136|           r = pidref_set_pid(&pidref, 1);
#  137|           if (r < 0)
#  138|->                 return log_error_errno(r, "Failed to open reference to PID 1: %m");
#  139|   
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:138: error[memleak]: Memory leak: unit
#  136|           r = pidref_set_pid(&pidref, 1);
#  137|           if (r < 0)
#  138|->                 return log_error_errno(r, "Failed to open reference to PID 1: %m");
#  139|   
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:142: error[memleak]: Memory leak: rd
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);
#  141|           if (r < 0)
#  142|->                 return log_error_errno(r, "Failed to create machine: %m");
#  143|   
#  144|           r = machine_link(m, t);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:142: error[memleak]: Memory leak: unit
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);
#  141|           if (r < 0)
#  142|->                 return log_error_errno(r, "Failed to create machine: %m");
#  143|   
#  144|           r = machine_link(m, t);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:146: error[memleak]: Memory leak: rd
#  144|           r = machine_link(m, t);
#  145|           if (r < 0)
#  146|->                 return log_error_errno(r, "Failed to link machine to manager: %m");
#  147|   
#  148|           t->leader = TAKE_PIDREF(pidref);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:146: error[memleak]: Memory leak: unit
#  144|           r = machine_link(m, t);
#  145|           if (r < 0)
#  146|->                 return log_error_errno(r, "Failed to link machine to manager: %m");
#  147|   
#  148|           t->leader = TAKE_PIDREF(pidref);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:163: error[memleak]: Memory leak: rd
#  161|           m->host_machine = t;
#  162|   
#  163|->         return 0;
#  164|   }
#  165|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/machine/machined.c:163: error[memleak]: Memory leak: unit
#  161|           m->host_machine = t;
#  162|   
#  163|->         return 0;
#  164|   }
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/machine/operation.c:118:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258.1/src/machine/operation.c:99:5: enter_function: entry to ‘operation_new’
systemd-258.1/src/machine/operation.c:103:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/operation.c:104:9: branch_false: ...to here
systemd-258.1/src/machine/operation.c:104:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/operation.c:105:9: branch_false: ...to here
systemd-258.1/src/machine/operation.c:105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/operation.c:106:9: branch_false: ...to here
systemd-258.1/src/machine/operation.c:106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/operation.c:108:13: call_function: inlined call to ‘malloc_multiply’ from ‘operation_new’
systemd-258.1/src/machine/operation.c:109:12: branch_false: following ‘false’ branch...
systemd-258.1/src/machine/operation.c:112:9: branch_false: ...to here
systemd-258.1/src/machine/operation.c:118:13: danger: ‘malloc(96)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  116|           };
#  117|   
#  118|->         r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o);
#  119|           if (r < 0) {
#  120|                   free(o);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/measure/measure-tool.c:658:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(EVP_MD_get0_name(EVP_get_digestbyname(*__unique_prefix_i22)))’
systemd-258.1/src/measure/measure-tool.c:641:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/measure/measure-tool.c:645:9: branch_true: following ‘true’ branch...
systemd-258.1/src/measure/measure-tool.c:651:17: branch_false: following ‘false’ branch...
systemd-258.1/src/measure/measure-tool.c:653:21: branch_false: ...to here
systemd-258.1/src/measure/measure-tool.c:653:21: acquire_memory: allocated here
systemd-258.1/src/measure/measure-tool.c:654:20: branch_false: following ‘false’ branch...
systemd-258.1/src/measure/measure-tool.c:657:22: branch_false: ...to here
systemd-258.1/src/measure/measure-tool.c:658:20: branch_false: following ‘false’ branch...
systemd-258.1/src/measure/measure-tool.c:661:21: branch_false: ...to here
systemd-258.1/src/measure/measure-tool.c:662:20: branch_false: following ‘false’ branch...
systemd-258.1/src/measure/measure-tool.c:665:28: branch_false: ...to here
systemd-258.1/src/measure/measure-tool.c:658:21: danger: ‘strdup(EVP_MD_get0_name(EVP_get_digestbyname(*__unique_prefix_i22)))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  656|   
#  657|                   sz = EVP_MD_size(implementation);
#  658|->                 if (sz <= 0 || sz >= INT_MAX)
#  659|                           return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unexpected digest size: %i", sz);
#  660|   

Error: CPPCHECK_WARNING (CWE-416):
systemd-258.1/src/mount/mount-tool.c:1627: error[deallocuse]: Dereferencing 'arg_mount_type' after it is deallocated / released
# 1625|            */
# 1626|           if (arg_mount_type &&
# 1627|->             !streq(arg_mount_type, "auto") &&
# 1628|               arg_uid != UID_INVALID &&
# 1629|               !fstype_can_uid_gid(arg_mount_type))

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/mountfsd/mountfsd-manager.c:154:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258.1/src/mountfsd/mountfsd-manager.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:133:26: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:141:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:143:12: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:143:12: branch_true: following ‘true’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:144:22: branch_true: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:147:20: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:154:29: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:154:29: acquire_resource: opened here
systemd-258.1/src/mountfsd/mountfsd-manager.c:154:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  152|                           }
#  153|                   } else {
#  154|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  155|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  156|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/mountfsd/mountfsd-manager.c:266:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258.1/src/mountfsd/mountfsd-manager.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:241:9: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:241:9: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:243:13: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:244:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:246:12: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:246:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:248:12: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:248:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:256:32: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:257:20: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:260:24: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:266:20: danger: ‘*m.listen_fd’ leaks here
#  264|                                   return log_error_errno(errno, "Failed to bind socket: %m");
#  265|   
#  266|->                 if (listen(m->listen_fd, SOMAXCONN) < 0)
#  267|                           return log_error_errno(errno, "Failed to listen on socket: %m");
#  268|           }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/mountfsd/mountfsd-manager.c:272:63: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258.1/src/mountfsd/mountfsd-manager.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:241:9: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:241:9: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:243:13: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:244:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:246:12: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:246:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:248:12: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:248:12: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:256:32: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:257:20: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:260:24: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:266:20: branch_false: following ‘false’ branch...
systemd-258.1/src/mountfsd/mountfsd-manager.c:272:63: branch_false: ...to here
systemd-258.1/src/mountfsd/mountfsd-manager.c:272:63: danger: ‘*m.listen_fd’ leaks here
#  270|           /* Let's make sure every accept() call on this socket times out after 25s. This allows workers to be
#  271|            * GC'ed on idle */
#  272|->         if (setsockopt(m->listen_fd, SOL_SOCKET, SO_RCVTIMEO, TIMEVAL_STORE(LISTEN_TIMEOUT_USEC), sizeof(struct timeval)) < 0)
#  273|                   return log_error_errno(errno, "Failed to se SO_RCVTIMEO: %m");
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/network/generator/network-generator.c:103:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘address’
systemd-258.1/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:202:16: branch_true: following ‘true’ branch (when ‘address’ is non-NULL)...
systemd-258.1/src/network/generator/network-generator.c:203:17: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:203:17: call_function: calling ‘address_free’ from ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:203:17: return_function: returning to ‘network_free’ from ‘address_free’
systemd-258.1/src/network/generator/network-generator.c:202:16: branch_true: following ‘true’ branch (when ‘address’ is non-NULL)...
systemd-258.1/src/network/generator/network-generator.c:203:17: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:203:17: call_function: calling ‘address_free’ from ‘network_free’
#  101|                   return NULL;
#  102|   
#  103|->         if (address->network)
#  104|                   LIST_REMOVE(addresses, address->network->addresses, address);
#  105|   

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/network/generator/network-generator.c:147:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘route’
systemd-258.1/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:202:16: branch_false: following ‘false’ branch (when ‘address’ is NULL)...
<unknown>: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:205:16: branch_true: following ‘true’ branch (when ‘route’ is non-NULL)...
systemd-258.1/src/network/generator/network-generator.c:206:17: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:206:17: call_function: calling ‘route_free’ from ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:206:17: return_function: returning to ‘network_free’ from ‘route_free’
systemd-258.1/src/network/generator/network-generator.c:205:16: branch_true: following ‘true’ branch (when ‘route’ is non-NULL)...
systemd-258.1/src/network/generator/network-generator.c:206:17: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:206:17: call_function: calling ‘route_free’ from ‘network_free’
#  145|                   return NULL;
#  146|   
#  147|->         if (route->network)
#  148|                   LIST_REMOVE(routes, route->network->routes, route);
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/generator/network-generator.c:196:9: warning[-Wanalyzer-malloc-leak]: leak of ‘network’
systemd-258.1/src/network/generator/network-generator.c:1253:5: enter_function: entry to ‘parse_cmdline_item’
systemd-258.1/src/network/generator/network-generator.c:1254:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1256:9: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1258:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1258:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/generator/network-generator.c:1259:24: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:1259:24: call_function: calling ‘parse_cmdline_ip’ from ‘parse_cmdline_item’
#  194|           free(network->ifname);
#  195|           free(network->hostname);
#  196|->         strv_free(network->dns);
#  197|           strv_free(network->vlan);
#  198|           free(network->bridge);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/generator/network-generator.c:197:9: warning[-Wanalyzer-malloc-leak]: leak of ‘network’
systemd-258.1/src/network/generator/network-generator.c:1253:5: enter_function: entry to ‘parse_cmdline_item’
systemd-258.1/src/network/generator/network-generator.c:1254:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1256:9: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1258:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1258:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/generator/network-generator.c:1259:24: branch_true: ...to here
systemd-258.1/src/network/generator/network-generator.c:1259:24: call_function: calling ‘parse_cmdline_ip’ from ‘parse_cmdline_item’
#  195|           free(network->hostname);
#  196|           strv_free(network->dns);
#  197|->         strv_free(network->vlan);
#  198|           free(network->bridge);
#  199|           free(network->bond);

Error: GCC_ANALYZER_WARNING (CWE-835):
systemd-258.1/src/network/generator/network-generator.c:202:16: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258.1/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:202:16: danger: infinite loop here
systemd-258.1/src/network/generator/network-generator.c:202:16: branch_true: when ‘address’ is non-NULL: always following ‘true’ branch...
systemd-258.1/src/network/generator/network-generator.c:203:17: branch_true: ...to here
#  200|           free(network->ntp);
#  201|   
#  202|->         while ((address = network->addresses))
#  203|                   address_free(address);
#  204|   

Error: GCC_ANALYZER_WARNING (CWE-835):
systemd-258.1/src/network/generator/network-generator.c:205:16: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258.1/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258.1/src/network/generator/network-generator.c:205:16: danger: infinite loop here
systemd-258.1/src/network/generator/network-generator.c:205:16: branch_true: when ‘route’ is non-NULL: always following ‘true’ branch...
systemd-258.1/src/network/generator/network-generator.c:206:17: branch_true: ...to here
#  203|                   address_free(address);
#  204|   
#  205|->         while ((route = network->routes))
#  206|                   route_free(route);
#  207|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/generator/network-generator.c:362:9: warning[-Wanalyzer-malloc-leak]: leak of ‘link’
systemd-258.1/src/network/generator/network-generator.c:1159:12: enter_function: entry to ‘parse_cmdline_ifname’
systemd-258.1/src/network/generator/network-generator.c:1164:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1165:9: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1169:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1169:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1172:21: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1174:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1177:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1181:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1184:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1184:13: call_function: calling ‘link_new’ from ‘parse_cmdline_ifname’
#  360|           free(link->filename);
#  361|           free(link->ifname);
#  362|->         strv_free(link->policies);
#  363|           strv_free(link->alt_policies);
#  364|           return mfree(link);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/generator/network-generator.c:363:9: warning[-Wanalyzer-malloc-leak]: leak of ‘link’
systemd-258.1/src/network/generator/network-generator.c:1159:12: enter_function: entry to ‘parse_cmdline_ifname’
systemd-258.1/src/network/generator/network-generator.c:1164:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1165:9: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1169:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1169:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1172:21: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1174:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1177:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1181:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/generator/network-generator.c:1184:13: branch_false: ...to here
systemd-258.1/src/network/generator/network-generator.c:1184:13: call_function: calling ‘link_new’ from ‘parse_cmdline_ifname’
#  361|           free(link->ifname);
#  362|           strv_free(link->policies);
#  363|->         strv_free(link->alt_policies);
#  364|           return mfree(link);
#  365|   }

Error: COMPILER_WARNING:
systemd-258.1/src/network/netdev/l2tp-tunnel.c:143:78: error[-Wincompatible-pointer-types]: passing argument 3 of ‘sd_netlink_message_append_in_addr’ from incompatible pointer type
#  141|   
#  142|           if (t->family == AF_INET) {
#  143|->                 r = sd_netlink_message_append_in_addr(m, L2TP_ATTR_IP_SADDR, &local_address->in);
#  144|                   if (r < 0)
#  145|                           return r;

Error: COMPILER_WARNING:
systemd-258.1/src/network/netdev/l2tp-tunnel.c:147:78: error[-Wincompatible-pointer-types]: passing argument 3 of ‘sd_netlink_message_append_in_addr’ from incompatible pointer type
#  145|                           return r;
#  146|   
#  147|->                 r = sd_netlink_message_append_in_addr(m, L2TP_ATTR_IP_DADDR, &t->remote.in);
#  148|                   if (r < 0)
#  149|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/netdev/macsec.c:41:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
systemd-258.1/src/network/netdev/macsec.c:57:12: enter_function: entry to ‘macsec_receive_association_new_static’
systemd-258.1/src/network/netdev/macsec.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:63:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:64:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:64:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:65:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:67:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:68:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:71:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:72:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:77:13: call_function: inlined call to ‘malloc_multiply’ from ‘macsec_receive_association_new_static’
systemd-258.1/src/network/netdev/macsec.c:78:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:83:28: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:59:73: call_function: inlined call to ‘macsec_receive_association_freep’ from ‘macsec_receive_association_new_static’
#   39|                   return NULL;
#   40|   
#   41|->         if (c->macsec && c->section)
#   42|                   ordered_hashmap_remove(c->macsec->receive_associations_by_section, c->section);
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/netdev/macsec.c:180:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258.1/src/network/netdev/macsec.c:196:12: enter_function: entry to ‘macsec_transmit_association_new_static’
systemd-258.1/src/network/netdev/macsec.c:201:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:202:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:202:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:203:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:203:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:204:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:204:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:206:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:207:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:210:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:211:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:216:13: call_function: inlined call to ‘malloc_multiply’ from ‘macsec_transmit_association_new_static’
systemd-258.1/src/network/netdev/macsec.c:217:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:222:28: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:198:75: call_function: inlined call to ‘macsec_transmit_association_freep’ from ‘macsec_transmit_association_new_static’
#  178|                   return NULL;
#  179|   
#  180|->         if (a->macsec && a->section)
#  181|                   ordered_hashmap_remove(a->macsec->transmit_associations_by_section, a->section);
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/netdev/tuntap.c:50:89: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
systemd-258.1/src/network/netdev/tuntap.c:42:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:43:9: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:44:9: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:46:23: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:46:23: acquire_memory: allocated here
systemd-258.1/src/network/netdev/tuntap.c:47:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:50:89: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:50:89: danger: ‘strdup(name)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   48|                   return log_oom_debug();
#   49|   
#   50|->         r = hashmap_ensure_put(&m->tuntap_fds_by_name, &named_fd_hash_ops, tuntap_name, FD_TO_PTR(fd));
#   51|           if (r < 0)
#   52|                   return log_debug_errno(r, "Failed to store tuntap fd: %m");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:97:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:89:12: enter_function: entry to ‘netdev_push_tuntap_fd’
systemd-258.1/src/network/netdev/tuntap.c:93:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:95:57: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:95:18: call_function: calling ‘netdev_take_tuntap_fd’ from ‘netdev_push_tuntap_fd’
systemd-258.1/src/network/netdev/tuntap.c:95:18: return_function: returning to ‘netdev_push_tuntap_fd’ from ‘netdev_take_tuntap_fd’
systemd-258.1/src/network/netdev/tuntap.c:97:14: call_function: calling ‘TUNTAP’ from ‘netdev_push_tuntap_fd’
systemd-258.1/src/network/netdev/tuntap.c:97:14: return_function: returning to ‘netdev_push_tuntap_fd’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:97:14: danger: dereference of NULL ‘TUNTAP(netdev)’
#   95|           fd_old = netdev_take_tuntap_fd(netdev->manager, netdev->ifname);
#   96|   
#   97|->         if (!TUNTAP(netdev)->keep_fd)
#   98|                   return 0;
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:128:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:117:6: enter_function: entry to ‘manager_clear_unmanaged_tuntap_fds’
systemd-258.1/src/network/netdev/tuntap.c:121:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:123:9: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:123:9: branch_true: following ‘true’ branch...
systemd-258.1/src/network/netdev/tuntap.c:124:25: branch_true: ...to here
systemd-258.1/src/network/netdev/tuntap.c:128:22: call_function: calling ‘TUNTAP’ from ‘manager_clear_unmanaged_tuntap_fds’
systemd-258.1/src/network/netdev/tuntap.c:128:22: return_function: returning to ‘manager_clear_unmanaged_tuntap_fds’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:128:22: danger: dereference of NULL ‘TUNTAP(netdev)’
#  126|                   if (netdev_get(m, name, &netdev) < 0 ||
#  127|                       !IN_SET(netdev->kind, NETDEV_KIND_TAP, NETDEV_KIND_TUN) ||
#  128|->                     !TUNTAP(netdev)->keep_fd)
#  129|                           manager_close_and_notify_tuntap_fd(m, name);
#  130|           }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:150:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:133:12: enter_function: entry to ‘netdev_create_tuntap’
systemd-258.1/src/network/netdev/tuntap.c:136:21: call_function: calling ‘TUNTAP’ from ‘netdev_create_tuntap’
systemd-258.1/src/network/netdev/tuntap.c:136:21: return_function: returning to ‘netdev_create_tuntap’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:141:14: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:142:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:145:13: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:145:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:148:17: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:150:14: danger: dereference of NULL ‘TUNTAP(netdev)’
#  148|                   ifr.ifr_flags |= IFF_TUN;
#  149|   
#  150|->         if (!t->packet_info)
#  151|                   ifr.ifr_flags |= IFF_NO_PI;
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:207:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:204:13: enter_function: entry to ‘tuntap_done’
systemd-258.1/src/network/netdev/tuntap.c:205:21: call_function: calling ‘TUNTAP’ from ‘tuntap_done’
systemd-258.1/src/network/netdev/tuntap.c:205:21: return_function: returning to ‘tuntap_done’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:207:24: danger: dereference of NULL ‘TUNTAP(netdev)’
#  205|           TunTap *t = TUNTAP(netdev);
#  206|   
#  207|->         t->user_name = mfree(t->user_name);
#  208|           t->group_name = mfree(t->group_name);
#  209|   }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:214:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:211:13: enter_function: entry to ‘tuntap_init’
systemd-258.1/src/network/netdev/tuntap.c:212:21: call_function: calling ‘TUNTAP’ from ‘tuntap_init’
systemd-258.1/src/network/netdev/tuntap.c:212:21: return_function: returning to ‘tuntap_init’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:214:9: danger: dereference of NULL ‘TUNTAP(netdev)’
#  212|           TunTap *t = TUNTAP(netdev);
#  213|   
#  214|->         t->uid = UID_INVALID;
#  215|           t->gid = GID_INVALID;
#  216|   }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/netdev/tuntap.c:236:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/netdev/tuntap.c:218:12: enter_function: entry to ‘tuntap_verify’
systemd-258.1/src/network/netdev/tuntap.c:219:21: call_function: calling ‘TUNTAP’ from ‘tuntap_verify’
systemd-258.1/src/network/netdev/tuntap.c:219:21: return_function: returning to ‘tuntap_verify’ from ‘TUNTAP’
systemd-258.1/src/network/netdev/tuntap.c:222:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/tuntap.c:224:13: branch_false: ...to here
systemd-258.1/src/network/netdev/tuntap.c:236:13: danger: dereference of NULL ‘TUNTAP(netdev)’
#  234|                                      netdev_kind_to_string(netdev->kind), filename);
#  235|   
#  236|->         if (t->user_name) {
#  237|                   _cleanup_(user_record_unrefp) UserRecord *ur = NULL;
#  238|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/netdev/vlan.c:169:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
systemd-258.1/src/network/netdev/vlan.c:120:5: enter_function: entry to ‘config_parse_vlan_qos_maps’
systemd-258.1/src/network/netdev/vlan.c:132:19: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:135:9: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:135:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:136:9: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:136:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:137:9: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:137:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:139:13: call_function: inlined call to ‘isempty’ from ‘config_parse_vlan_qos_maps’
systemd-258.1/src/network/netdev/vlan.c:144:26: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:150:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:152:20: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:152:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:156:20: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:156:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:159:21: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:165:21: call_function: inlined call to ‘malloc_multiply’ from ‘config_parse_vlan_qos_maps’
systemd-258.1/src/network/netdev/vlan.c:166:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/vlan.c:169:17: branch_false: ...to here
systemd-258.1/src/network/netdev/vlan.c:169:17: danger: ‘malloc(8)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#  167|                           return log_oom();
#  168|   
#  169|->                 *m = (struct ifla_vlan_qos_mapping) {
#  170|                           .from = from,
#  171|                           .to = to,

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/network/netdev/wireguard.c:42:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘_p’
systemd-258.1/src/network/netdev/wireguard.c:864:5: enter_function: entry to ‘config_parse_wireguard_keepalive’
systemd-258.1/src/network/netdev/wireguard.c:876:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/wireguard.c:878:24: branch_false: ...to here
systemd-258.1/src/network/netdev/wireguard.c:878:24: call_function: calling ‘WIREGUARD’ from ‘config_parse_wireguard_keepalive’
systemd-258.1/src/network/netdev/wireguard.c:878:24: return_function: returning to ‘config_parse_wireguard_keepalive’ from ‘WIREGUARD’
systemd-258.1/src/network/netdev/wireguard.c:883:13: call_function: calling ‘wireguard_peer_new_static’ from ‘config_parse_wireguard_keepalive’
#   40|           assert(peer);
#   41|   
#   42|->         LIST_CLEAR(ipmasks, peer->ipmasks, free);
#   43|   }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/netdev/wireguard.c:49:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(312)’
systemd-258.1/src/network/netdev/wireguard.c:864:5: enter_function: entry to ‘config_parse_wireguard_keepalive’
systemd-258.1/src/network/netdev/wireguard.c:876:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/wireguard.c:878:24: branch_false: ...to here
systemd-258.1/src/network/netdev/wireguard.c:878:24: call_function: calling ‘WIREGUARD’ from ‘config_parse_wireguard_keepalive’
systemd-258.1/src/network/netdev/wireguard.c:878:24: return_function: returning to ‘config_parse_wireguard_keepalive’ from ‘WIREGUARD’
systemd-258.1/src/network/netdev/wireguard.c:883:13: call_function: calling ‘wireguard_peer_new_static’ from ‘config_parse_wireguard_keepalive’
#   47|                   return NULL;
#   48|   
#   49|->         if (peer->wireguard) {
#   50|                   LIST_REMOVE(peers, peer->wireguard->peers, peer);
#   51|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-description.c:80: error[uninitvar]: Uninitialized variable: i
#   78|                   size_t pos;
#   79|   
#   80|->                 name = sd_json_variant_string(sd_json_variant_by_key(i, "Name"));
#   81|                   index = sd_json_variant_integer(sd_json_variant_by_key(i, "Index"));
#   82|                   xsprintf(ifindex_str, "%" PRIi64, index);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-description.c:90: error[uninitvar]: Uninitialized variable: a
#   88|   
#   89|                           JSON_VARIANT_ARRAY_FOREACH(a, sd_json_variant_by_key(i, "AlternativeNames"))
#   90|->                                 if (strv_fnmatch_full(patterns, sd_json_variant_string(a), 0, &pos)) {
#   91|                                           match = true;
#   92|                                           break;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/networkctl-link-info.c:411:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘matched_patterns’
systemd-258.1/src/network/networkctl-link-info.c:367:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkctl-link-info.c:368:9: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:368:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkctl-link-info.c:370:13: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:371:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkctl-link-info.c:374:13: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:375:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkctl-link-info.c:378:13: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:379:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkctl-link-info.c:382:12: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:382:12: branch_false: following ‘false’ branch (when ‘patterns’ is NULL)...
systemd-258.1/src/network/networkctl-link-info.c:388:34: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:388:45: branch_false: following ‘false’ branch (when ‘i’ is NULL)...
<unknown>: branch_false: ...to here
systemd-258.1/src/network/networkctl-link-info.c:410:30: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkctl-link-info.c:411:37: branch_true: ...to here
systemd-258.1/src/network/networkctl-link-info.c:411:37: release_memory: ‘matched_patterns’ is NULL
systemd-258.1/src/network/networkctl-link-info.c:411:21: danger: dereference of NULL ‘matched_patterns + pos’
#  409|            * is OK for a glob to match nothing, but not for an exact argument. */
#  410|           for (size_t pos = 0; pos < strv_length(patterns); pos++) {
#  411|->                 if (matched_patterns[pos])
#  412|                           continue;
#  413|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-lldp.c:82: error[uninitvar]: Uninitialized variable: i
#   80|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#   81|   
#   82|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#   83|                   if (r < 0)
#   84|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-lldp.c:93: error[uninitvar]: Uninitialized variable: neighbor
#   91|                           LLDPNeighborInfo neighbor_info = {};
#   92|   
#   93|->                         r = sd_json_dispatch(neighbor, lldp_neighbor_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &neighbor_info);
#   94|                           if (r < 0)
#   95|                                   return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-lldp.c:200: error[uninitvar]: Uninitialized variable: i
#  198|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#  199|   
#  200|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#  201|                   if (r < 0)
#  202|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-lldp.c:271: error[uninitvar]: Uninitialized variable: i
#  269|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#  270|   
#  271|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#  272|                   if (r < 0)
#  273|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkctl-lldp.c:282: error[uninitvar]: Uninitialized variable: neighbor
#  280|                           LLDPNeighborInfo neighbor_info = {};
#  281|   
#  282|->                         r = sd_json_dispatch(neighbor, lldp_neighbor_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &neighbor_info);
#  283|                           if (r < 0)
#  284|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-address-generation.c:120:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258.1/src/network/networkd-address-generation.c:429:5: enter_function: entry to ‘config_parse_address_generation_type’
systemd-258.1/src/network/networkd-address-generation.c:445:24: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-generation.c:449:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-generation.c:449:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-generation.c:450:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-generation.c:450:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-generation.c:451:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-generation.c:451:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-generation.c:453:13: call_function: inlined call to ‘isempty’ from ‘config_parse_address_generation_type’
systemd-258.1/src/network/networkd-address-generation.c:458:21: branch_false: ...to here
systemd-258.1/src/network/networkd-address-generation.c:520:17: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-generation.c:544:13: branch_false: ...to here
systemd-258.1/src/network/networkd-address-generation.c:544:13: call_function: calling ‘ipv6_token_add’ from ‘config_parse_address_generation_type’
#  118|                   return r;
#  119|   
#  120|->         return set_ensure_consume(tokens, &ipv6_token_hash_ops, p);
#  121|   }
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-address-label.c:23:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258.1/src/network/networkd-address-label.c:47:12: enter_function: entry to ‘address_label_new_static’
systemd-258.1/src/network/networkd-address-label.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:60:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:60:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:61:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:61:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:62:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:64:37: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:67:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:70:17: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:71:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:76:17: call_function: inlined call to ‘malloc_multiply’ from ‘address_label_new_static’
systemd-258.1/src/network/networkd-address-label.c:77:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address-label.c:83:28: branch_false: ...to here
systemd-258.1/src/network/networkd-address-label.c:55:54: call_function: inlined call to ‘address_label_freep’ from ‘address_label_new_static’
#   21|                   return NULL;
#   22|   
#   23|->         if (label->network) {
#   24|                   assert(label->section);
#   25|                   hashmap_remove(label->network->address_labels_by_section, label->section);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-address.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258.1/src/network/networkd-address.c:1813:5: enter_function: entry to ‘manager_rtnl_process_address’
systemd-258.1/src/network/networkd-address.c:1816:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1817:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1817:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1818:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1818:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1820:13: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1820:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1828:18: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1830:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1833:21: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1833:21: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-address.c:1838:13: branch_true: ...to here
systemd-258.1/src/network/networkd-address.c:1840:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1843:20: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1843:19: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1848:15: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1850:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1858:44: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1859:13: call_function: calling ‘address_new’ from ‘manager_rtnl_process_address’
systemd-258.1/src/network/networkd-address.c:1859:13: return_function: returning to ‘manager_rtnl_process_address’ from ‘address_new’
systemd-258.1/src/network/networkd-address.c:1860:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1865:58: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1858:44: call_function: inlined call to ‘address_unrefp’ from ‘manager_rtnl_process_address’
#  273|           free(address->label);
#  274|           free(address->netlabel);
#  275|->         ipv6_token_unref(address->token);
#  276|           nft_set_context_clear(&address->nft_set_context);
#  277|           return mfree(address);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-address.c:276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258.1/src/network/networkd-address.c:1813:5: enter_function: entry to ‘manager_rtnl_process_address’
systemd-258.1/src/network/networkd-address.c:1816:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1817:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1817:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1818:9: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1818:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1820:13: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1820:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1828:18: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1830:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1833:21: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1833:21: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-address.c:1838:13: branch_true: ...to here
systemd-258.1/src/network/networkd-address.c:1840:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1843:20: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1843:19: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1848:15: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1850:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1858:44: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1859:13: call_function: calling ‘address_new’ from ‘manager_rtnl_process_address’
systemd-258.1/src/network/networkd-address.c:1859:13: return_function: returning to ‘manager_rtnl_process_address’ from ‘address_new’
systemd-258.1/src/network/networkd-address.c:1860:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-address.c:1865:58: branch_false: ...to here
systemd-258.1/src/network/networkd-address.c:1858:44: call_function: inlined call to ‘address_unrefp’ from ‘manager_rtnl_process_address’
#  274|           free(address->netlabel);
#  275|           ipv6_token_unref(address->token);
#  276|->         nft_set_context_clear(&address->nft_set_context);
#  277|           return mfree(address);
#  278|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-bridge-fdb.c:31:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258.1/src/network/networkd-bridge-fdb.c:49:12: enter_function: entry to ‘bridge_fdb_new_static’
systemd-258.1/src/network/networkd-bridge-fdb.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:60:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:60:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:61:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:61:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:62:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:64:13: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:65:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:69:15: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:70:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:75:13: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:75:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:79:15: call_function: inlined call to ‘malloc_multiply’ from ‘bridge_fdb_new_static’
systemd-258.1/src/network/networkd-bridge-fdb.c:80:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-fdb.c:86:28: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-fdb.c:56:48: call_function: inlined call to ‘bridge_fdb_freep’ from ‘bridge_fdb_new_static’
#   29|                   return NULL;
#   30|   
#   31|->         if (fdb->network) {
#   32|                   assert(fdb->section);
#   33|                   hashmap_remove(fdb->network->bridge_fdb_entries_by_section, fdb->section);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-bridge-mdb.c:24:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258.1/src/network/networkd-bridge-mdb.c:41:12: enter_function: entry to ‘bridge_mdb_new_static’
systemd-258.1/src/network/networkd-bridge-mdb.c:51:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:52:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:52:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:53:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:53:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:54:9: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:54:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:56:13: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:57:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:61:15: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:62:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:67:13: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:67:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:71:15: call_function: inlined call to ‘malloc_multiply’ from ‘bridge_mdb_new_static’
systemd-258.1/src/network/networkd-bridge-mdb.c:72:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-bridge-mdb.c:78:28: branch_false: ...to here
systemd-258.1/src/network/networkd-bridge-mdb.c:48:48: call_function: inlined call to ‘bridge_mdb_freep’ from ‘bridge_mdb_new_static’
#   22|                   return NULL;
#   23|   
#   24|->         if (mdb->network) {
#   25|                   assert(mdb->section);
#   26|                   hashmap_remove(mdb->network->bridge_mdb_entries_by_section, mdb->section);

Error: COMPILER_WARNING:
systemd-258.1/src/network/networkd-dhcp-common.h:68:76: error[error]: incompatible types when initializing type ‘unsigned int’ using type ‘struct in_addr’
#   66|   bool address_is_filtered(int family, const union in_addr_union *address, uint8_t prefixlen, Set *allow_list, Set *deny_list);
#   67|   static inline bool in4_address_is_filtered(const struct in_addr *address, Set *allow_list, Set *deny_list) {
#   68|->         return address_is_filtered(AF_INET, &(union in_addr_union) { .in = *address }, 32, allow_list, deny_list);
#   69|   }
#   70|   static inline bool in6_prefix_is_filtered(const struct in6_addr *prefix, uint8_t prefixlen, Set *allow_list, Set *deny_list) {

Error: COMPILER_WARNING:
systemd-258.1/src/network/networkd-dhcp-common.h:71:78: error[error]: incompatible types when initializing type ‘unsigned char’ using type ‘struct in6_addr’
#   69|   }
#   70|   static inline bool in6_prefix_is_filtered(const struct in6_addr *prefix, uint8_t prefixlen, Set *allow_list, Set *deny_list) {
#   71|->         return address_is_filtered(AF_INET6, &(union in_addr_union) { .in6 = *prefix }, prefixlen, allow_list, deny_list);
#   72|   }
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(24)’
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:842:12: enter_function: entry to ‘dhcp_pd_prefix_add’
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:849:13: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_pd_prefix_add’
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:850:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:856:32: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:861:9: call_function: inlined call to ‘_in6_addr_prefix_to_string’ from ‘dhcp_pd_prefix_add’
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:861:9: call_function: inlined call to ‘_in6_addr_prefix_to_string’ from ‘dhcp_pd_prefix_add’
systemd-258.1/src/network/networkd-dhcp-prefix-delegation.c:870:12: danger: ‘malloc(24)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  868|           /* Store PD prefix even if prefixlen > 64, not to make logged at warning level so frequently. */
#  869|           r = set_ensure_consume(&link->dhcp_pd_prefixes, &in_addr_prefix_hash_ops_free, p);
#  870|->         if (r < 0)
#  871|                   return log_link_error_errno(link, r, "Failed to store DHCP delegated prefix %s: %m",
#  872|                                               IN6_ADDR_PREFIX_TO_STRING(prefix, prefixlen));

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkd-ipv6ll.c:213: warning[uninitvar]: Uninitialized variable: &a
#  211|   
#  212|           return sysctl_write_ip_property(AF_INET6, link->ifname, "stable_secret",
#  213|->                                         IN6_ADDR_TO_STRING(&a), manager_get_sysctl_shadow(link->manager));
#  214|   }
#  215|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-ndisc.c:50:16: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, strlen(*__unique_prefix_i48) + 25)’
systemd-258.1/src/network/networkd-ndisc.c:1879:12: enter_function: entry to ‘ndisc_router_process_dnssl’
systemd-258.1/src/network/networkd-ndisc.c:1886:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1887:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1887:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1888:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1888:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1890:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1890:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1893:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1894:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1897:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1898:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1901:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1901:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1904:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1905:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1908:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1908:9: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1912:21: acquire_memory: allocated here
systemd-258.1/src/network/networkd-ndisc.c:1913:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1916:24: call_function: inlined call to ‘ndisc_dnssl_domain’ from ‘ndisc_router_process_dnssl’
systemd-258.1/src/network/networkd-ndisc.c:1918:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1925:33: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1926:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1932:30: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1932:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1939:17: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1916:24: call_function: inlined call to ‘ndisc_dnssl_domain’ from ‘ndisc_router_process_dnssl’
#   48|   
#   49|   char* ndisc_dnssl_domain(const NDiscDNSSL *n) {
#   50|->         return ((char*) n) + ALIGN(sizeof(NDiscDNSSL));
#   51|   }
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-ndisc.c:1851:20: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(40)’
systemd-258.1/src/network/networkd-ndisc.c:1784:12: enter_function: entry to ‘ndisc_router_process_rdnss’
systemd-258.1/src/network/networkd-ndisc.c:1791:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1792:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1792:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1793:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1793:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1795:14: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1795:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1798:13: branch_true: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1799:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1802:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1803:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1806:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1806:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1809:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1810:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1813:25: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1815:36: branch_true: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1819:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1826:33: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1827:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1833:30: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1833:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1840:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_rdnss’
systemd-258.1/src/network/networkd-ndisc.c:1841:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1844:17: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1851:20: danger: ‘malloc(40)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/26)
# 1849|   
# 1850|                   r = set_ensure_consume(&link->ndisc_rdnss, &ndisc_rdnss_hash_ops, TAKE_PTR(x));
# 1851|->                 if (r < 0)
# 1852|                           return log_oom();
# 1853|                   assert(r > 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-ndisc.c:2059:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258.1/src/network/networkd-ndisc.c:1984:12: enter_function: entry to ‘ndisc_router_process_captive_portal’
systemd-258.1/src/network/networkd-ndisc.c:1993:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1994:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1994:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1995:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1995:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:1997:14: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:1997:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2000:13: branch_true: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2001:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2007:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2008:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2011:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2011:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2014:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2015:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2018:26: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2019:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2022:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2022:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2032:53: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2035:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2042:22: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2055:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_captive_portal’
systemd-258.1/src/network/networkd-ndisc.c:2056:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2059:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2066:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2068:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2059:9: danger: ‘malloc(32)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24)
# 2057|                   return log_oom();
# 2058|   
# 2059|->         *new_entry = (NDiscCaptivePortal) {
# 2060|                   .router = router,
# 2061|                   .lifetime_usec = lifetime_usec,

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-ndisc.c:2166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258.1/src/network/networkd-ndisc.c:2102:12: enter_function: entry to ‘ndisc_router_process_pref64’
systemd-258.1/src/network/networkd-ndisc.c:2110:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2111:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2111:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2112:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2112:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2114:14: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2114:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2117:13: branch_true: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2118:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2121:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2122:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2125:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2126:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2129:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2130:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2133:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2136:12: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2146:40: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2150:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2157:22: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2157:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2162:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_pref64’
systemd-258.1/src/network/networkd-ndisc.c:2163:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2166:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2174:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2177:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2166:9: danger: ‘malloc(48)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
# 2164|                   return log_oom();
# 2165|   
# 2166|->         *new_entry = (NDiscPREF64) {
# 2167|                   .router = router,
# 2168|                   .lifetime_usec = lifetime_usec,

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-ndisc.c:2310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258.1/src/network/networkd-ndisc.c:2254:12: enter_function: entry to ‘ndisc_router_process_encrypted_dns’
systemd-258.1/src/network/networkd-ndisc.c:2257:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2258:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2259:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2259:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2261:25: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2266:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2269:13: branch_true: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2270:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2273:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2274:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2277:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2277:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2280:13: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2281:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2284:24: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2285:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2294:23: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2295:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2301:22: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2301:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2306:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_encrypted_dns’
systemd-258.1/src/network/networkd-ndisc.c:2307:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-ndisc.c:2310:9: branch_false: ...to here
systemd-258.1/src/network/networkd-ndisc.c:2315:13: call_function: calling ‘sd_dns_resolver_copy’ from ‘ndisc_router_process_encrypted_dns’
systemd-258.1/src/network/networkd-ndisc.c:2264:46: call_function: inlined call to ‘ndisc_dnr_freep’ from ‘ndisc_router_process_encrypted_dns’
# 2308|                   return log_oom();
# 2309|   
# 2310|->         *new_entry = (NDiscDNR) {
# 2311|                   .router = router,
# 2312|                   /* .resolver, */

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/networkd-network.c:113:94: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘netdev’
systemd-258.1/src/network/networkd-network.c:323:5: enter_function: entry to ‘network_load_one’
systemd-258.1/src/network/networkd-network.c:330:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:331:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:331:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:333:13: call_function: inlined call to ‘null_or_empty_path’ from ‘network_load_one’
systemd-258.1/src/network/networkd-network.c:334:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:336:12: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:336:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:341:17: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:342:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:345:13: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:346:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:349:13: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:350:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258.1/src/network/networkd-network.c:353:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:355:26: branch_true: following ‘true’ branch (when ‘_i_ != 2’)...
systemd-258.1/src/network/networkd-network.c:355:26: branch_true: ...to here
systemd-258.1/src/network/networkd-network.c:355:26: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:355:26: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:355:26: branch_true: following ‘true’ branch (when ‘_i_ != 2’)...
systemd-258.1/src/network/networkd-network.c:355:26: branch_true: ...to here
systemd-258.1/src/network/networkd-network.c:358:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:363:25: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:582:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:585:13: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:586:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:589:13: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:590:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:594:13: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:594:13: call_function: calling ‘network_verify’ from ‘network_load_one’
#  111|                           continue;
#  112|   
#  113|->                 r = hashmap_ensure_put(&network->stacked_netdevs, &stacked_netdevs_hash_ops, netdev->ifname, netdev);
#  114|                   if (r == -ENOMEM)
#  115|                           return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-network.c:950:64: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(rvalue)’
systemd-258.1/src/network/networkd-network.c:908:5: enter_function: entry to ‘config_parse_stacked_netdev’
systemd-258.1/src/network/networkd-network.c:922:23: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:925:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:926:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:926:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:927:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:927:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:928:9: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:940:14: call_function: inlined call to ‘ifname_valid’ from ‘config_parse_stacked_netdev’
systemd-258.1/src/network/networkd-network.c:940:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-network.c:946:16: branch_true: ...to here
systemd-258.1/src/network/networkd-network.c:946:16: acquire_memory: allocated here
systemd-258.1/src/network/networkd-network.c:947:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:950:64: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:951:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:953:12: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:953:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-network.c:956:17: branch_false: ...to here
systemd-258.1/src/network/networkd-network.c:950:64: danger: ‘strdup(rvalue)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  948|                   return log_oom();
#  949|   
#  950|->         r = hashmap_ensure_put(h, &string_hash_ops_free, name, INT_TO_PTR(kind));
#  951|           if (r == -ENOMEM)
#  952|                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-nexthop.c:41:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nh’
systemd-258.1/src/network/networkd-nexthop.c:1035:12: enter_function: entry to ‘nexthop_update_group’
systemd-258.1/src/network/networkd-nexthop.c:1041:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1042:9: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1042:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1044:13: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1045:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1048:9: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1048:9: call_function: calling ‘nexthop_detach_from_group_members’ from ‘nexthop_update_group’
#   39|                           continue;
#   40|   
#   41|->                 set_remove(nh->nexthops, UINT32_TO_PTR(nexthop->id));
#   42|           }
#   43|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-nexthop.c:64:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nh’
systemd-258.1/src/network/networkd-nexthop.c:1092:5: enter_function: entry to ‘manager_rtnl_process_nexthop’
systemd-258.1/src/network/networkd-nexthop.c:1095:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1096:9: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1096:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1097:9: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1097:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1099:13: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1099:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1107:18: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1109:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1112:21: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1112:21: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1117:18: branch_true: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1119:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1122:19: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1122:19: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1125:20: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1125:19: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1130:18: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1131:16: call_function: calling ‘nexthop_get_by_id’ from ‘manager_rtnl_process_nexthop’
systemd-258.1/src/network/networkd-nexthop.c:1131:16: return_function: returning to ‘manager_rtnl_process_nexthop’ from ‘nexthop_get_by_id’
systemd-258.1/src/network/networkd-nexthop.c:1133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1142:18: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1143:16: call_function: calling ‘nexthop_get_request_by_id’ from ‘manager_rtnl_process_nexthop’
systemd-258.1/src/network/networkd-nexthop.c:1143:16: return_function: returning to ‘manager_rtnl_process_nexthop’ from ‘nexthop_get_request_by_id’
systemd-258.1/src/network/networkd-nexthop.c:1147:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1163:13: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1163:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-nexthop.c:1170:57: branch_false: ...to here
systemd-258.1/src/network/networkd-nexthop.c:1182:16: call_function: calling ‘nexthop_update_group’ from ‘manager_rtnl_process_nexthop’
#   62|                   }
#   63|   
#   64|->                 r = set_ensure_put(&nh->nexthops, NULL, UINT32_TO_PTR(nexthop->id));
#   65|                   if (r < 0)
#   66|                           log_debug_errno(r, "Failed to save nexthop ID (%"PRIu32") to group member (%"PRIu32"), ignoring: %m",

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-queue.c:51:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258.1/src/network/networkd-queue.c:242:5: enter_function: entry to ‘manager_queue_request_full’
systemd-258.1/src/network/networkd-queue.c:254:16: call_function: calling ‘request_new’ from ‘manager_queue_request_full’
#   49|   }
#   50|   
#   51|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(Request, request, request_free);
#   52|   
#   53|   static void request_destroy_callback(Request *req) {

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-queue.c:409:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*req.manager’
systemd-258.1/src/network/networkd-queue.c:431:5: enter_function: entry to ‘remove_request_add’
systemd-258.1/src/network/networkd-queue.c:443:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:444:9: branch_false: ...to here
systemd-258.1/src/network/networkd-queue.c:444:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:445:9: branch_false: ...to here
systemd-258.1/src/network/networkd-queue.c:445:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:446:9: branch_false: ...to here
systemd-258.1/src/network/networkd-queue.c:446:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:451:13: branch_false: ...to here
systemd-258.1/src/network/networkd-queue.c:451:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:454:15: call_function: inlined call to ‘malloc_multiply’ from ‘remove_request_add’
systemd-258.1/src/network/networkd-queue.c:455:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-queue.c:459:25: branch_false: ...to here
systemd-258.1/src/network/networkd-queue.c:440:56: call_function: inlined call to ‘remove_request_freep’ from ‘remove_request_add’
#  407|                   return NULL;
#  408|   
#  409|->         if (req->manager)
#  410|                   ordered_set_remove(req->manager->remove_request_queue, req);
#  411|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-radv.c:47:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258.1/src/network/networkd-radv.c:65:12: enter_function: entry to ‘prefix_new_static’
systemd-258.1/src/network/networkd-radv.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:71:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:72:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:72:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:73:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:73:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:75:13: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:76:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:79:18: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:80:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:85:18: call_function: inlined call to ‘malloc_multiply’ from ‘prefix_new_static’
systemd-258.1/src/network/networkd-radv.c:86:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:91:28: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:67:41: call_function: inlined call to ‘prefix_freep’ from ‘prefix_new_static’
#   45|                   return NULL;
#   46|   
#   47|->         if (prefix->network) {
#   48|                   assert(prefix->section);
#   49|                   hashmap_remove(prefix->network->prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-radv.c:112:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258.1/src/network/networkd-radv.c:129:12: enter_function: entry to ‘route_prefix_new_static’
systemd-258.1/src/network/networkd-radv.c:134:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:135:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:135:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:136:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:136:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:137:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:137:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:139:13: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:140:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:143:18: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:144:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:149:18: call_function: inlined call to ‘malloc_multiply’ from ‘route_prefix_new_static’
systemd-258.1/src/network/networkd-radv.c:150:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:155:28: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:131:52: call_function: inlined call to ‘route_prefix_freep’ from ‘route_prefix_new_static’
#  110|                   return NULL;
#  111|   
#  112|->         if (prefix->network) {
#  113|                   assert(prefix->section);
#  114|                   hashmap_remove(prefix->network->route_prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-radv.c:173:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258.1/src/network/networkd-radv.c:190:12: enter_function: entry to ‘prefix64_new_static’
systemd-258.1/src/network/networkd-radv.c:195:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:196:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:196:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:197:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:197:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:198:9: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:200:13: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:201:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:204:18: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:205:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:210:18: call_function: inlined call to ‘malloc_multiply’ from ‘prefix64_new_static’
systemd-258.1/src/network/networkd-radv.c:211:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-radv.c:216:28: branch_false: ...to here
systemd-258.1/src/network/networkd-radv.c:192:45: call_function: inlined call to ‘prefix64_freep’ from ‘prefix64_new_static’
#  171|                   return NULL;
#  172|   
#  173|->         if (prefix->network) {
#  174|                   assert(prefix->section);
#  175|                   hashmap_remove(prefix->network->pref64_prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/networkd-routing-policy-rule.c:44:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rule’
systemd-258.1/src/network/networkd-routing-policy-rule.c:1580:5: enter_function: entry to ‘config_parse_routing_policy_rule’
systemd-258.1/src/network/networkd-routing-policy-rule.c:1615:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: ...to here
systemd-258.1/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-routing-policy-rule.c:1620:13: branch_false: ...to here
systemd-258.1/src/network/networkd-routing-policy-rule.c:1620:13: call_function: calling ‘routing_policy_rule_new_static’ from ‘config_parse_routing_policy_rule’
#   42|   
#   43|           if (rule->network) {
#   44|->                 assert(rule->section);
#   45|                   hashmap_remove(rule->network->rules_by_section, rule->section);
#   46|                   rule->network = NULL;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkd-serialize.c:238: error[uninitvar]: Uninitialized variable: i
#  236|           sd_json_variant *i;
#  237|           JSON_VARIANT_ARRAY_FOREACH(i, p.addresses)
#  238|->                 RET_GATHER(ret, link_deserialize_address(link, i));
#  239|   
#  240|           return ret;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/networkd-serialize.c:463: error[uninitvar]: Uninitialized variable: i
#  461|           sd_json_variant *i;
#  462|           JSON_VARIANT_ARRAY_FOREACH(i, sd_json_variant_by_key(v, "Interfaces"))
#  463|->                 RET_GATHER(ret, manager_deserialize_link(manager, i));
#  464|   
#  465|           JSON_VARIANT_ARRAY_FOREACH(i, sd_json_variant_by_key(v, "NextHops"))

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-setlink.c:771:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘req’
systemd-258.1/src/network/networkd-setlink.c:736:5: enter_function: entry to ‘link_request_to_set_addrgen_mode’
systemd-258.1/src/network/networkd-setlink.c:741:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:742:9: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:742:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:744:14: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:744:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/networkd-setlink.c:747:16: branch_true: ...to here
systemd-258.1/src/network/networkd-setlink.c:749:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:756:12: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:765:13: call_function: calling ‘link_request_set_link’ from ‘link_request_to_set_addrgen_mode’
systemd-258.1/src/network/networkd-setlink.c:765:13: return_function: returning to ‘link_request_to_set_addrgen_mode’ from ‘link_request_set_link’
systemd-258.1/src/network/networkd-setlink.c:768:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:771:25: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:771:12: danger: use of uninitialized value ‘req’ here
#  769|                   return r;
#  770|   
#  771|->         req->userdata = UINT8_TO_PTR(mode);
#  772|           return 0;
#  773|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/networkd-setlink.c:984:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘req’
systemd-258.1/src/network/networkd-setlink.c:969:5: enter_function: entry to ‘link_request_to_set_mtu’
systemd-258.1/src/network/networkd-setlink.c:973:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:975:12: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:975:12: branch_false: following ‘false’ branch (when ‘mtu != 0’)...
systemd-258.1/src/network/networkd-setlink.c:978:13: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:978:13: call_function: calling ‘link_request_set_link’ from ‘link_request_to_set_mtu’
systemd-258.1/src/network/networkd-setlink.c:978:13: return_function: returning to ‘link_request_to_set_mtu’ from ‘link_request_set_link’
systemd-258.1/src/network/networkd-setlink.c:981:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-setlink.c:984:25: branch_false: ...to here
systemd-258.1/src/network/networkd-setlink.c:984:12: danger: use of uninitialized value ‘req’ here
#  982|                   return r;
#  983|   
#  984|->         req->userdata = UINT32_TO_PTR(mtu);
#  985|           return 0;
#  986|   }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:22:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:15:12: enter_function: entry to ‘cake_init’
systemd-258.1/src/network/tc/cake.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:20:13: call_function: inlined call to ‘CAKE’ from ‘cake_init’
systemd-258.1/src/network/tc/cake.c:22:9: danger: dereference of NULL ‘<unknown>’
#   20|           c = CAKE(qdisc);
#   21|   
#   22|->         c->autorate = -1;
#   23|           c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID;
#   24|           c->raw = -1;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:175:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:141:5: enter_function: entry to ‘config_parse_cake_bandwidth’
systemd-258.1/src/network/tc/cake.c:155:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:156:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:159:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:160:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:160:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:161:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:161:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:163:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:164:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:166:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:166:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:172:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:174:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_bandwidth’
systemd-258.1/src/network/tc/cake.c:175:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:175:17: danger: dereference of NULL ‘<unknown>’
#  173|   
#  174|           if (isempty(rvalue)) {
#  175|->                 c->bandwidth = 0;
#  176|   
#  177|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:141:5: enter_function: entry to ‘config_parse_cake_bandwidth’
systemd-258.1/src/network/tc/cake.c:155:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:156:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:159:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:160:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:160:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:161:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:161:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:163:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:164:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:166:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:166:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:172:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:174:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_bandwidth’
systemd-258.1/src/network/tc/cake.c:181:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:182:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:189:24: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           }
#  188|   
#  189|->         c->bandwidth = k/8;
#  190|           TAKE_PTR(qdisc);
#  191|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:229:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:195:5: enter_function: entry to ‘config_parse_cake_overhead’
systemd-258.1/src/network/tc/cake.c:209:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:210:17: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:213:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:214:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:215:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:215:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:217:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:218:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:220:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:220:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:226:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:228:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_overhead’
systemd-258.1/src/network/tc/cake.c:229:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:229:17: danger: dereference of NULL ‘<unknown>’
#  227|   
#  228|           if (isempty(rvalue)) {
#  229|->                 c->overhead_set = false;
#  230|                   TAKE_PTR(qdisc);
#  231|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:248:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:195:5: enter_function: entry to ‘config_parse_cake_overhead’
systemd-258.1/src/network/tc/cake.c:209:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:210:17: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:213:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:214:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:215:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:215:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:217:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:218:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:220:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:220:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:226:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:228:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_overhead’
systemd-258.1/src/network/tc/cake.c:234:13: call_function: inlined call to ‘safe_atoi32’ from ‘config_parse_cake_overhead’
systemd-258.1/src/network/tc/cake.c:235:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:241:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:241:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:248:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:248:9: danger: dereference of NULL ‘<unknown>’
#  246|           }
#  247|   
#  248|->         c->overhead = v;
#  249|           c->overhead_set = true;
#  250|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:288:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:254:5: enter_function: entry to ‘config_parse_cake_mpu’
systemd-258.1/src/network/tc/cake.c:268:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:269:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:272:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:273:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:273:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:274:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:274:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:276:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:277:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:279:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:279:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:285:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:287:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_mpu’
systemd-258.1/src/network/tc/cake.c:288:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:288:17: danger: dereference of NULL ‘<unknown>’
#  286|   
#  287|           if (isempty(rvalue)) {
#  288|->                 c->mpu = 0;
#  289|                   TAKE_PTR(qdisc);
#  290|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:307:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:254:5: enter_function: entry to ‘config_parse_cake_mpu’
systemd-258.1/src/network/tc/cake.c:268:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:269:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:272:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:273:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:273:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:274:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:274:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:276:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:277:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:279:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:279:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:285:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:287:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_mpu’
systemd-258.1/src/network/tc/cake.c:293:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_cake_mpu’
systemd-258.1/src/network/tc/cake.c:294:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:300:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:300:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:307:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:307:9: danger: dereference of NULL ‘<unknown>’
#  305|           }
#  306|   
#  307|->         c->mpu = v;
#  308|           TAKE_PTR(qdisc);
#  309|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:411:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:377:5: enter_function: entry to ‘config_parse_cake_compensation_mode’
systemd-258.1/src/network/tc/cake.c:391:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:395:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:395:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:396:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:396:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:397:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:397:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:399:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:400:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:402:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:402:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:408:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:410:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_compensation_mode’
systemd-258.1/src/network/tc/cake.c:411:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:411:17: danger: dereference of NULL ‘<unknown>’
#  409|   
#  410|           if (isempty(rvalue)) {
#  411|->                 c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID;
#  412|                   TAKE_PTR(qdisc);
#  413|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:424:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:377:5: enter_function: entry to ‘config_parse_cake_compensation_mode’
systemd-258.1/src/network/tc/cake.c:391:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:395:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:395:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:396:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:396:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:397:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:397:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:399:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:400:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:402:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:402:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:408:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:410:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_compensation_mode’
systemd-258.1/src/network/tc/cake.c:416:16: call_function: inlined call to ‘cake_compensation_mode_from_string’ from ‘config_parse_cake_compensation_mode’
systemd-258.1/src/network/tc/cake.c:417:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:424:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:424:9: danger: dereference of NULL ‘<unknown>’
#  422|           }
#  423|   
#  424|->         c->compensation_mode = mode;
#  425|           TAKE_PTR(qdisc);
#  426|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:476:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:442:5: enter_function: entry to ‘config_parse_cake_flow_isolation_mode’
systemd-258.1/src/network/tc/cake.c:456:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:460:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:460:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:461:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:461:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:462:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:462:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:464:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:465:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:467:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:467:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:473:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:475:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258.1/src/network/tc/cake.c:476:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:476:17: danger: dereference of NULL ‘<unknown>’
#  474|   
#  475|           if (isempty(rvalue)) {
#  476|->                 c->flow_isolation_mode = _CAKE_FLOW_ISOLATION_MODE_INVALID;
#  477|                   TAKE_PTR(qdisc);
#  478|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:489:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:442:5: enter_function: entry to ‘config_parse_cake_flow_isolation_mode’
systemd-258.1/src/network/tc/cake.c:456:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:460:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:460:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:461:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:461:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:462:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:462:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:464:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:465:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:467:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:467:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:473:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:475:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258.1/src/network/tc/cake.c:481:16: call_function: inlined call to ‘cake_flow_isolation_mode_from_string’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258.1/src/network/tc/cake.c:482:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:489:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:489:9: danger: dereference of NULL ‘<unknown>’
#  487|           }
#  488|   
#  489|->         c->flow_isolation_mode = mode;
#  490|           TAKE_PTR(qdisc);
#  491|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:538:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:504:5: enter_function: entry to ‘config_parse_cake_priority_queueing_preset’
systemd-258.1/src/network/tc/cake.c:519:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:522:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:522:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:523:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:523:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:524:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:524:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:526:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:527:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:529:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:529:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:535:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:537:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258.1/src/network/tc/cake.c:538:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:538:17: danger: dereference of NULL ‘<unknown>’
#  536|   
#  537|           if (isempty(rvalue)) {
#  538|->                 c->preset = _CAKE_PRESET_INVALID;
#  539|                   TAKE_PTR(qdisc);
#  540|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:551:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:504:5: enter_function: entry to ‘config_parse_cake_priority_queueing_preset’
systemd-258.1/src/network/tc/cake.c:519:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:522:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:522:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:523:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:523:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:524:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:524:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:526:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:527:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:529:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:529:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:535:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:537:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258.1/src/network/tc/cake.c:543:18: call_function: inlined call to ‘cake_priority_queueing_preset_from_string’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258.1/src/network/tc/cake.c:544:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:551:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:551:9: danger: dereference of NULL ‘<unknown>’
#  549|           }
#  550|   
#  551|->         c->preset = preset;
#  552|           TAKE_PTR(qdisc);
#  553|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:590:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:556:5: enter_function: entry to ‘config_parse_cake_fwmark’
systemd-258.1/src/network/tc/cake.c:570:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:571:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:575:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:576:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:576:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:578:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:579:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:581:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:581:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:587:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:589:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_fwmark’
systemd-258.1/src/network/tc/cake.c:590:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:590:17: danger: dereference of NULL ‘<unknown>’
#  588|   
#  589|           if (isempty(rvalue)) {
#  590|->                 c->fwmark = 0;
#  591|                   TAKE_PTR(qdisc);
#  592|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:609:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:556:5: enter_function: entry to ‘config_parse_cake_fwmark’
systemd-258.1/src/network/tc/cake.c:570:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:571:18: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:575:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:576:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:576:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:578:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:579:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:581:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:581:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:587:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:589:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_fwmark’
systemd-258.1/src/network/tc/cake.c:595:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_cake_fwmark’
systemd-258.1/src/network/tc/cake.c:596:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:602:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:602:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:609:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:609:9: danger: dereference of NULL ‘<unknown>’
#  607|           }
#  608|   
#  609|->         c->fwmark = fwmark;
#  610|           TAKE_PTR(qdisc);
#  611|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:648:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:614:5: enter_function: entry to ‘config_parse_cake_rtt’
systemd-258.1/src/network/tc/cake.c:628:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:629:16: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:632:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:633:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:633:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:634:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:634:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:636:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:637:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:639:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:639:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:645:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:647:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_rtt’
systemd-258.1/src/network/tc/cake.c:648:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:648:17: danger: dereference of NULL ‘<unknown>’
#  646|   
#  647|           if (isempty(rvalue)) {
#  648|->                 c->rtt = 0;
#  649|                   TAKE_PTR(qdisc);
#  650|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:667:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:614:5: enter_function: entry to ‘config_parse_cake_rtt’
systemd-258.1/src/network/tc/cake.c:628:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:629:16: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:632:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:633:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:633:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:634:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:634:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:636:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:637:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:639:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:639:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:645:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:647:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_rtt’
systemd-258.1/src/network/tc/cake.c:653:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:654:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:660:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:660:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:667:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:667:9: danger: dereference of NULL ‘<unknown>’
#  665|           }
#  666|   
#  667|->         c->rtt = t;
#  668|           TAKE_PTR(qdisc);
#  669|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:714:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:680:5: enter_function: entry to ‘config_parse_cake_ack_filter’
systemd-258.1/src/network/tc/cake.c:695:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:698:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:698:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:699:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:699:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:700:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:700:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:702:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:703:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:705:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:705:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:711:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:713:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_ack_filter’
systemd-258.1/src/network/tc/cake.c:714:17: branch_true: ...to here
systemd-258.1/src/network/tc/cake.c:714:17: danger: dereference of NULL ‘<unknown>’
#  712|   
#  713|           if (isempty(rvalue)) {
#  714|->                 c->ack_filter = _CAKE_ACK_FILTER_INVALID;
#  715|                   TAKE_PTR(qdisc);
#  716|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/cake.c:727:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/cake.c:680:5: enter_function: entry to ‘config_parse_cake_ack_filter’
systemd-258.1/src/network/tc/cake.c:695:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:698:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:698:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:699:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:699:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:700:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:700:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:702:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:703:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:705:12: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:705:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:711:13: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:713:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_ack_filter’
systemd-258.1/src/network/tc/cake.c:719:22: call_function: inlined call to ‘cake_ack_filter_from_string’ from ‘config_parse_cake_ack_filter’
systemd-258.1/src/network/tc/cake.c:720:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/cake.c:727:9: branch_false: ...to here
systemd-258.1/src/network/tc/cake.c:727:9: danger: dereference of NULL ‘<unknown>’
#  725|           }
#  726|   
#  727|->         c->ack_filter = ack_filter;
#  728|           TAKE_PTR(qdisc);
#  729|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/codel.c:20:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/codel.c:13:12: enter_function: entry to ‘controlled_delay_init’
systemd-258.1/src/network/tc/codel.c:16:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:18:14: call_function: inlined call to ‘CODEL’ from ‘controlled_delay_init’
systemd-258.1/src/network/tc/codel.c:20:9: danger: dereference of NULL ‘<unknown>’
#   18|           cd = CODEL(qdisc);
#   19|   
#   20|->         cd->ce_threshold_usec = USEC_INFINITY;
#   21|           cd->ecn = -1;
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/codel.c:110:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/codel.c:77:5: enter_function: entry to ‘config_parse_controlled_delay_u32’
systemd-258.1/src/network/tc/codel.c:91:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:94:9: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:94:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:95:9: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:95:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:96:9: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:96:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:98:13: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:99:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:101:12: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:101:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/codel.c:107:14: branch_false: ...to here
systemd-258.1/src/network/tc/codel.c:109:13: call_function: inlined call to ‘isempty’ from ‘config_parse_controlled_delay_u32’
systemd-258.1/src/network/tc/codel.c:110:17: branch_true: ...to here
systemd-258.1/src/network/tc/codel.c:110:17: danger: dereference of NULL ‘<unknown>’
#  108|   
#  109|           if (isempty(rvalue)) {
#  110|->                 cd->packet_limit = 0;
#  111|   
#  112|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/drr.c:79:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/drr.c:45:5: enter_function: entry to ‘config_parse_drr_size’
systemd-258.1/src/network/tc/drr.c:59:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:60:18: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:64:9: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:64:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:65:9: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:67:13: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:68:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:70:12: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:70:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:76:15: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:78:13: call_function: inlined call to ‘isempty’ from ‘config_parse_drr_size’
systemd-258.1/src/network/tc/drr.c:79:17: branch_true: ...to here
systemd-258.1/src/network/tc/drr.c:79:17: danger: dereference of NULL ‘<unknown>’
#   77|   
#   78|           if (isempty(rvalue)) {
#   79|->                 drr->quantum = 0;
#   80|   
#   81|                   TAKE_PTR(tclass);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/drr.c:98:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/drr.c:45:5: enter_function: entry to ‘config_parse_drr_size’
systemd-258.1/src/network/tc/drr.c:59:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:60:18: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:64:9: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:64:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:65:9: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:67:13: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:68:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:70:12: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:70:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:76:15: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:78:13: call_function: inlined call to ‘isempty’ from ‘config_parse_drr_size’
systemd-258.1/src/network/tc/drr.c:85:13: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:86:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:92:13: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:92:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/drr.c:98:24: branch_false: ...to here
systemd-258.1/src/network/tc/drr.c:98:9: danger: dereference of NULL ‘<unknown>’
#   96|           }
#   97|   
#   98|->         drr->quantum = (uint32_t) u;
#   99|   
#  100|           TAKE_PTR(tclass);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/ets.c:178:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/ets.c:144:5: enter_function: entry to ‘config_parse_ets_quanta’
systemd-258.1/src/network/tc/ets.c:158:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:161:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:161:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:162:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:162:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:163:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:163:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:165:13: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:166:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:168:12: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:174:15: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:176:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_quanta’
systemd-258.1/src/network/tc/ets.c:177:17: branch_true: ...to here
systemd-258.1/src/network/tc/ets.c:178:17: danger: dereference of NULL ‘<unknown>’
#  176|           if (isempty(rvalue)) {
#  177|                   memzero(ets->quanta, sizeof(uint32_t) * TCQ_ETS_MAX_BANDS);
#  178|->                 ets->n_quanta = 0;
#  179|   
#  180|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/ets.c:212:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/ets.c:144:5: enter_function: entry to ‘config_parse_ets_quanta’
systemd-258.1/src/network/tc/ets.c:158:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:161:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:161:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:162:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:162:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:163:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:163:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:165:13: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:166:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:168:12: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:174:15: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:176:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_quanta’
systemd-258.1/src/network/tc/ets.c:184:26: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:189:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:191:20: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:191:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:196:20: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:196:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:199:21: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:212:21: danger: dereference of NULL ‘<unknown>’
#  210|                           continue;
#  211|                   }
#  212|->                 if (ets->n_quanta >= TCQ_ETS_MAX_BANDS) {
#  213|                           log_syntax(unit, LOG_WARNING, filename, line, 0,
#  214|                                      "Too many quanta in '%s=', ignoring assignment: %s",

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/ets.c:261:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/ets.c:227:5: enter_function: entry to ‘config_parse_ets_prio’
systemd-258.1/src/network/tc/ets.c:241:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:244:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:245:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:246:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:248:13: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:249:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:251:12: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:251:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:257:15: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:259:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_prio’
systemd-258.1/src/network/tc/ets.c:260:17: branch_true: ...to here
systemd-258.1/src/network/tc/ets.c:261:17: danger: dereference of NULL ‘<unknown>’
#  259|           if (isempty(rvalue)) {
#  260|                   memzero(ets->prio, sizeof(uint8_t) * (TC_PRIO_MAX + 1));
#  261|->                 ets->n_prio = 0;
#  262|   
#  263|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/ets.c:289:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/ets.c:227:5: enter_function: entry to ‘config_parse_ets_prio’
systemd-258.1/src/network/tc/ets.c:241:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:244:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:245:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:246:9: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:248:13: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:249:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:251:12: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:251:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:257:15: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:259:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_prio’
systemd-258.1/src/network/tc/ets.c:267:26: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:272:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:274:20: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:274:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:279:20: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:279:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:282:21: branch_false: ...to here
systemd-258.1/src/network/tc/ets.c:289:21: danger: dereference of NULL ‘<unknown>’
#  287|                           continue;
#  288|                   }
#  289|->                 if (ets->n_prio > TC_PRIO_MAX) {
#  290|                           log_syntax(unit, LOG_WARNING, filename, line, 0,
#  291|                                      "Too many priomap in '%s=', ignoring assignment: %s",

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/ets.c:311:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/ets.c:304:12: enter_function: entry to ‘enhanced_transmission_selection_verify’
systemd-258.1/src/network/tc/ets.c:307:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/ets.c:309:15: call_function: inlined call to ‘ETS’ from ‘enhanced_transmission_selection_verify’
systemd-258.1/src/network/tc/ets.c:311:13: danger: dereference of NULL ‘<unknown>’
#  309|           ets = ETS(qdisc);
#  310|   
#  311|->         if (ets->n_bands == 0)
#  312|                   ets->n_bands = ets->n_strict + ets->n_quanta;
#  313|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fifo.c:137:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fifo.c:103:5: enter_function: entry to ‘config_parse_bfifo_size’
systemd-258.1/src/network/tc/fifo.c:116:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:118:18: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:121:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:122:9: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:122:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:123:9: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:123:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:125:13: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:126:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:128:12: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:128:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:134:16: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:136:13: call_function: inlined call to ‘isempty’ from ‘config_parse_bfifo_size’
systemd-258.1/src/network/tc/fifo.c:137:17: branch_true: ...to here
systemd-258.1/src/network/tc/fifo.c:137:17: danger: dereference of NULL ‘<unknown>’
#  135|   
#  136|           if (isempty(rvalue)) {
#  137|->                 fifo->limit = 0;
#  138|   
#  139|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fifo.c:156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fifo.c:103:5: enter_function: entry to ‘config_parse_bfifo_size’
systemd-258.1/src/network/tc/fifo.c:116:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:118:18: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:121:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:122:9: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:122:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:123:9: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:123:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:125:13: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:126:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:128:12: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:128:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:134:16: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:136:13: call_function: inlined call to ‘isempty’ from ‘config_parse_bfifo_size’
systemd-258.1/src/network/tc/fifo.c:143:13: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:144:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:150:13: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:150:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fifo.c:156:23: branch_false: ...to here
systemd-258.1/src/network/tc/fifo.c:156:9: danger: dereference of NULL ‘<unknown>’
#  154|           }
#  155|   
#  156|->         fifo->limit = (uint32_t) u;
#  157|   
#  158|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq-codel.c:21:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq-codel.c:14:12: enter_function: entry to ‘fair_queueing_controlled_delay_init’
systemd-258.1/src/network/tc/fq-codel.c:17:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-codel.c:19:16: call_function: inlined call to ‘FQ_CODEL’ from ‘fair_queueing_controlled_delay_init’
systemd-258.1/src/network/tc/fq-codel.c:21:9: danger: dereference of NULL ‘<unknown>’
#   19|           fqcd = FQ_CODEL(qdisc);
#   20|   
#   21|->         fqcd->memory_limit = UINT32_MAX;
#   22|           fqcd->ce_threshold_usec = USEC_INFINITY;
#   23|           fqcd->ecn = -1;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq-pie.c:72:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq-pie.c:40:5: enter_function: entry to ‘config_parse_fq_pie_packet_limit’
systemd-258.1/src/network/tc/fq-pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:55:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:59:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:60:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:60:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:62:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:63:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:65:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:65:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:69:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:71:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fq_pie_packet_limit’
systemd-258.1/src/network/tc/fq-pie.c:72:17: branch_true: ...to here
systemd-258.1/src/network/tc/fq-pie.c:72:17: danger: dereference of NULL ‘<unknown>’
#   70|   
#   71|           if (isempty(rvalue)) {
#   72|->                 fq_pie->packet_limit = 0;
#   73|   
#   74|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq-pie.c:92:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq-pie.c:40:5: enter_function: entry to ‘config_parse_fq_pie_packet_limit’
systemd-258.1/src/network/tc/fq-pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:55:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:59:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:60:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:60:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:62:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:63:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:65:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:65:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:69:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:71:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fq_pie_packet_limit’
systemd-258.1/src/network/tc/fq-pie.c:78:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_fq_pie_packet_limit’
systemd-258.1/src/network/tc/fq-pie.c:79:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:85:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:85:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq-pie.c:92:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq-pie.c:92:9: danger: dereference of NULL ‘<unknown>’
#   90|           }
#   91|   
#   92|->         fq_pie->packet_limit = val;
#   93|           qdisc = NULL;
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:22:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:15:12: enter_function: entry to ‘fair_queueing_init’
systemd-258.1/src/network/tc/fq.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:20:14: call_function: inlined call to ‘FQ’ from ‘fair_queueing_init’
systemd-258.1/src/network/tc/fq.c:22:9: danger: dereference of NULL ‘<unknown>’
#   20|           fq = FQ(qdisc);
#   21|   
#   22|->         fq->pacing = -1;
#   23|           fq->ce_threshold_usec = USEC_INFINITY;
#   24|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:278:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:252:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:255:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:256:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:257:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:257:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:259:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:260:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:262:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:262:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:268:14: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:271:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:278:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:278:9: danger: dereference of NULL ‘<unknown>’
#  276|           }
#  277|   
#  278|->         fq->pacing = r;
#  279|           TAKE_PTR(qdisc);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:318:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:284:5: enter_function: entry to ‘config_parse_fair_queueing_usec’
systemd-258.1/src/network/tc/fq.c:298:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:299:16: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:302:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:303:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:303:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:304:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:304:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:306:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:307:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:309:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:309:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:315:14: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:317:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_usec’
systemd-258.1/src/network/tc/fq.c:318:17: branch_true: ...to here
systemd-258.1/src/network/tc/fq.c:318:17: danger: dereference of NULL ‘<unknown>’
#  316|   
#  317|           if (isempty(rvalue)) {
#  318|->                 fq->ce_threshold_usec = USEC_INFINITY;
#  319|   
#  320|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:338:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:284:5: enter_function: entry to ‘config_parse_fair_queueing_usec’
systemd-258.1/src/network/tc/fq.c:298:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:299:16: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:302:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:303:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:303:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:304:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:304:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:306:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:307:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:309:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:309:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:315:14: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:317:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_usec’
systemd-258.1/src/network/tc/fq.c:324:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:325:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:331:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:331:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:338:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:338:9: danger: dereference of NULL ‘<unknown>’
#  336|           }
#  337|   
#  338|->         fq->ce_threshold_usec = sec;
#  339|           qdisc = NULL;
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:378:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:344:5: enter_function: entry to ‘config_parse_fair_queueing_max_rate’
systemd-258.1/src/network/tc/fq.c:358:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:359:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:362:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:363:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:363:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:364:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:364:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:366:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:367:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:369:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:369:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:375:14: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:377:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_max_rate’
systemd-258.1/src/network/tc/fq.c:378:17: branch_true: ...to here
systemd-258.1/src/network/tc/fq.c:378:17: danger: dereference of NULL ‘<unknown>’
#  376|   
#  377|           if (isempty(rvalue)) {
#  378|->                 fq->max_rate = 0;
#  379|   
#  380|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/fq.c:398:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/fq.c:344:5: enter_function: entry to ‘config_parse_fair_queueing_max_rate’
systemd-258.1/src/network/tc/fq.c:358:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:359:18: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:362:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:363:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:363:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:364:9: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:364:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:366:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:367:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:369:12: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:369:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:375:14: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:377:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_max_rate’
systemd-258.1/src/network/tc/fq.c:384:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:385:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:391:13: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:391:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/fq.c:398:24: branch_false: ...to here
systemd-258.1/src/network/tc/fq.c:398:9: danger: dereference of NULL ‘<unknown>’
#  396|           }
#  397|   
#  398|->         fq->max_rate = sz / 8;
#  399|           qdisc = NULL;
#  400|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/gred.c:20:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/gred.c:13:12: enter_function: entry to ‘generic_random_early_detection_init’
systemd-258.1/src/network/tc/gred.c:16:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/gred.c:18:16: call_function: inlined call to ‘GRED’ from ‘generic_random_early_detection_init’
systemd-258.1/src/network/tc/gred.c:20:9: danger: dereference of NULL ‘<unknown>’
#   18|           gred = GRED(qdisc);
#   19|   
#   20|->         gred->grio = -1;
#   21|   
#   22|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/gred.c:59:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   57|           GenericRandomEarlyDetection *gred = GRED(qdisc);
#   58|   
#   59|->         if (gred->default_virtual_queue >= gred->virtual_queues)
#   60|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#   61|                                            "%s: DefaultVirtualQueue= must be less than VirtualQueues=. "

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/hhf.c:73:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/hhf.c:40:5: enter_function: entry to ‘config_parse_heavy_hitter_filter_packet_limit’
systemd-258.1/src/network/tc/hhf.c:54:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:57:9: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:57:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:58:9: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:58:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:59:9: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:61:13: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:62:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:64:12: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:64:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/hhf.c:70:15: branch_false: ...to here
systemd-258.1/src/network/tc/hhf.c:72:13: call_function: inlined call to ‘isempty’ from ‘config_parse_heavy_hitter_filter_packet_limit’
systemd-258.1/src/network/tc/hhf.c:73:17: branch_true: ...to here
systemd-258.1/src/network/tc/hhf.c:73:17: danger: dereference of NULL ‘<unknown>’
#   71|   
#   72|           if (isempty(rvalue)) {
#   73|->                 hhf->packet_limit = 0;
#   74|   
#   75|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:81:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:48:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_default_class’
systemd-258.1/src/network/tc/htb.c:62:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:65:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:66:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:66:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:67:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:67:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:69:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:70:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:72:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:72:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:78:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:80:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_default_class’
systemd-258.1/src/network/tc/htb.c:81:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:81:17: danger: dereference of NULL ‘<unknown>’
#   79|   
#   80|           if (isempty(rvalue)) {
#   81|->                 htb->default_class = 0;
#   82|   
#   83|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:133:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:100:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_u32’
systemd-258.1/src/network/tc/htb.c:114:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:117:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:117:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:118:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:118:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:119:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:119:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:121:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:122:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:124:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:124:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:130:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:132:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_u32’
systemd-258.1/src/network/tc/htb.c:133:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:133:17: danger: dereference of NULL ‘<unknown>’
#  131|   
#  132|           if (isempty(rvalue)) {
#  133|->                 htb->rate_to_quantum = HTB_DEFAULT_RATE_TO_QUANTUM;
#  134|   
#  135|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:159:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:152:12: enter_function: entry to ‘hierarchy_token_bucket_init’
systemd-258.1/src/network/tc/htb.c:155:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:157:15: call_function: inlined call to ‘HTB’ from ‘hierarchy_token_bucket_init’
systemd-258.1/src/network/tc/htb.c:159:9: danger: dereference of NULL ‘<unknown>’
#  157|           htb = HTB(qdisc);
#  158|   
#  159|->         htb->rate_to_quantum = HTB_DEFAULT_RATE_TO_QUANTUM;
#  160|   
#  161|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:276:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:242:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258.1/src/network/tc/htb.c:256:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:257:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:261:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:261:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:262:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:264:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:265:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:267:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:267:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:273:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:275:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258.1/src/network/tc/htb.c:276:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:276:17: danger: dereference of NULL ‘<unknown>’
#  274|   
#  275|           if (isempty(rvalue)) {
#  276|->                 htb->priority = 0;
#  277|                   tclass = NULL;
#  278|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:289:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:242:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258.1/src/network/tc/htb.c:256:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:257:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:261:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:261:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:262:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:262:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:264:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:265:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:267:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:267:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:273:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:275:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258.1/src/network/tc/htb.c:281:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258.1/src/network/tc/htb.c:282:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:289:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:289:9: danger: dereference of NULL ‘<unknown>’
#  287|           }
#  288|   
#  289|->         htb->priority = v;
#  290|           tclass = NULL;
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:330:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:329:20: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:330:25: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:330:25: danger: dereference of NULL ‘<unknown>’
#  328|           if (isempty(rvalue)) {
#  329|                   if (streq(lvalue, "QuantumBytes"))
#  330|->                         htb->quantum = 0;
#  331|                   else if (streq(lvalue, "MTUBytes"))
#  332|                           htb->mtu = HTB_DEFAULT_MTU;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:332:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:331:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:332:25: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:332:25: danger: dereference of NULL ‘<unknown>’
#  330|                           htb->quantum = 0;
#  331|                   else if (streq(lvalue, "MTUBytes"))
#  332|->                         htb->mtu = HTB_DEFAULT_MTU;
#  333|                   else if (streq(lvalue, "OverheadBytes"))
#  334|                           htb->overhead = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:334:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:333:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:334:25: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:334:25: danger: dereference of NULL ‘<unknown>’
#  332|                           htb->mtu = HTB_DEFAULT_MTU;
#  333|                   else if (streq(lvalue, "OverheadBytes"))
#  334|->                         htb->overhead = 0;
#  335|                   else if (streq(lvalue, "BufferBytes"))
#  336|                           htb->buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:336:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:333:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:335:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:335:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:336:25: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:336:25: danger: dereference of NULL ‘<unknown>’
#  334|                           htb->overhead = 0;
#  335|                   else if (streq(lvalue, "BufferBytes"))
#  336|->                         htb->buffer = 0;
#  337|                   else if (streq(lvalue, "CeilBufferBytes"))
#  338|                           htb->ceil_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:338:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:333:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:335:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:335:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:337:26: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:337:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:338:25: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:338:25: danger: dereference of NULL ‘<unknown>’
#  336|                           htb->buffer = 0;
#  337|                   else if (streq(lvalue, "CeilBufferBytes"))
#  338|->                         htb->ceil_buffer = 0;
#  339|                   else
#  340|                           assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:361:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:360:12: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:361:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:361:17: danger: dereference of NULL ‘<unknown>’
#  359|   
#  360|           if (streq(lvalue, "QuantumBytes"))
#  361|->                 htb->quantum = v;
#  362|           else if (streq(lvalue, "OverheadBytes"))
#  363|                   htb->overhead = v;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:363:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:362:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:363:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:363:17: danger: dereference of NULL ‘<unknown>’
#  361|                   htb->quantum = v;
#  362|           else if (streq(lvalue, "OverheadBytes"))
#  363|->                 htb->overhead = v;
#  364|           else if (streq(lvalue, "MTUBytes"))
#  365|                   htb->mtu = v;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:365:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:364:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:365:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:365:17: danger: dereference of NULL ‘<unknown>’
#  363|                   htb->overhead = v;
#  364|           else if (streq(lvalue, "MTUBytes"))
#  365|->                 htb->mtu = v;
#  366|           else if (streq(lvalue, "BufferBytes"))
#  367|                   htb->buffer = v;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:367:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:364:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:366:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:366:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:367:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:367:17: danger: dereference of NULL ‘<unknown>’
#  365|                   htb->mtu = v;
#  366|           else if (streq(lvalue, "BufferBytes"))
#  367|->                 htb->buffer = v;
#  368|           else if (streq(lvalue, "CeilBufferBytes"))
#  369|                   htb->ceil_buffer = v;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:369:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258.1/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:364:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:366:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:366:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/htb.c:368:18: branch_false: ...to here
systemd-258.1/src/network/tc/htb.c:368:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/htb.c:369:17: branch_true: ...to here
systemd-258.1/src/network/tc/htb.c:369:17: danger: dereference of NULL ‘<unknown>’
#  367|                   htb->buffer = v;
#  368|           else if (streq(lvalue, "CeilBufferBytes"))
#  369|->                 htb->ceil_buffer = v;
#  370|           else
#  371|                   assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:445:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:438:12: enter_function: entry to ‘hierarchy_token_bucket_class_init’
systemd-258.1/src/network/tc/htb.c:441:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:443:15: call_function: inlined call to ‘TCLASS_TO_HTB’ from ‘hierarchy_token_bucket_class_init’
systemd-258.1/src/network/tc/htb.c:445:9: danger: dereference of NULL ‘<unknown>’
#  443|           htb = TCLASS_TO_HTB(tclass);
#  444|   
#  445|->         htb->mtu = HTB_DEFAULT_MTU;
#  446|   
#  447|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/htb.c:459:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/htb.c:450:12: enter_function: entry to ‘hierarchy_token_bucket_class_verify’
systemd-258.1/src/network/tc/htb.c:455:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/htb.c:457:15: call_function: inlined call to ‘TCLASS_TO_HTB’ from ‘hierarchy_token_bucket_class_verify’
systemd-258.1/src/network/tc/htb.c:459:13: danger: dereference of NULL ‘<unknown>’
#  457|           htb = TCLASS_TO_HTB(tclass);
#  458|   
#  459|->         if (htb->rate == 0)
#  460|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#  461|                                            "%s: Rate= is mandatory. "

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:86:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:85:21: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:85:20: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:86:25: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:86:25: danger: dereference of NULL ‘<unknown>’
#   84|           if (isempty(rvalue)) {
#   85|                   if (STR_IN_SET(lvalue, "DelaySec", "NetworkEmulatorDelaySec"))
#   86|->                         ne->delay = USEC_INFINITY;
#   87|                   else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#   88|                           ne->jitter = USEC_INFINITY;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:88:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:85:21: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:85:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:87:26: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:87:25: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:88:25: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:88:25: danger: dereference of NULL ‘<unknown>’
#   86|                           ne->delay = USEC_INFINITY;
#   87|                   else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#   88|->                         ne->jitter = USEC_INFINITY;
#   89|   
#   90|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:103:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:94:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:102:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:102:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:103:17: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:103:17: danger: dereference of NULL ‘<unknown>’
#  101|   
#  102|           if (STR_IN_SET(lvalue, "DelaySec", "NetworkEmulatorDelaySec"))
#  103|->                 ne->delay = u;
#  104|           else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#  105|                   ne->jitter = u;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:105:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258.1/src/network/tc/netem.c:94:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:102:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:102:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:104:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:104:17: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:105:17: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:105:17: danger: dereference of NULL ‘<unknown>’
#  103|                   ne->delay = u;
#  104|           else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#  105|->                 ne->jitter = u;
#  106|   
#  107|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:147:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:146:21: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:146:20: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:147:25: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:147:25: danger: dereference of NULL ‘<unknown>’
#  145|           if (isempty(rvalue)) {
#  146|                   if (STR_IN_SET(lvalue, "LossRate", "NetworkEmulatorLossRate"))
#  147|->                         ne->loss = 0;
#  148|                   else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  149|                           ne->duplicate = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:149:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:146:21: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:146:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:148:26: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:148:25: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:149:25: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:149:25: danger: dereference of NULL ‘<unknown>’
#  147|                           ne->loss = 0;
#  148|                   else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  149|->                         ne->duplicate = 0;
#  150|   
#  151|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:164:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:155:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:156:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:163:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:163:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:164:17: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:164:17: danger: dereference of NULL ‘<unknown>’
#  162|   
#  163|           if (STR_IN_SET(lvalue, "LossRate", "NetworkEmulatorLossRate"))
#  164|->                 ne->loss = rate;
#  165|           else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  166|                   ne->duplicate = rate;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:166:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258.1/src/network/tc/netem.c:155:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:156:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:163:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:163:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:165:18: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:165:17: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/netem.c:166:17: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:166:17: danger: dereference of NULL ‘<unknown>’
#  164|                   ne->loss = rate;
#  165|           else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  166|->                 ne->duplicate = rate;
#  167|   
#  168|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/netem.c:205:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/netem.c:172:5: enter_function: entry to ‘config_parse_network_emulator_packet_limit’
systemd-258.1/src/network/tc/netem.c:185:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:189:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:189:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:190:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:190:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:191:9: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:191:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:193:13: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:194:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:196:12: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:196:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/netem.c:202:14: branch_false: ...to here
systemd-258.1/src/network/tc/netem.c:204:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_packet_limit’
systemd-258.1/src/network/tc/netem.c:205:17: branch_true: ...to here
systemd-258.1/src/network/tc/netem.c:205:17: danger: dereference of NULL ‘<unknown>’
#  203|   
#  204|           if (isempty(rvalue)) {
#  205|->                 ne->limit = 0;
#  206|   
#  207|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/pie.c:73:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/pie.c:40:5: enter_function: entry to ‘config_parse_pie_packet_limit’
systemd-258.1/src/network/tc/pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:57:9: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:57:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:58:9: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:59:9: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:61:13: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:62:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:64:12: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:64:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/pie.c:70:15: branch_false: ...to here
systemd-258.1/src/network/tc/pie.c:72:13: call_function: inlined call to ‘isempty’ from ‘config_parse_pie_packet_limit’
systemd-258.1/src/network/tc/pie.c:73:17: branch_true: ...to here
systemd-258.1/src/network/tc/pie.c:73:17: danger: dereference of NULL ‘<unknown>’
#   71|   
#   72|           if (isempty(rvalue)) {
#   73|->                 pie->packet_limit = 0;
#   74|   
#   75|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/tc/qdisc.c:139:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, max(*qdisc_vtable[kind_14(D)].object_size, 1))’
systemd-258.1/src/network/tc/qdisc.c:118:12: branch_false: following ‘false’ branch (when ‘kind != -22’)...
systemd-258.1/src/network/tc/qdisc.c:129:17: branch_false: ...to here
systemd-258.1/src/network/tc/qdisc.c:129:17: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qdisc.c:130:25: branch_false: ...to here
systemd-258.1/src/network/tc/qdisc.c:130:25: acquire_memory: allocated here
systemd-258.1/src/network/tc/qdisc.c:131:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qdisc.c:134:17: branch_false: ...to here
systemd-258.1/src/network/tc/qdisc.c:138:20: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/qdisc.c:139:29: branch_true: ...to here
systemd-258.1/src/network/tc/qdisc.c:139:29: danger: ‘calloc(1, max(*qdisc_vtable[kind_14(D)].object_size, 1))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  137|   
#  138|                   if (QDISC_VTABLE(qdisc)->init) {
#  139|->                         r = QDISC_VTABLE(qdisc)->init(qdisc);
#  140|                           if (r < 0)
#  141|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/qfq.c:89:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/qfq.c:55:5: enter_function: entry to ‘config_parse_quick_fair_queueing_weight’
systemd-258.1/src/network/tc/qfq.c:69:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:70:18: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:73:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:74:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:75:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:75:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:77:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:78:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:80:12: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:80:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:86:15: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:88:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258.1/src/network/tc/qfq.c:89:17: branch_true: ...to here
systemd-258.1/src/network/tc/qfq.c:89:17: danger: dereference of NULL ‘<unknown>’
#   87|   
#   88|           if (isempty(rvalue)) {
#   89|->                 qfq->weight = 0;
#   90|                   TAKE_PTR(tclass);
#   91|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/qfq.c:109:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/qfq.c:55:5: enter_function: entry to ‘config_parse_quick_fair_queueing_weight’
systemd-258.1/src/network/tc/qfq.c:69:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:70:18: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:73:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:74:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:75:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:75:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:77:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:78:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:80:12: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:80:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:86:15: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:88:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258.1/src/network/tc/qfq.c:94:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258.1/src/network/tc/qfq.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:102:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:102:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:109:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:109:9: danger: dereference of NULL ‘<unknown>’
#  107|           }
#  108|   
#  109|->         qfq->weight = v;
#  110|           TAKE_PTR(tclass);
#  111|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/qfq.c:149:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/qfq.c:115:5: enter_function: entry to ‘config_parse_quick_fair_queueing_max_packet’
systemd-258.1/src/network/tc/qfq.c:129:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:130:18: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:133:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:134:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:134:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:135:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:135:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:137:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:138:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:140:12: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:140:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:146:15: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:148:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_max_packet’
systemd-258.1/src/network/tc/qfq.c:149:17: branch_true: ...to here
systemd-258.1/src/network/tc/qfq.c:149:17: danger: dereference of NULL ‘<unknown>’
#  147|   
#  148|           if (isempty(rvalue)) {
#  149|->                 qfq->max_packet = 0;
#  150|                   TAKE_PTR(tclass);
#  151|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/qfq.c:169:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/qfq.c:115:5: enter_function: entry to ‘config_parse_quick_fair_queueing_max_packet’
systemd-258.1/src/network/tc/qfq.c:129:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:130:18: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:133:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:134:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:134:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:135:9: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:135:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:137:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:138:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:140:12: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:140:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:146:15: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:148:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_max_packet’
systemd-258.1/src/network/tc/qfq.c:154:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:155:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:162:13: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:162:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/qfq.c:169:27: branch_false: ...to here
systemd-258.1/src/network/tc/qfq.c:169:9: danger: dereference of NULL ‘<unknown>’
#  167|           }
#  168|   
#  169|->         qfq->max_packet = (uint32_t) v;
#  170|           TAKE_PTR(tclass);
#  171|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/sfb.c:83:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/sfb.c:50:5: enter_function: entry to ‘config_parse_stochastic_fair_blue_u32’
systemd-258.1/src/network/tc/sfb.c:64:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:67:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:67:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:68:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:69:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:69:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:71:13: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:72:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:74:12: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:74:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfb.c:80:15: branch_false: ...to here
systemd-258.1/src/network/tc/sfb.c:82:13: call_function: inlined call to ‘isempty’ from ‘config_parse_stochastic_fair_blue_u32’
systemd-258.1/src/network/tc/sfb.c:83:17: branch_true: ...to here
systemd-258.1/src/network/tc/sfb.c:83:17: danger: dereference of NULL ‘<unknown>’
#   81|   
#   82|           if (isempty(rvalue)) {
#   83|->                 sfb->packet_limit = 0;
#   84|   
#   85|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/sfq.c:66:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/sfq.c:33:5: enter_function: entry to ‘config_parse_stochastic_fairness_queueing_perturb_period’
systemd-258.1/src/network/tc/sfq.c:47:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:50:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:50:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:51:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:51:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:52:9: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:52:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:54:13: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:55:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:57:12: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:57:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/sfq.c:63:15: branch_false: ...to here
systemd-258.1/src/network/tc/sfq.c:65:13: call_function: inlined call to ‘isempty’ from ‘config_parse_stochastic_fairness_queueing_perturb_period’
systemd-258.1/src/network/tc/sfq.c:66:17: branch_true: ...to here
systemd-258.1/src/network/tc/sfq.c:66:17: danger: dereference of NULL ‘<unknown>’
#   64|   
#   65|           if (isempty(rvalue)) {
#   66|->                 sfq->perturb_period = 0;
#   67|   
#   68|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:146:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:145:20: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tbf.c:146:25: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:146:25: danger: dereference of NULL ‘<unknown>’
#  144|           if (isempty(rvalue)) {
#  145|                   if (STR_IN_SET(lvalue, "BurstBytes", "Burst"))
#  146|->                         tbf->burst = 0;
#  147|                   else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  148|                           tbf->limit = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:148:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:147:25: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tbf.c:148:25: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:148:25: danger: dereference of NULL ‘<unknown>’
#  146|                           tbf->burst = 0;
#  147|                   else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  148|->                         tbf->limit = 0;
#  149|                   else if (streq(lvalue, "MTUBytes"))
#  150|                           tbf->mtu = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:150:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:147:25: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:149:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:149:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/tbf.c:150:25: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:150:25: danger: dereference of NULL ‘<unknown>’
#  148|                           tbf->limit = 0;
#  149|                   else if (streq(lvalue, "MTUBytes"))
#  150|->                         tbf->mtu = 0;
#  151|                   else if (streq(lvalue, "MPUBytes"))
#  152|                           tbf->mpu = 0;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:152:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:147:25: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:149:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:149:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/tbf.c:151:26: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:151:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/tbf.c:152:25: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:152:25: danger: dereference of NULL ‘<unknown>’
#  150|                           tbf->mtu = 0;
#  151|                   else if (streq(lvalue, "MPUBytes"))
#  152|->                         tbf->mpu = 0;
#  153|                   else
#  154|                           assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:169:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:168:12: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tbf.c:169:17: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:169:17: danger: dereference of NULL ‘<unknown>’
#  167|   
#  168|           if (STR_IN_SET(lvalue, "BurstBytes", "Burst"))
#  169|->                 tbf->burst = k;
#  170|           else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  171|                   tbf->limit = k;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:171:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:170:17: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tbf.c:171:17: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:171:17: danger: dereference of NULL ‘<unknown>’
#  169|                   tbf->burst = k;
#  170|           else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  171|->                 tbf->limit = k;
#  172|           else if (streq(lvalue, "MPUBytes"))
#  173|                   tbf->mpu = k;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:173:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:172:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:172:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/tbf.c:173:17: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:173:17: danger: dereference of NULL ‘<unknown>’
#  171|                   tbf->limit = k;
#  172|           else if (streq(lvalue, "MPUBytes"))
#  173|->                 tbf->mpu = k;
#  174|           else if (streq(lvalue, "MTUBytes"))
#  175|                   tbf->mtu = k;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:175:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258.1/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:172:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:172:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/network/tc/tbf.c:174:18: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:174:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/network/tc/tbf.c:175:17: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:175:17: danger: dereference of NULL ‘<unknown>’
#  173|                   tbf->mpu = k;
#  174|           else if (streq(lvalue, "MTUBytes"))
#  175|->                 tbf->mtu = k;
#  176|           else
#  177|                   assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:279:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:245:5: enter_function: entry to ‘config_parse_token_bucket_filter_latency’
systemd-258.1/src/network/tc/tbf.c:258:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:260:16: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:263:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:264:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:265:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:265:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:267:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:268:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:270:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:270:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:276:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:278:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_latency’
systemd-258.1/src/network/tc/tbf.c:279:17: branch_true: ...to here
systemd-258.1/src/network/tc/tbf.c:279:17: danger: dereference of NULL ‘<unknown>’
#  277|   
#  278|           if (isempty(rvalue)) {
#  279|->                 tbf->latency = 0;
#  280|   
#  281|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:293:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tbf.c:245:5: enter_function: entry to ‘config_parse_token_bucket_filter_latency’
systemd-258.1/src/network/tc/tbf.c:258:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:260:16: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:263:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:264:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:264:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:265:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:265:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:267:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:268:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:270:12: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:270:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:276:15: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:278:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_latency’
systemd-258.1/src/network/tc/tbf.c:285:13: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:286:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tbf.c:293:9: branch_false: ...to here
systemd-258.1/src/network/tc/tbf.c:293:9: danger: dereference of NULL ‘<unknown>’
#  291|           }
#  292|   
#  293|->         tbf->latency = u;
#  294|   
#  295|           qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tbf.c:303:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  301|           TokenBucketFilter *tbf = TBF(qdisc);
#  302|   
#  303|->         if (tbf->limit > 0 && tbf->latency > 0)
#  304|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#  305|                                            "%s: Specifying both LimitBytes= and LatencySec= is not allowed. "

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/tc/tclass.c:101:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, max(*tclass_vtable[kind_14(D)].object_size, 1))’
systemd-258.1/src/network/tc/tclass.c:80:12: branch_false: following ‘false’ branch (when ‘kind != -22’)...
systemd-258.1/src/network/tc/tclass.c:91:17: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:91:17: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:92:26: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:92:26: acquire_memory: allocated here
systemd-258.1/src/network/tc/tclass.c:93:20: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:96:17: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:100:20: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tclass.c:101:29: branch_true: ...to here
systemd-258.1/src/network/tc/tclass.c:101:29: danger: ‘calloc(1, max(*tclass_vtable[kind_14(D)].object_size, 1))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   99|   
#  100|                   if (TCLASS_VTABLE(tclass)->init) {
#  101|->                         r = TCLASS_VTABLE(tclass)->init(tclass);
#  102|                           if (r < 0)
#  103|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tclass.c:419:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tclass.c:401:12: enter_function: entry to ‘tclass_configure’
systemd-258.1/src/network/tc/tclass.c:405:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:406:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:406:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:407:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:407:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:408:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:408:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:409:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:409:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:410:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:410:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:412:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:412:9: call_function: calling ‘log_tclass_debug’ from ‘tclass_configure’
systemd-258.1/src/network/tc/tclass.c:412:9: return_function: returning to ‘tclass_configure’ from ‘log_tclass_debug’
systemd-258.1/src/network/tc/tclass.c:416:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:419:59: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:419:59: danger: dereference of NULL ‘<unknown>’
#  417|                   return r;
#  418|   
#  419|->         r = sd_netlink_message_append_string(m, TCA_KIND, TCLASS_VTABLE(tclass)->tca_kind);
#  420|           if (r < 0)
#  421|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tclass.c:423:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tclass.c:401:12: enter_function: entry to ‘tclass_configure’
systemd-258.1/src/network/tc/tclass.c:405:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:406:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:406:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:407:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:407:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:408:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:408:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:409:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:409:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:410:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:410:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:412:9: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:412:9: call_function: calling ‘log_tclass_debug’ from ‘tclass_configure’
systemd-258.1/src/network/tc/tclass.c:412:9: return_function: returning to ‘tclass_configure’ from ‘log_tclass_debug’
systemd-258.1/src/network/tc/tclass.c:416:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:419:59: branch_true: following ‘true’ branch...
systemd-258.1/src/network/tc/tclass.c:419:59: branch_true: ...to here
systemd-258.1/src/network/tc/tclass.c:420:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:423:13: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:423:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:423:13: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:423:13: danger: dereference of NULL ‘<unknown>’
#  421|                   return r;
#  422|   
#  423|->         if (TCLASS_VTABLE(tclass)->fill_message) {
#  424|                   r = TCLASS_VTABLE(tclass)->fill_message(link, tclass, m);
#  425|                   if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/tclass.c:634:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/tclass.c:629:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:631:13: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:634:13: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/tclass.c:634:13: branch_false: ...to here
systemd-258.1/src/network/tc/tclass.c:634:13: danger: dereference of NULL ‘<unknown>’
#  632|                   return -EINVAL;
#  633|   
#  634|->         if (TCLASS_VTABLE(tclass)->verify) {
#  635|                   r = TCLASS_VTABLE(tclass)->verify(tclass);
#  636|                   if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/teql.c:18:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/teql.c:12:12: enter_function: entry to ‘trivial_link_equalizer_verify’
systemd-258.1/src/network/tc/teql.c:16:21: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:16:16: call_function: inlined call to ‘TEQL’ from ‘trivial_link_equalizer_verify’
systemd-258.1/src/network/tc/teql.c:18:13: danger: dereference of NULL ‘<unknown>’
#   16|           teql = TEQL(ASSERT_PTR(qdisc));
#   17|   
#   18|->         if (asprintf(&tca_kind, "teql%u", teql->id) < 0)
#   19|                   return log_oom();
#   20|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/teql.c:78:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/teql.c:44:5: enter_function: entry to ‘config_parse_trivial_link_equalizer_id’
systemd-258.1/src/network/tc/teql.c:58:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:59:18: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:63:9: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:64:9: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:64:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:66:13: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:67:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:69:12: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:69:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:75:16: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:77:13: call_function: inlined call to ‘isempty’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258.1/src/network/tc/teql.c:78:17: branch_true: ...to here
systemd-258.1/src/network/tc/teql.c:78:17: danger: dereference of NULL ‘<unknown>’
#   76|   
#   77|           if (isempty(rvalue)) {
#   78|->                 teql->id = 0;
#   79|   
#   80|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/network/tc/teql.c:96:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/network/tc/teql.c:44:5: enter_function: entry to ‘config_parse_trivial_link_equalizer_id’
systemd-258.1/src/network/tc/teql.c:58:28: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:59:18: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:63:9: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:64:9: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:64:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:66:13: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:67:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:69:12: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:69:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:75:16: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:77:13: call_function: inlined call to ‘isempty’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258.1/src/network/tc/teql.c:84:13: call_function: inlined call to ‘safe_atou’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258.1/src/network/tc/teql.c:85:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/tc/teql.c:91:13: branch_false: ...to here
systemd-258.1/src/network/tc/teql.c:96:9: danger: dereference of NULL ‘<unknown>’
#   94|                              lvalue, rvalue);
#   95|   
#   96|->         teql->id = id;
#   97|   
#   98|           TAKE_PTR(qdisc);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/wait-online/dns-configuration.c:74: error[uninitvar]: Uninitialized variable: v
#   72|                   _cleanup_(dns_server_freep) DNSServer *s = NULL;
#   73|   
#   74|->                 r = dispatch_dns_server(name, v, flags, &s);
#   75|                   if (r < 0)
#   76|                           return json_log(v, flags, r, "JSON array element is not a valid DNSServer.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/network/wait-online/dns-configuration.c:138: error[uninitvar]: Uninitialized variable: v
#  136|                   _cleanup_(search_domain_freep) SearchDomain *d = NULL;
#  137|   
#  138|->                 r = dispatch_search_domain(name, v, flags, &d);
#  139|                   if (r < 0)
#  140|                           return json_log(v, flags, r, "JSON array element is not a valid SearchDomain.");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/wait-online/dns-configuration.c:156:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258.1/src/network/wait-online/dns-configuration.c:172:12: enter_function: entry to ‘dispatch_dns_configuration’
systemd-258.1/src/network/wait-online/dns-configuration.c:183:34: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/dns-configuration.c:187:13: branch_false: ...to here
systemd-258.1/src/network/wait-online/dns-configuration.c:187:13: acquire_memory: allocated here
systemd-258.1/src/network/wait-online/dns-configuration.c:188:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/dns-configuration.c:191:13: branch_false: ...to here
systemd-258.1/src/network/wait-online/dns-configuration.c:184:62: call_function: inlined call to ‘dns_configuration_freep’ from ‘dispatch_dns_configuration’
#  154|                   return NULL;
#  155|   
#  156|->         dns_server_free(c->current_dns_server);
#  157|           set_free(c->dns_servers);
#  158|           set_free(c->search_domains);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/wait-online/dns-configuration.h:39:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258.1/src/network/wait-online/wait-online-manager.c:344:12: enter_function: entry to ‘on_dns_configuration_event’
systemd-258.1/src/network/wait-online/wait-online-manager.c:351:22: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-manager.c:355:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-manager.c:355:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-manager.c:357:12: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-manager.c:357:12: branch_false: following ‘false’ branch (when ‘error_id’ is NULL)...
systemd-258.1/src/network/wait-online/wait-online-manager.c:368:26: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-manager.c:369:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-manager.c:375:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-manager.c:377:9: branch_true: following ‘true’ branch...
systemd-258.1/src/network/wait-online/wait-online-manager.c:378:70: call_function: calling ‘dns_configuration_freep’ from ‘on_dns_configuration_event’
#   37|   
#   38|   DNSConfiguration* dns_configuration_free(DNSConfiguration *c);
#   39|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DNSConfiguration*, dns_configuration_free);
#   40|   
#   41|   int dns_configuration_from_json(sd_json_variant *variant, DNSConfiguration **ret);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/network/wait-online/wait-online-link.c:21:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*l.manager’
systemd-258.1/src/network/wait-online/wait-online-link.c:44:12: enter_function: entry to ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:50:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:50:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:51:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:51:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:53:13: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:54:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:66:89: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:66:38: call_function: inlined call to ‘hashmap_remove’ from ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:45:37: call_function: inlined call to ‘link_freep’ from ‘link_new’
#   19|                   return NULL;
#   20|   
#   21|->         if (l->manager) {
#   22|                   hashmap_remove(l->manager->links_by_index, INT_TO_PTR(l->ifindex));
#   23|                   hashmap_remove(l->manager->links_by_name, l->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/network/wait-online/wait-online-link.c:66:89: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(ifname)’
systemd-258.1/src/network/wait-online/wait-online-link.c:44:12: enter_function: entry to ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:50:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:50:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:51:9: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:51:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:53:13: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:53:13: acquire_memory: allocated here
systemd-258.1/src/network/wait-online/wait-online-link.c:54:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/wait-online/wait-online-link.c:66:89: branch_false: ...to here
systemd-258.1/src/network/wait-online/wait-online-link.c:66:38: call_function: inlined call to ‘hashmap_remove’ from ‘link_new’
systemd-258.1/src/network/wait-online/wait-online-link.c:66:89: danger: ‘strdup(ifname)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#   64|                   .ifindex = ifindex,
#   65|                   .required_operstate = LINK_OPERSTATE_RANGE_DEFAULT,
#   66|->                 .dns_configuration = hashmap_remove(m->dns_configuration_by_link_index, INT_TO_PTR(ifindex)),
#   67|           };
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘p’
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: following ‘true’ branch...
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: release_memory: freed here
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: ...to here
systemd-258.1/src/nspawn/nspawn-expose-ports.c:76:9: danger: use after ‘free’ of ‘p’; freed at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   74|   
#   75|   void expose_port_free_all(ExposePort *p) {
#   76|->         LIST_CLEAR(ports, p, free);
#   77|   }
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nspawn/nspawn-mount.c:274:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258.1/src/nspawn/nspawn-mount.c:233:5: enter_function: entry to ‘bind_mount_parse’
systemd-258.1/src/nspawn/nspawn-mount.c:238:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:239:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:241:13: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:242:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:244:12: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:244:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:246:12: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:246:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:251:12: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:257:13: call_function: calling ‘source_path_parse_nullable’ from ‘bind_mount_parse’
systemd-258.1/src/nspawn/nspawn-mount.c:257:13: return_function: returning to ‘bind_mount_parse’ from ‘source_path_parse_nullable’
systemd-258.1/src/nspawn/nspawn-mount.c:258:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-mount.c:261:14: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-mount.c:274:1: danger: ‘p’ leaks here; was allocated at [(35)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/34)
#  272|   
#  273|           return 0;
#  274|-> }
#  275|   
#  276|   int tmpfs_mount_parse(CustomMount **l, size_t *n, const char *s) {

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:150: error[uninitvar]: Uninitialized variable: e
#  148|                   const char *n;
#  149|   
#  150|->                 if (!sd_json_variant_is_string(e))
#  151|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL),
#  152|                                           "Environment array contains non-string.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:254: error[uninitvar]: Uninitialized variable: e
#  252|                   };
#  253|   
#  254|->                 r = oci_dispatch(e, table, flags, &data);
#  255|                   if (r < 0)
#  256|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:287: error[uninitvar]: Uninitialized variable: e
#  285|                   int cap;
#  286|   
#  287|->                 if (!sd_json_variant_is_string(e))
#  288|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
#  289|                                           "Entry in capabilities array is not a string.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:358: error[uninitvar]: Uninitialized variable: e
#  356|                   gid_t gid;
#  357|   
#  358|->                 if (!sd_json_variant_is_unsigned(e))
#  359|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
#  360|                                           "Supplementary GID entry is not a UID.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:520: error[uninitvar]: Uninitialized variable: e
#  518|                   CustomMount *m;
#  519|   
#  520|->                 r = oci_dispatch(e, table, flags, &data);
#  521|                   if (r < 0)
#  522|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:620: error[uninitvar]: Uninitialized variable: e
#  618|                   };
#  619|   
#  620|->                 r = oci_dispatch(e, table, flags, &data);
#  621|                   if (r < 0)
#  622|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:832: error[uninitvar]: Uninitialized variable: e
#  830|                   };
#  831|   
#  832|->                 r = oci_dispatch(e, table, flags, node);
#  833|                   if (r < 0)
#  834|                           goto fail_element;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:977: error[uninitvar]: Uninitialized variable: e
#  975|                   };
#  976|   
#  977|->                 r = oci_dispatch(e, table, flags, &data);
#  978|                   if (r < 0)
#  979|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1360: error[uninitvar]: Uninitialized variable: e
# 1358|                   _cleanup_free_ char *path = NULL;
# 1359|   
# 1360|->                 r = oci_dispatch(e, table, flags, &data);
# 1361|                   if (r < 0)
# 1362|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1418: error[uninitvar]: Uninitialized variable: e
# 1416|                   _cleanup_free_ char *path = NULL;
# 1417|   
# 1418|->                 r = oci_dispatch(e, table, flags, &data);
# 1419|                   if (r < 0)
# 1420|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1556: error[uninitvar]: Uninitialized variable: w
# 1554|                   const char *m;
# 1555|   
# 1556|->                 if (!sd_json_variant_is_string(w))
# 1557|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1558|                                           "sysctl parameter is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1562: error[uninitvar]: Uninitialized variable: k
# 1560|                   assert_se(m = sd_json_variant_string(w));
# 1561|   
# 1562|->                 if (!sysctl_key_valid(k))
# 1563|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1564|                                           "sysctl key invalid, refusing: %s", k);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1686: error[uninitvar]: Uninitialized variable: e
# 1684|                   uint32_t a;
# 1685|   
# 1686|->                 if (!sd_json_variant_is_string(e))
# 1687|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL),
# 1688|                                           "Architecture entry is not a string.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1769: error[uninitvar]: Uninitialized variable: e
# 1767|                   };
# 1768|   
# 1769|->                 r = oci_dispatch(e, table, flags, p);
# 1770|                   if (r < 0)
# 1771|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1803: error[uninitvar]: Uninitialized variable: e
# 1801|                   };
# 1802|   
# 1803|->                 r = oci_dispatch(e, table, flags, &rule);
# 1804|                   if (r < 0)
# 1805|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1893: error[uninitvar]: Uninitialized variable: e
# 1891|                   const char *p;
# 1892|   
# 1893|->                 if (!sd_json_variant_is_string(e))
# 1894|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1895|                                           "Path is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:1933: error[uninitvar]: Uninitialized variable: e
# 1931|                   const char *p;
# 1932|   
# 1933|->                 if (!sd_json_variant_is_string(e))
# 1934|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1935|                                           "Path is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:2040: error[uninitvar]: Uninitialized variable: e
# 2038|                   };
# 2039|   
# 2040|->                 r = oci_dispatch(e, table, flags, new_item);
# 2041|                   if (r < 0) {
# 2042|                           free(new_item->path);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:2072: error[uninitvar]: Uninitialized variable: k
# 2070|           JSON_VARIANT_OBJECT_FOREACH(k, w, v) {
# 2071|   
# 2072|->                 if (isempty(k))
# 2073|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 2074|                                           "Annotation with empty key, refusing.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-oci.c:2076: error[uninitvar]: Uninitialized variable: w
# 2074|                                           "Annotation with empty key, refusing.");
# 2075|   
# 2076|->                 if (!sd_json_variant_is_string(w))
# 2077|                           return json_log(w, flags, SYNTHETIC_ERRNO(EINVAL),
# 2078|                                           "Annotation has non-string value, refusing.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nspawn/nspawn-seccomp.c:183: warning[uninitvar]: Uninitialized variable: arch
#  181|           }
#  182|   
#  183|->         SECCOMP_FOREACH_LOCAL_ARCH(arch) {
#  184|                   _cleanup_(seccomp_releasep) scmp_filter_ctx seccomp = NULL;
#  185|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258.1/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:30:13: danger: ‘pipe_fds[0]’ leaks here
#   28|                   return log_error_errno(errno, "Failed to allocate pipe: %m");
#   29|   
#   30|->         r = safe_fork_full("(getent)",
#   31|                              (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
#   32|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
systemd-258.1/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:30:13: danger: ‘pipe_fds[1]’ leaks here
#   28|                   return log_error_errno(errno, "Failed to allocate pipe: %m");
#   29|   
#   30|->         r = safe_fork_full("(getent)",
#   31|                              (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
#   32|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nspawn/nspawn-setuid.c:35:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258.1/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:34:12: branch_true: following ‘true’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:35:17: branch_true: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:35:17: danger: ‘pipe_fds[0]’ leaks here
#   33|                              &pid);
#   34|           if (r < 0) {
#   35|->                 safe_close_pair(pipe_fds);
#   36|                   return r;
#   37|           }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nspawn/nspawn-setuid.c:44:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258.1/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:34:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:38:12: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:38:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nspawn/nspawn-setuid.c:44:23: branch_false: ...to here
systemd-258.1/src/nspawn/nspawn-setuid.c:44:23: danger: ‘pipe_fds[0]’ leaks here
#   42|           }
#   43|   
#   44|->         pipe_fds[1] = safe_close(pipe_fds[1]);
#   45|   
#   46|           *rpid = pid;

Error: COMPILER_WARNING:
systemd-258.1/src/nspawn/nspawn.c:9:10: error[fatal error]: sys/keyctl.h: No such file or directory
#    7|   #include <sys/file.h>
#    8|   #include <sys/ioctl.h>
#    9|-> #include <sys/keyctl.h>
#   10|   #include <sys/mount.h>
#   11|   #include <sys/personality.h>

Error: COMPILER_WARNING:
systemd-258.1/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c:80:44: error[-Wimplicit-function-declaration]: implicit declaration of function ‘__builtin_btf_type_id’
#   78|   
#   79|           /* Get user namespace from vfsmount */
#   80|->         m = bpf_rdonly_cast(real_mount(v), bpf_core_type_id_kernel(struct mount));
#   81|           mount_userns = m->mnt_ns->user_ns;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nsresourced/nsresourced-manager.c:190:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258.1/src/nsresourced/nsresourced-manager.c:167:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:169:26: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:177:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:179:12: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:179:12: branch_true: following ‘true’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:180:22: branch_true: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:183:20: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:190:29: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:190:29: acquire_resource: opened here
systemd-258.1/src/nsresourced/nsresourced-manager.c:190:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  188|                           }
#  189|                   } else {
#  190|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  191|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  192|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/nsresourced/nsresourced-manager.c:461:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258.1/src/nsresourced/nsresourced-manager.c:431:12: enter_function: entry to ‘manager_make_listen_socket’
systemd-258.1/src/nsresourced/nsresourced-manager.c:438:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:440:13: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:440:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:443:24: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:444:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:447:16: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:454:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:457:13: call_function: inlined call to ‘symlink_idempotent’ from ‘manager_make_listen_socket’
systemd-258.1/src/nsresourced/nsresourced-manager.c:458:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/nsresourced-manager.c:461:13: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourced-manager.c:461:12: danger: ‘*m.listen_fd’ leaks here
#  459|                   return log_error_errno(r, "Failed to symlink userdb socket: %m");
#  460|   
#  461|->         if (listen(m->listen_fd, SOMAXCONN) < 0)
#  462|                   return log_error_errno(errno, "Failed to listen on socket: %m");
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/nsresourcework.c:676:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258.1/src/nsresourced/nsresourcework.c:671:19: acquire_memory: allocated here
systemd-258.1/src/nsresourced/nsresourcework.c:672:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
systemd-258.1/src/nsresourced/nsresourcework.c:676:9: branch_false: ...to here
systemd-258.1/src/nsresourced/nsresourcework.c:676:9: danger: ‘n’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  674|   
#  675|           /* make sure the truncated name fits into utmpx even if prefixed with "ns-" and suffixed by "-65535" */
#  676|->         strshorten(n, sizeof_field(struct utmpx, ut_user) - STRLEN("ns-") - STRLEN("-65536") - 1);
#  677|   
#  678|           return n;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-registry.c:82:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userns_info’
systemd-258.1/src/nsresourced/userns-registry.c:131:12: enter_function: entry to ‘userns_registry_load’
systemd-258.1/src/nsresourced/userns-registry.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:164:23: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:164:23: call_function: calling ‘userns_info_new’ from ‘userns_registry_load’
systemd-258.1/src/nsresourced/userns-registry.c:164:23: return_function: returning to ‘userns_registry_load’ from ‘userns_info_new’
systemd-258.1/src/nsresourced/userns-registry.c:165:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:168:13: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:149:29: call_function: inlined call to ‘closep’ from ‘userns_registry_load’
systemd-258.1/src/nsresourced/userns-registry.c:148:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘userns_registry_load’
systemd-258.1/src/nsresourced/userns-registry.c:147:57: call_function: inlined call to ‘userns_info_freep’ from ‘userns_registry_load’
<unknown>: branch_true: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:147:57: call_function: inlined call to ‘userns_info_freep’ from ‘userns_registry_load’
#   80|           free(userns->name);
#   81|   
#   82|->         strv_free(userns->netifs);
#   83|   
#   84|           return mfree(userns);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nsresourced/userns-registry.c:109: error[uninitvar]: Uninitialized variable: e
#  107|                   bool found = false;
#  108|   
#  109|->                 if (!sd_json_variant_is_unsigned(e))
#  110|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a number.");
#  111|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/nsresourced/userns-registry.c:113:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cg’
systemd-258.1/src/nsresourced/userns-registry.c:87:12: enter_function: entry to ‘dispatch_cgroups_array’
systemd-258.1/src/nsresourced/userns-registry.c:88:35: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:92:13: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:92:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:98:14: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:98:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:101:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:101:19: call_function: calling ‘malloc_multiply’ from ‘dispatch_cgroups_array’
systemd-258.1/src/nsresourced/userns-registry.c:101:19: return_function: returning to ‘dispatch_cgroups_array’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-registry.c:102:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:106:9: branch_true: following ‘true’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:109:20: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:112:17: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:112:17: branch_false: following ‘false’ branch (when ‘n_cgroups == 0’)...
systemd-258.1/src/nsresourced/userns-registry.c:112:17: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:112:17: branch_true: following ‘true’ branch...
systemd-258.1/src/nsresourced/userns-registry.c:113:29: branch_true: ...to here
systemd-258.1/src/nsresourced/userns-registry.c:113:29: danger: use of uninitialized value ‘*cg’ here
#  111|   
#  112|                   FOREACH_ARRAY(cg, cgroups, n_cgroups)
#  113|->                         if (*cg == sd_json_variant_unsigned(e)) {
#  114|                                   found = true;
#  115|                                   break;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  216|           }
#  217|   
#  218|->         outer_map_fd = sym_bpf_map__fd(obj->maps.userns_mnt_id_hash);
#  219|           if (outer_map_fd < 0)
#  220|                   return log_debug_errno(outer_map_fd, "Failed to get outer BPF map fd: %m");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:228:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_true: following ‘true’ branch (when ‘replace != 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:224:32: branch_true: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:225:20: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:228:21: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:228:21: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/11)
#  226|                           return inner_map_fd;
#  227|   
#  228|->                 r = sym_bpf_map_update_elem(outer_map_fd, &ino, &inner_map_fd, BPF_ANY);
#  229|                   if (r < 0)
#  230|                           return log_debug_errno(r, "Failed to replace map in inode hash: %m");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/11)
#  239|                                                          "Stillcan't create inode entry in BPF map after 10 tries.");
#  240|   
#  241|->                         r = sym_bpf_map_lookup_elem(outer_map_fd, &ino, &innermap_id);
#  242|                           if (r >= 0) {
#  243|                                   inner_map_fd = sym_bpf_map_get_fd_by_id(innermap_id);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:243:48: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:242:28: branch_true: following ‘true’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:243:48: branch_true: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:243:48: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11)
#  241|                           r = sym_bpf_map_lookup_elem(outer_map_fd, &ino, &innermap_id);
#  242|                           if (r >= 0) {
#  243|->                                 inner_map_fd = sym_bpf_map_get_fd_by_id(innermap_id);
#  244|                                   if (inner_map_fd < 0)
#  245|                                           return log_debug_errno(inner_map_fd, "Failed to get file descriptor for inner map: %m");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:257:29: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:242:28: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:249:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:249:28: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:253:40: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:254:28: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:257:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:257:29: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
#  255|                                   return inner_map_fd;
#  256|   
#  257|->                         r = sym_bpf_map_update_elem(outer_map_fd, &ino, &inner_map_fd, BPF_NOEXIST);
#  258|                           if (r >= 0)
#  259|                                   break;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/nsresourced/userns-restrict.c:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘mntid’
systemd-258.1/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258.1/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258.1/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258.1/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:244:36: branch_false: following ‘false’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:247:33: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:265:9: branch_false: following ‘false’ branch (when ‘n_mount_fds == 0’)...
systemd-258.1/src/nsresourced/userns-restrict.c:265:9: branch_false: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:265:9: branch_true: following ‘true’ branch...
systemd-258.1/src/nsresourced/userns-restrict.c:266:26: branch_true: ...to here
systemd-258.1/src/nsresourced/userns-restrict.c:268:21: danger: ‘mntid’ leaks here; was allocated at [(12)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/11)
#  266|                   uint32_t dummy_value = 1;
#  267|   
#  268|->                 r = sym_bpf_map_update_elem(inner_map_fd, mntid, &dummy_value, BPF_ANY);
#  269|                   if (r < 0)
#  270|                           return log_debug_errno(r, "Failed to add mount ID to map: %m");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/nss-resolve/nss-resolve.c:140: error[uninitvar]: Uninitialized variable: i
#  138|                   int64_t b;
#  139|   
#  140|->                 if (!sd_json_variant_is_integer(i))
#  141|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an integer.", k, strna(name));
#  142|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/oom/oomd-manager.c:78: error[uninitvar]: Uninitialized variable: c
#   76|                   usec_t duration;
#   77|   
#   78|->                 if (!sd_json_variant_is_object(c))
#   79|                           continue;
#   80|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/oom/oomd-util.c:528:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mem_available’
systemd-258.1/src/oom/oomd-util.c:471:5: enter_function: entry to ‘oomd_system_context_acquire’
systemd-258.1/src/oom/oomd-util.c:486:9: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:487:9: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:487:9: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:489:13: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:490:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: following ‘false’ branch (when ‘field_filled != 15’)...
systemd-258.1/src/oom/oomd-util.c:494:38: call_function: inlined call to ‘freep’ from ‘oomd_system_context_acquire’
systemd-258.1/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:528:13: danger: use of uninitialized value ‘mem_available’ here
#  526|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "%s is missing expected fields", proc_meminfo_path);
#  527|   
#  528|->         if (mem_available > ctx.mem_total)
#  529|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#  530|                                          "MemAvailable (%" PRIu64 ") cannot be greater than MemTotal (%" PRIu64 ")",

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/oom/oomd-util.c:534:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘swap_free’
systemd-258.1/src/oom/oomd-util.c:471:5: enter_function: entry to ‘oomd_system_context_acquire’
systemd-258.1/src/oom/oomd-util.c:486:9: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:487:9: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:487:9: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:489:13: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:490:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: following ‘false’ branch (when ‘field_filled != 15’)...
systemd-258.1/src/oom/oomd-util.c:494:38: call_function: inlined call to ‘freep’ from ‘oomd_system_context_acquire’
systemd-258.1/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:506:27: branch_true: following ‘true’ branch...
systemd-258.1/src/oom/oomd-util.c:507:25: branch_true: ...to here
systemd-258.1/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:528:12: branch_false: following ‘false’ branch...
systemd-258.1/src/oom/oomd-util.c:534:25: branch_false: ...to here
systemd-258.1/src/oom/oomd-util.c:534:13: danger: use of uninitialized value ‘swap_free’ here
#  532|                                          ctx.mem_total);
#  533|   
#  534|->         if (swap_free > ctx.swap_total)
#  535|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#  536|                                          "SwapFree (%" PRIu64 ") cannot be greater than SwapTotal (%" PRIu64 ")",

Error: CPPCHECK_WARNING (CWE-416):
systemd-258.1/src/portable/portable.c:107: error[deallocuse]: Dereferencing 'm' after it is deallocated / released
#  105|           if (!isempty(selinux_label)) {
#  106|                   m->selinux_label = strdup(selinux_label);
#  107|->                 if (!m->selinux_label) {
#  108|                           free(m->image_path);
#  109|                           return mfree(m);

Error: CPPCHECK_WARNING (CWE-672):
systemd-258.1/src/portable/portable.c:109: error[deallocret]: Returning/dereferencing 'm' after it is deallocated / released
#  107|                   if (!m->selinux_label) {
#  108|                           free(m->image_path);
#  109|->                         return mfree(m);
#  110|                   }
#  111|           }

Error: CPPCHECK_WARNING (CWE-672):
systemd-258.1/src/portable/portable.c:116: error[deallocret]: Returning/dereferencing 'm' after it is deallocated / released
#  114|           m->fd = fd;
#  115|   
#  116|->         return TAKE_PTR(m);
#  117|   }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/portable/portablectl.c:217:1: warning[-Wanalyzer-malloc-leak]: leak of ‘prefix’
systemd-258.1/src/portable/portablectl.c:167:12: enter_function: entry to ‘determine_matches’
systemd-258.1/src/portable/portablectl.c:178:21: call_function: calling ‘extract_prefix’ from ‘determine_matches’
systemd-258.1/src/portable/portablectl.c:178:21: return_function: returning to ‘determine_matches’ from ‘extract_prefix’
systemd-258.1/src/portable/portablectl.c:179:20: branch_false: following ‘false’ branch...
systemd-258.1/src/portable/portablectl.c:182:21: branch_false: ...to here
systemd-258.1/src/portable/portablectl.c:185:21: call_function: inlined call to ‘strv_consume’ from ‘determine_matches’
systemd-258.1/src/portable/portablectl.c:217:1: danger: ‘prefix’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  215|   
#  216|           return 0;
#  217|-> }
#  218|   
#  219|   static int acquire_bus(sd_bus **bus) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/portable/portabled-operation.c:92:13: warning[-Wanalyzer-malloc-leak]: leak of ‘o’
systemd-258.1/src/portable/portabled-operation.c:81:9: branch_false: following ‘false’ branch...
systemd-258.1/src/portable/portabled-operation.c:82:9: branch_false: ...to here
systemd-258.1/src/portable/portabled-operation.c:82:9: branch_false: following ‘false’ branch...
systemd-258.1/src/portable/portabled-operation.c:83:9: branch_false: ...to here
systemd-258.1/src/portable/portabled-operation.c:83:9: branch_false: following ‘false’ branch...
systemd-258.1/src/portable/portabled-operation.c:84:9: branch_false: ...to here
systemd-258.1/src/portable/portabled-operation.c:84:9: branch_false: following ‘false’ branch...
systemd-258.1/src/portable/portabled-operation.c:86:13: branch_false: ...to here
systemd-258.1/src/portable/portabled-operation.c:86:13: acquire_memory: allocated here
systemd-258.1/src/portable/portabled-operation.c:87:12: branch_false: following ‘false’ branch (when ‘o’ is non-NULL)...
systemd-258.1/src/portable/portabled-operation.c:90:9: branch_false: ...to here
systemd-258.1/src/portable/portabled-operation.c:92:13: danger: ‘o’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   90|           o->extra_fd = -EBADF;
#   91|   
#   92|->         r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o);
#   93|           if (r < 0) {
#   94|                   free(o);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/random-seed/random-seed-tool.c:179:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(176)’
systemd-258.1/src/random-seed/random-seed-tool.c:142:12: enter_function: entry to ‘load_seed_file’
systemd-258.1/src/random-seed/random-seed-tool.c:153:9: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:154:9: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:154:9: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:156:15: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:157:12: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:160:13: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:161:12: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:165:12: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:165:12: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:172:12: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:172:12: branch_true: following ‘true’ branch (when ‘ret_hash_state’ is non-NULL)...
systemd-258.1/src/random-seed/random-seed-tool.c:175:30: call_function: inlined call to ‘malloc_multiply’ from ‘load_seed_file’
systemd-258.1/src/random-seed/random-seed-tool.c:176:20: branch_false: following ‘false’ branch...
systemd-258.1/src/random-seed/random-seed-tool.c:179:17: branch_false: ...to here
systemd-258.1/src/random-seed/random-seed-tool.c:179:17: danger: ‘malloc(176)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  177|                           return log_oom();
#  178|   
#  179|->                 sha256_init_ctx(hash_state);
#  180|                   sha256_process_bytes_and_size(buf, k, hash_state); /* Hash with length to distinguish from new seed. */
#  181|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:1610: error[uninitvar]: Uninitialized variable: &pos1
# 1608|   
# 1609|           if (ifname)
# 1610|->                 printf("%s%nLink %i (%s)%n%s:", ansi_highlight(), &pos1, ifindex, ifname, &pos2, ansi_normal());
# 1611|           else if (delegate_id)
# 1612|                   printf("%s%nDelegate %s%n%s:", ansi_highlight(), &pos1, delegate_id, &pos2, ansi_normal());

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:1610: error[uninitvar]: Uninitialized variable: &pos2
# 1608|   
# 1609|           if (ifname)
# 1610|->                 printf("%s%nLink %i (%s)%n%s:", ansi_highlight(), &pos1, ifindex, ifname, &pos2, ansi_normal());
# 1611|           else if (delegate_id)
# 1612|                   printf("%s%nDelegate %s%n%s:", ansi_highlight(), &pos1, delegate_id, &pos2, ansi_normal());

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:1616:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pos2’
# 1614|                   printf("%s%nGlobal%n%s:", ansi_highlight(), &pos1, &pos2, ansi_normal());
# 1615|   
# 1616|->         size_t cols = columns(), position = pos2 - pos1 + 2;
# 1617|   
# 1618|           STRV_FOREACH(i, p) {

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:3065: error[uninitvar]: Uninitialized variable: a
# 3063|                   size_t l;
# 3064|   
# 3065|->                 jraw = sd_json_variant_by_key(a, "raw");
# 3066|                   if (!jraw) {
# 3067|                           log_warning("Received monitor answer lacking valid raw data, ignoring.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:3298: error[uninitvar]: Uninitialized variable: i
# 3296|                           size_t size;
# 3297|   
# 3298|->                         raw = sd_json_variant_by_key(i, "raw");
# 3299|                           if (!raw)
# 3300|                                   return log_error_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "raw field missing from RR JSON data.");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:3369: error[uninitvar]: Uninitialized variable: i
# 3367|   
# 3368|           JSON_VARIANT_ARRAY_FOREACH(i, scope_info.cache) {
# 3369|->                 r = dump_cache_item(i);
# 3370|                   if (r < 0)
# 3371|                           return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:3416: error[uninitvar]: Uninitialized variable: i
# 3414|   
# 3415|                   JSON_VARIANT_ARRAY_FOREACH(i, d) {
# 3416|->                         r = dump_cache_scope(i);
# 3417|                           if (r < 0)
# 3418|                                   return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolvectl.c:3596: error[uninitvar]: Uninitialized variable: i
# 3594|   
# 3595|                   JSON_VARIANT_ARRAY_FOREACH(i, d) {
# 3596|->                         r = dump_server_state(i);
# 3597|                           if (r < 0)
# 3598|                                   return r;

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/resolvectl.c:4413: error[ctunullpointer]: Null pointer dereference: args
# 4411|           if (single_arg)
# 4412|                   *p++ = (char *) single_arg;
# 4413|->         FOREACH_ARRAY(arg, args, num_args)
# 4414|                   *p++ = *arg;
# 4415|   

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/resolve/resolved-bus.c:158:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/resolve/resolved-bus.c:1225:13: enter_function: entry to ‘bus_method_resolve_service_complete’
systemd-258.1/src/resolve/resolved-bus.c:1233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1235:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1235:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1236:21: branch_true: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1236:21: call_function: calling ‘reply_query_state’ from ‘bus_method_resolve_service_complete’
#  156|   
#  157|           return r;
#  158|-> }
#  159|   
#  160|   static int reply_query_state(DnsQuery *q) {

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-answer.c:24:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258.1/src/resolve/resolved-dns-answer.c:147:12: enter_function: entry to ‘dns_answer_add_raw_all’
systemd-258.1/src/resolve/resolved-dns-answer.c:151:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:152:21: call_function: calling ‘dns_answer_add_raw’ from ‘dns_answer_add_raw_all’
#   22|   }
#   23|   
#   24|-> DEFINE_PRIVATE_TRIVIAL_REF_UNREF_FUNC(DnsAnswerItem, dns_answer_item, dns_answer_item_free);
#   25|   DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswerItem*, dns_answer_item_unref);
#   26|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-answer.c:59:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’
systemd-258.1/src/resolve/resolved-dns-answer.c:680:5: enter_function: entry to ‘dns_answer_reserve’
systemd-258.1/src/resolve/resolved-dns-answer.c:681:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:683:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:683:12: branch_false: following ‘false’ branch (when ‘n_free != 0’)...
systemd-258.1/src/resolve/resolved-dns-answer.c:686:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:686:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:689:21: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:689:21: call_function: calling ‘dns_answer_new’ from ‘dns_answer_reserve’
#   57|           size_t m;
#   58|   
#   59|->         assert(a);
#   60|           assert(a->items);
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-answer.c:677:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
systemd-258.1/src/resolve/resolved-dns-answer.c:647:6: enter_function: entry to ‘dns_answer_order_by_scope’
systemd-258.1/src/resolve/resolved-dns-answer.c:652:13: call_function: inlined call to ‘dns_answer_size’ from ‘dns_answer_order_by_scope’
systemd-258.1/src/resolve/resolved-dns-answer.c:653:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:659:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:659:21: call_function: calling ‘malloc_multiply’ from ‘dns_answer_order_by_scope’
systemd-258.1/src/resolve/resolved-dns-answer.c:659:21: return_function: returning to ‘dns_answer_order_by_scope’ from ‘malloc_multiply’
systemd-258.1/src/resolve/resolved-dns-answer.c:660:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:664:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:664:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:664:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:669:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:669:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:673:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:675:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:676:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-answer.c:677:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-answer.c:677:17: danger: use of uninitialized value ‘*<unknown>’ here
#  675|           ordered_set_clear(a->items);
#  676|           for (size_t i = 0; i < n; i++)
#  677|->                 assert_se(ordered_set_put(a->items, items[i]) >= 0);
#  678|   }
#  679|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-answer.h:107:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258.1/src/resolve/test-dns-answer.c:303:1: enter_function: entry to ‘test_dns_answer_remove_by_key’
systemd-258.1/src/resolve/test-dns-answer.c:304:58: call_function: calling ‘prepare_answer’ from ‘test_dns_answer_remove_by_key’
systemd-258.1/src/resolve/test-dns-answer.c:304:49: call_function: calling ‘dns_answer_unrefp’ from ‘test_dns_answer_remove_by_key’
#  105|   uint32_t dns_answer_min_ttl(DnsAnswer *a);
#  106|   
#  107|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswer*, dns_answer_unref);
#  108|   
#  109|   typedef struct DnsAnswerIterator {

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-browse-services.c:246:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258.1/src/resolve/resolved-dns-browse-services.c:544:13: enter_function: entry to ‘mdns_browse_service_query_complete’
systemd-258.1/src/resolve/resolved-dns-browse-services.c:549:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-browse-services.c:550:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-browse-services.c:550:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-browse-services.c:552:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-browse-services.c:552:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-browse-services.c:555:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-browse-services.c:555:14: call_function: calling ‘dns_service_browser_ref’ from ‘mdns_browse_service_query_complete’
systemd-258.1/src/resolve/resolved-dns-browse-services.c:555:14: return_function: returning to ‘mdns_browse_service_query_complete’ from ‘dns_service_browser_ref’
systemd-258.1/src/resolve/resolved-dns-browse-services.c:556:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-browse-services.c:559:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-browse-services.c:559:13: call_function: calling ‘mdns_browser_revisit_cache’ from ‘mdns_browse_service_query_complete’
#  244|   }
#  245|   
#  246|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(DnssdDiscoveredService, dnssd_discovered_service, dns_service_free);
#  247|   
#  248|   int mdns_service_update(DnssdDiscoveredService *service, DnsResourceRecord *rr, usec_t t, usec_t until) {

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-cache.c:1380:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-cache.c:1332:5: enter_function: entry to ‘dns_cache_export_shared_to_packet’
systemd-258.1/src/resolve/resolved-dns-cache.c:1337:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1338:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1338:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1339:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1339:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1341:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1341:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1342:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1342:17: branch_true: following ‘true’ branch (when ‘j’ is non-NULL)...
systemd-258.1/src/resolve/resolved-dns-cache.c:1342:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1343:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1346:30: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1346:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1350:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1350:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1355:29: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1355:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1358:28: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1359:33: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_cache_export_shared_to_packet’
systemd-258.1/src/resolve/resolved-dns-cache.c:1363:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1366:33: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1372:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-cache.c:1373:36: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1373:36: branch_false: following ‘false’ branch (when ‘max_rr != 0’)...
systemd-258.1/src/resolve/resolved-dns-cache.c:1380:65: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-cache.c:1380:33: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_cache_export_shared_to_packet’
systemd-258.1/src/resolve/resolved-dns-cache.c:1380:65: call_function: inlined call to ‘htobe16’ from ‘dns_cache_export_shared_to_packet’
systemd-258.1/src/resolve/resolved-dns-cache.c:1380:33: danger: dereference of NULL ‘<unknown>’
# 1378|                                    * a new one, push the RR into that one and link it to the current one. */
# 1379|   
# 1380|->                                 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
# 1381|                                   ancount = 0;
# 1382|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-packet.c:2444:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-packet.c:2439:12: enter_function: entry to ‘dns_packet_extract_question’
systemd-258.1/src/resolve/resolved-dns-packet.c:2444:13: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_packet_extract_question’
systemd-258.1/src/resolve/resolved-dns-packet.c:2444:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-packet.c:2444:13: danger: dereference of NULL ‘<unknown>’
# 2442|           int r;
# 2443|   
# 2444|->         n = DNS_PACKET_QDCOUNT(p);
# 2445|           if (n > 0) {
# 2446|                   question = dns_question_new(n);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-packet.h:146:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-packet.c:2490:12: enter_function: entry to ‘dns_packet_extract_answer’
systemd-258.1/src/resolve/resolved-dns-packet.c:2497:13: call_function: calling ‘DNS_PACKET_RRCOUNT’ from ‘dns_packet_extract_answer’
#  144|   static inline unsigned DNS_PACKET_RRCOUNT(DnsPacket *p) {
#  145|           return
#  146|->                 (unsigned) DNS_PACKET_ANCOUNT(p) +
#  147|                   (unsigned) DNS_PACKET_NSCOUNT(p) +
#  148|                   (unsigned) DNS_PACKET_ARCOUNT(p);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-question.c:16:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_question_new(*a.n_keys + *b.n_keys)’
systemd-258.1/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258.1/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_add_raw_all’
systemd-258.1/src/resolve/resolved-dns-question.c:572:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_merge’
#   14|           DnsQuestion *q;
#   15|   
#   16|->         if (n > UINT16_MAX) /* We can only place 64K key in an question section at max */
#   17|                   n = UINT16_MAX;
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-question.c:16:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_question_new(*q.n_keys)’
systemd-258.1/src/resolve/resolved-dns-question.c:245:5: enter_function: entry to ‘dns_question_cname_redirect’
systemd-258.1/src/resolve/resolved-dns-question.c:251:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:252:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:253:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:255:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_cname_redirect’
systemd-258.1/src/resolve/resolved-dns-question.c:255:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:260:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:260:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:261:38: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:277:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:280:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:292:13: call_function: calling ‘dns_question_new’ from ‘dns_question_cname_redirect’
systemd-258.1/src/resolve/resolved-dns-question.c:292:13: return_function: returning to ‘dns_question_cname_redirect’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:293:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:297:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:297:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:246:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_cname_redirect’
#   14|           DnsQuestion *q;
#   15|   
#   16|->         if (n > UINT16_MAX) /* We can only place 64K key in an question section at max */
#   17|                   n = UINT16_MAX;
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-question.c:63:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258.1/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258.1/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
#   61|   
#   62|           DNS_QUESTION_FOREACH_ITEM(item, b) {
#   63|->                 r = dns_question_add_raw(a, item->key, item->flags);
#   64|                   if (r < 0)
#   65|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-question.c:81:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258.1/src/resolve/resolved-dns-question.c:470:5: enter_function: entry to ‘dns_question_new_service’
systemd-258.1/src/resolve/resolved-dns-question.c:484:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:501:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:501:12: branch_false: following ‘false’ branch (when ‘domain’ is non-NULL)...
systemd-258.1/src/resolve/resolved-dns-question.c:504:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:504:12: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
systemd-258.1/src/resolve/resolved-dns-question.c:505:20: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:505:20: branch_false: following ‘false’ branch (when ‘convert_idna == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:514:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:517:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:525:13: call_function: calling ‘dns_question_new’ from ‘dns_question_new_service’
systemd-258.1/src/resolve/resolved-dns-question.c:525:13: return_function: returning to ‘dns_question_new_service’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:526:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:529:15: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:530:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:533:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:533:13: call_function: calling ‘dns_question_add’ from ‘dns_question_new_service’
#   79|   
#   80|           DNS_QUESTION_FOREACH_ITEM(item, q) {
#   81|->                 r = dns_resource_key_equal(item->key, key);
#   82|                   if (r < 0)
#   83|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-question.c:96:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258.1/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258.1/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
systemd-258.1/src/resolve/resolved-dns-question.c:591:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_add_raw_all’
systemd-258.1/src/resolve/resolved-dns-question.c:592:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:595:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:595:13: call_function: calling ‘dns_question_add_all’ from ‘dns_question_merge’
#   94|   
#   95|           DNS_QUESTION_FOREACH_ITEM(item, b) {
#   96|->                 r = dns_question_add(a, item->key, item->flags);
#   97|                   if (r < 0)
#   98|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_resource_record_new(*rr.key)’
systemd-258.1/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258.1/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1938:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
#  127|           /* Static/const keys created with DNS_RESOURCE_KEY_CONST will
#  128|            * set this to -1, they should not be reffed/unreffed */
#  129|->         assert(k->n_ref != UINT_MAX);
#  130|   
#  131|           assert(k->n_ref > 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(112)’
systemd-258.1/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
#  127|           /* Static/const keys created with DNS_RESOURCE_KEY_CONST will
#  128|            * set this to -1, they should not be reffed/unreffed */
#  129|->         assert(k->n_ref != UINT_MAX);
#  130|   
#  131|           assert(k->n_ref > 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(112)’
systemd-258.1/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
#  129|           assert(k->n_ref != UINT_MAX);
#  130|   
#  131|->         assert(k->n_ref > 0);
#  132|           k->n_ref++;
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-rr.c:331:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
systemd-258.1/src/resolve/resolved-dns-rr.c:1693:5: enter_function: entry to ‘dns_resource_record_compare_func’
systemd-258.1/src/resolve/resolved-dns-rr.c:1696:13: call_function: calling ‘dns_resource_key_compare_func’ from ‘dns_resource_record_compare_func’
#  329|                   return r;
#  330|   
#  331|->         r = CMP(x->type, y->type);
#  332|           if (r != 0)
#  333|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-rr.c:331:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘y’
systemd-258.1/src/resolve/resolved-dns-rr.c:1693:5: enter_function: entry to ‘dns_resource_record_compare_func’
systemd-258.1/src/resolve/resolved-dns-rr.c:1696:13: call_function: calling ‘dns_resource_key_compare_func’ from ‘dns_resource_record_compare_func’
#  329|                   return r;
#  330|   
#  331|->         r = CMP(x->type, y->type);
#  332|           if (r != 0)
#  333|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.c:528:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258.1/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1740:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1740:54: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1837:38: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dns-rr.c:1838:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1840:41: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1841:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
#  526|   
#  527|           free(rr->to_string);
#  528|->         return mfree(rr);
#  529|   }
#  530|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.c:1734:21: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_resource_record_new(*rr.key)’
systemd-258.1/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258.1/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1740:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-rr.c:1740:54: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-rr.c:1772:35: call_function: calling ‘dns_txt_item_copy’ from ‘dns_resource_record_copy’
systemd-258.1/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
# 1732|                   return NULL;
# 1733|   
# 1734|->         copy->ttl = rr->ttl;
# 1735|           copy->expiry = rr->expiry;
# 1736|           copy->n_skip_labels_signer = rr->n_skip_labels_signer;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-rr.h:367:1: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
systemd-258.1/src/resolve/resolved-dns-question.c:388:5: enter_function: entry to ‘dns_question_new_reverse’
systemd-258.1/src/resolve/resolved-dns-question.c:394:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:395:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:395:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:397:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:401:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:404:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:404:13: call_function: calling ‘dns_question_new’ from ‘dns_question_new_reverse’
systemd-258.1/src/resolve/resolved-dns-question.c:404:13: return_function: returning to ‘dns_question_new_reverse’ from ‘dns_question_new’
systemd-258.1/src/resolve/resolved-dns-question.c:405:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:408:15: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:409:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-question.c:412:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-question.c:414:13: call_function: calling ‘dns_question_add’ from ‘dns_question_new_reverse’
systemd-258.1/src/resolve/resolved-dns-question.c:390:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_new_reverse’
systemd-258.1/src/resolve/resolved-dns-question.c:389:60: call_function: calling ‘dns_resource_key_unrefp’ from ‘dns_question_new_reverse’
#  365|           dns_resource_key_to_string(key, (char[DNS_RESOURCE_KEY_STRING_MAX]) {}, DNS_RESOURCE_KEY_STRING_MAX)
#  366|   
#  367|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DnsResourceKey*, dns_resource_key_unref);
#  368|   
#  369|   static inline bool dns_key_is_shared(const DnsResourceKey *key) {

Error: COMPILER_WARNING:
systemd-258.1/src/resolve/resolved-dns-scope.c:971:26: error[error]: ‘struct ipv6_mreq’ has no member named ‘ipv6mr_ifindex’
#  969|                   struct ipv6_mreq mreq = {
#  970|                           .ipv6mr_multiaddr = in6,
#  971|->                         .ipv6mr_ifindex = s->link->ifindex,
#  972|                   };
#  973|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-search-domain.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
systemd-258.1/src/resolve/resolved-dns-search-domain.c:12:5: enter_function: entry to ‘dns_search_domain_new’
systemd-258.1/src/resolve/resolved-dns-search-domain.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:25:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-search-domain.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:26:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-search-domain.c:26:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:27:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-search-domain.c:27:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:29:13: call_function: inlined call to ‘dns_name_normalize’ from ‘dns_search_domain_new’
systemd-258.1/src/resolve/resolved-dns-search-domain.c:30:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:33:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-search-domain.c:34:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:44:13: call_function: inlined call to ‘malloc_multiply’ from ‘dns_search_domain_new’
systemd-258.1/src/resolve/resolved-dns-search-domain.c:45:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-search-domain.c:52:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-search-domain.c:55:9: danger: ‘malloc(64)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#   53|           };
#   54|   
#   55|->         switch (type) {
#   56|   
#   57|           case DNS_SEARCH_DOMAIN_LINK:

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-server.c:101:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘link’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#   99|           case DNS_SERVER_LINK:
#  100|                   s->link = link;
#  101|->                 LIST_APPEND(servers, link->dns_servers, s);
#  102|                   link->n_dns_servers++;
#  103|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-server.c:117:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘delegate’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#  115|           case DNS_SERVER_DELEGATE:
#  116|                   s->delegate = delegate;
#  117|->                 LIST_APPEND(servers, delegate->dns_servers, s);
#  118|                   delegate->n_dns_servers++;
#  119|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-server.c:121:17: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#  119|                   break;
#  120|           default:
#  121|->                 assert_not_reached();
#  122|           }
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-server.c:1162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(184)’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1160|   
# 1161|   void dns_server_reset_features(DnsServer *s) {
# 1162|->         assert(s);
# 1163|   
# 1164|           s->verified_feature_level = _DNS_SERVER_FEATURE_LEVEL_INVALID;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-server.c:1254:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(184)’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1252|   
# 1253|           /* And then, unref it */
# 1254|->         dns_stream_unref(ref);
# 1255|   }
# 1256|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dns-server.c:1254:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
systemd-258.1/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258.1/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258.1/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1252|   
# 1253|           /* And then, unref it */
# 1254|->         dns_stream_unref(ref);
# 1255|   }
# 1256|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-stub.c:363:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258.1/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  361|                   return -EMSGSIZE;
#  362|   
#  363|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(q));
#  364|   
#  365|           *ret = TAKE_PTR(p);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-stub.c:678:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘truncated’
systemd-258.1/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258.1/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  676|                   return log_debug_errno(r, "Failed to make failure packet: %m");
#  677|   
#  678|->         r = dns_stub_finish_reply_packet(
#  679|                           reply,
#  680|                           DNS_PACKET_ID(p),

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-stub.c:959:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258.1/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  957|           }
#  958|   
#  959|->         if (dns_type_is_obsolete(dns_question_first_key(p->question)->type)) {
#  960|                   log_debug("Got message with obsolete key type, refusing.");
#  961|                   dns_stub_send_failure(m, l, s, p, DNS_RCODE_REFUSED, false);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-stub.c:965:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258.1/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  963|           }
#  964|   
#  965|->         if (dns_type_is_zone_transfer(dns_question_first_key(p->question)->type)) {
#  966|                   log_debug("Got request for zone transfer, refusing.");
#  967|                   dns_stub_send_failure(m, l, s, p, DNS_RCODE_REFUSED, false);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-stub.c:1065:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-stub.c:1078:12: enter_function: entry to ‘on_dns_stub_packet_extra’
systemd-258.1/src/resolve/resolved-dns-stub.c:1079:35: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-stub.c:1081:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-stub.c:1081:16: call_function: calling ‘on_dns_stub_packet_internal’ from ‘on_dns_stub_packet_extra’
# 1063|   
# 1064|           if (dns_packet_validate_query(p) > 0) {
# 1065|->                 log_debug("Got DNS stub UDP query packet for id %u", DNS_PACKET_ID(p));
# 1066|   
# 1067|                   dns_stub_process_query(m, l, NULL, p);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-transaction.c:455: error[uninitvar]: Uninitialized variable: c
#  453|   
#  454|           SET_FOREACH_MOVE(c, t->notify_query_candidates_done, t->notify_query_candidates)
#  455|->                 dns_query_candidate_notify(c);
#  456|           SWAP_TWO(t->notify_query_candidates, t->notify_query_candidates_done);
#  457|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-transaction.c:459: error[uninitvar]: Uninitialized variable: z
#  457|   
#  458|           SET_FOREACH_MOVE(z, t->notify_zone_items_done, t->notify_zone_items)
#  459|->                 dns_zone_item_notify(z);
#  460|           SWAP_TWO(t->notify_zone_items, t->notify_zone_items_done);
#  461|           if (t->probing && t->state == DNS_TRANSACTION_ATTEMPTS_MAX_REACHED)

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-dns-transaction.c:465: error[uninitvar]: Uninitialized variable: d
#  463|   
#  464|           SET_FOREACH_MOVE(d, t->notify_transactions_done, t->notify_transactions)
#  465|->                 dns_transaction_notify(d, t);
#  466|           SWAP_TWO(t->notify_transactions, t->notify_transactions_done);
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:2624:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ds’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2455:5: enter_function: entry to ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2462:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2479:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2479:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2481:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2483:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2483:14: call_function: calling ‘dns_transaction_dnssec_supported’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2483:14: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_dnssec_supported’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2483:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2486:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2486:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2488:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2492:91: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2492:21: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2492:21: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2493:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2495:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2495:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2498:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2591:76: release_memory: ‘ds’ is NULL
systemd-258.1/src/resolve/resolved-dns-transaction.c:2600:55: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2600:55: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2601:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2603:28: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2603:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2608:69: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2608:69: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2608:69: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2609:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2611:36: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2611:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2617:124: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2617:77: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2617:77: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2618:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2620:36: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2620:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2624:37: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2624:37: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2624:37: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2624:37: danger: dereference of NULL ‘dns_transaction_key(t)’
# 2622|   
# 2623|                                   /* If we were looking for the DS RR, don't request it again. */
# 2624|->                                 if (dns_transaction_key(t)->type == DNS_TYPE_DS)
# 2625|                                           continue;
# 2626|                           }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:2887:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2885:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2887:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2887:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2887:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2887:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2885|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2886|   
# 2887|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2888|                                   continue;
# 2889|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:2928:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2926:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2928:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2928:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2928:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2928:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2926|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2927|   
# 2928|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2929|                                   continue;
# 2930|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:2971:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2970:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:2971:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:2971:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2971:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2971:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2969|   
# 2970|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2971|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2972|                                   continue;
# 2973|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:2973:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3412:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3413:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3413:29: call_function: calling ‘dns_transaction_requires_rrsig’ from ‘dnssec_validate_records’
# 2971|                           if (dns_transaction_key(dt)->class != rr->key->class)
# 2972|                                   continue;
# 2973|->                         if (dns_transaction_key(dt)->type != DNS_TYPE_DS)
# 2974|                                   continue;
# 2975|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:2994:12: enter_function: entry to ‘dns_transaction_in_private_tld’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3017:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3019:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3019:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3022:15: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3024:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3026:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3026:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3029:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3029:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3032:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3032:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_in_private_tld’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: return_function: returning to ‘dns_transaction_in_private_tld’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:13: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3071:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:13: call_function: calling ‘dns_transaction_in_private_tld’ from ‘dns_transaction_requires_nsec’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3034:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:83: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3070:13: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3071:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:47: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3076:13: call_function: calling ‘dns_transaction_in_private_tld’ from ‘dns_transaction_requires_nsec’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3067:13: danger: dereference of NULL ‘dns_transaction_key(t)’
# 3065|                   return false;
# 3066|   
# 3067|->         if (dns_type_is_pseudo(dns_transaction_key(t)->type))
# 3068|                   return -EINVAL;
# 3069|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3144:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3118:12: enter_function: entry to ‘dns_transaction_dnskey_authenticated’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3127:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_dnskey_authenticated’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3127:13: return_function: returning to ‘dns_transaction_dnskey_authenticated’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3128:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3130:12: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3130:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3133:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3133:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3137:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3139:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3139:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3142:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3142:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3144:29: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3144:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_dnskey_authenticated’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3144:29: return_function: returning to ‘dns_transaction_dnskey_authenticated’ from ‘dns_transaction_key’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3144:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 3142|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 3143|   
# 3144|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 3145|                                   continue;
# 3146|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3147:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3412:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3480:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3480:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3489:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3493:29: call_function: calling ‘dns_transaction_dnskey_authenticated’ from ‘dnssec_validate_records’
# 3145|                                   continue;
# 3146|   
# 3147|->                         if (dns_transaction_key(dt)->type == DNS_TYPE_DNSKEY) {
# 3148|   
# 3149|                                   r = dns_name_equal(dns_resource_key_name(dns_transaction_key(dt)), rrsig->rrsig.signer);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-dns-transaction.c:3163:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258.1/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3412:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3480:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3480:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dns-transaction.c:3489:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dns-transaction.c:3493:29: call_function: calling ‘dns_transaction_dnskey_authenticated’ from ‘dnssec_validate_records’
# 3161|                                   found = true;
# 3162|   
# 3163|->                         } else if (dns_transaction_key(dt)->type == DNS_TYPE_DS) {
# 3164|   
# 3165|                                   r = dns_name_equal(dns_resource_key_name(dns_transaction_key(dt)), rrsig->rrsig.signer);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘last’
systemd-258.1/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258.1/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258.1/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘txt_data’
systemd-258.1/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘last’
systemd-258.1/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258.1/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258.1/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘txt_data’
systemd-258.1/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:56:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258.1/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   54|                   hashmap_remove(service->manager->dnssd_registered_services, service->id);
#   55|   
#   56|->         dns_resource_record_unref(service->ptr_rr);
#   57|           dns_resource_record_unref(service->sub_ptr_rr);
#   58|           dns_resource_record_unref(service->srv_rr);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:57:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258.1/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   55|   
#   56|           dns_resource_record_unref(service->ptr_rr);
#   57|->         dns_resource_record_unref(service->sub_ptr_rr);
#   58|           dns_resource_record_unref(service->srv_rr);
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:58:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258.1/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258.1/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   56|           dns_resource_record_unref(service->ptr_rr);
#   57|           dns_resource_record_unref(service->sub_ptr_rr);
#   58|->         dns_resource_record_unref(service->srv_rr);
#   59|   
#   60|           dnssd_txtdata_free_all(service->txt_data_items);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:353: error[memleak]: Memory leak: i
#  351|           *ret_item = TAKE_PTR(i);
#  352|   
#  353|->         return 0;
#  354|   }
#  355|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:378: error[memleak]: Memory leak: i
#  376|           *ret_item = TAKE_PTR(i);
#  377|   
#  378|->         return 0;
#  379|   }
#  380|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-dnssd.c:585:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32)’
systemd-258.1/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258.1/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#  583|                   }
#  584|   
#  585|->                 r = split_pair(word, "=", &key, &value);
#  586|                   if (r == -ENOMEM)
#  587|                           return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/resolve/resolved-etc-hosts.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(40)’
systemd-258.1/src/resolve/resolved-etc-hosts.c:337:12: enter_function: entry to ‘manager_etc_hosts_read’
systemd-258.1/src/resolve/resolved-etc-hosts.c:343:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:346:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:366:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:376:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:377:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/resolve/resolved-etc-hosts.c:380:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:380:13: call_function: calling ‘etc_hosts_parse’ from ‘manager_etc_hosts_read’
#   29|                   return NULL;
#   30|   
#   31|->         set_free(item->names);
#   32|           return mfree(item);
#   33|   }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-etc-hosts.c:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
systemd-258.1/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:514:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:524:22: danger: dereference of NULL ‘t’
#  522|           /* Determine whether we are looking for A and/or AAAA RRs */
#  523|           DNS_QUESTION_FOREACH(t, q) {
#  524|->                 if (!IN_SET(t->type, DNS_TYPE_A, DNS_TYPE_AAAA, DNS_TYPE_ANY))
#  525|                           continue;
#  526|                   if (!IN_SET(t->class, DNS_CLASS_IN, DNS_CLASS_ANY))

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-etc-hosts.c:556:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
systemd-258.1/src/resolve/resolved-etc-hosts.c:494:12: enter_function: entry to ‘etc_hosts_lookup_by_name’
systemd-258.1/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:518:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: call_function: inlined call to ‘set_iterate’ from ‘etc_hosts_lookup_by_name’
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:548:20: branch_true: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:556:25: danger: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
#  554|                           canonical_name = item_by_addr->canonical_name;
#  555|                   else
#  556|->                         canonical_name = item->name;
#  557|   
#  558|                   if (!streq(item->name, canonical_name)) {

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-etc-hosts.c:558:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
systemd-258.1/src/resolve/resolved-etc-hosts.c:494:12: enter_function: entry to ‘etc_hosts_lookup_by_name’
systemd-258.1/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:518:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:523:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: call_function: inlined call to ‘set_iterate’ from ‘etc_hosts_lookup_by_name’
systemd-258.1/src/resolve/resolved-etc-hosts.c:544:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:548:20: branch_true: ...to here
systemd-258.1/src/resolve/resolved-etc-hosts.c:553:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-etc-hosts.c:558:22: danger: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
#  556|                           canonical_name = item->name;
#  557|   
#  558|->                 if (!streq(item->name, canonical_name)) {
#  559|                           r = answer_add_cname(*answer, item->name, canonical_name);
#  560|                           if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258.1/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:115:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: danger: dereference of NULL ‘<unknown>’
#  114|   
#  115|           if (dns_packet_validate_reply(p) > 0) {
#  116|->                 log_debug("Got LLMNR UDP reply packet for id %u", DNS_PACKET_ID(p));
#  117|   
#  118|                   dns_scope_check_conflicts(scope, p);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-llmnr.c:120:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258.1/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:115:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:120:54: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:120:54: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:120:54: danger: dereference of NULL ‘<unknown>’
#  118|                   dns_scope_check_conflicts(scope, p);
#  119|   
#  120|->                 t = hashmap_get(m->dns_transactions, UINT_TO_PTR(DNS_PACKET_ID(p)));
#  121|                   if (t)
#  122|                           dns_transaction_process_reply(t, p, false);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258.1/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:115:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:124:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:124:19: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-llmnr.c:125:17: danger: dereference of NULL ‘<unknown>’
#  123|   
#  124|           } else if (dns_packet_validate_query(p) > 0)  {
#  125|->                 log_debug("Got LLMNR UDP query packet for id %u", DNS_PACKET_ID(p));
#  126|   
#  127|                   dns_scope_process_query(scope, NULL, p);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-manager.c:955:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258.1/src/resolve/resolved-manager.c:924:5: enter_function: entry to ‘manager_recv’
systemd-258.1/src/resolve/resolved-manager.c:943:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-manager.c:944:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-manager.c:944:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-manager.c:945:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-manager.c:945:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-manager.c:947:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-manager.c:948:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-manager.c:951:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-manager.c:952:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-manager.c:955:15: branch_false: ...to here
systemd-258.1/src/resolve/resolved-manager.c:955:15: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘manager_recv’
systemd-258.1/src/resolve/resolved-manager.c:955:15: branch_true: ...to here
systemd-258.1/src/resolve/resolved-manager.c:955:15: danger: dereference of NULL ‘p’
#  953|                   return r;
#  954|   
#  955|->         iov = IOVEC_MAKE(DNS_PACKET_DATA(p), p->allocated);
#  956|   
#  957|           l = recvmsg_safe(fd, &mh, 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-mdns.c:232:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258.1/src/resolve/resolved-mdns.c:209:13: enter_function: entry to ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:215:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:219:17: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:225:20: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:227:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_isempty’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258.1/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:232:22: danger: dereference of NULL ‘item’
#  230|           /* All the questions in the query had a QU bit set, RFC 6762, section 5.4 */
#  231|           DNS_QUESTION_FOREACH_ITEM(item, p->question)
#  232|->                 if (!FLAGS_SET(item->flags, DNS_QUESTION_WANTS_UNICAST_REPLY))
#  233|                           return false;
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/resolved-mdns.c:540:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/resolved-mdns.c:405:12: enter_function: entry to ‘on_mdns_packet’
systemd-258.1/src/resolve/resolved-mdns.c:413:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:419:14: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:424:17: call_function: calling ‘manager_find_scope’ from ‘on_mdns_packet’
systemd-258.1/src/resolve/resolved-mdns.c:424:17: return_function: returning to ‘on_mdns_packet’ from ‘manager_find_scope’
systemd-258.1/src/resolve/resolved-mdns.c:425:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:430:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:430:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:539:20: branch_false: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:539:19: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:540:17: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:540:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_mdns_packet’
systemd-258.1/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258.1/src/resolve/resolved-mdns.c:540:17: danger: dereference of NULL ‘<unknown>’
#  538|                           mdns_notify_browsers_unsolicited_updates(m, p->answer, p->family);
#  539|           } else if (dns_packet_validate_query(p) > 0)  {
#  540|->                 log_debug("Got mDNS query packet for id %u", DNS_PACKET_ID(p));
#  541|   
#  542|                   r = mdns_scope_process_query(scope, p);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/resolved-varlink.c:430: error[uninitvar]: Uninitialized variable: i
#  428|                   int64_t b;
#  429|   
#  430|->                 if (!sd_json_variant_is_integer(i))
#  431|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an integer.", k, strna(name));
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/resolve/test-dns-cache.c:1107:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
systemd-258.1/src/resolve/test-dns-cache.c:1043:1: enter_function: entry to ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1045:55: call_function: calling ‘mk_put_args’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1045:55: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘mk_put_args’
systemd-258.1/src/resolve/test-dns-cache.c:1053:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-cache.c:1054:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1054:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1054:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258.1/src/resolve/test-dns-cache.c:1058:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-cache.c:1059:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1059:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1059:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258.1/src/resolve/test-dns-cache.c:1063:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-cache.c:1064:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1064:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1064:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258.1/src/resolve/test-dns-cache.c:1067:9: call_function: calling ‘cache_put’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1067:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘cache_put’
systemd-258.1/src/resolve/test-dns-cache.c:1070:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-cache.c:1071:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1071:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-cache.c:1073:23: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1107:20: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258.1/src/resolve/test-dns-cache.c:1107:13: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-cache.c:1107:13: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 1105|           /* cache key order is not deterministic; the packets could come out in either order */
# 1106|   
# 1107|->         if (memcmp(DNS_PACKET_DATA(packet), data1, size1) == 0) {
# 1108|                   ASSERT_EQ(packet->size, size1);
# 1109|                   ASSERT_EQ(memcmp(DNS_PACKET_DATA(packet), data1, size1), 0);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/resolve/test-dns-cache.c:1144: warning[uninitvar]: Uninitialized variable: actual
# 1142|           }
# 1143|   
# 1144|->         qsort(actual, n, sizeof(char *), cmpstring);
# 1145|   
# 1146|           for (size_t i = 0; i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:32:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:25:1: enter_function: entry to ‘test_packet_set_flags_dns_checking_enabled’
systemd-258.1/src/resolve/test-dns-packet-append.c:28:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:29:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:29:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:30:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:32:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_dns_checking_enabled’
systemd-258.1/src/resolve/test-dns-packet-append.c:32:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:32:9: danger: dereference of NULL ‘<unknown>’
#   30|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ false, /* truncated= */ false);
#   31|   
#   32|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   33|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   34|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:51:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:44:1: enter_function: entry to ‘test_packet_set_flags_dns_checking_disabled’
systemd-258.1/src/resolve/test-dns-packet-append.c:47:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:48:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:48:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:49:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:51:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_dns_checking_disabled’
systemd-258.1/src/resolve/test-dns-packet-append.c:51:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:51:9: danger: dereference of NULL ‘<unknown>’
#   49|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   50|   
#   51|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   52|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   53|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:70:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:63:1: enter_function: entry to ‘test_packet_set_flags_llmnr’
systemd-258.1/src/resolve/test-dns-packet-append.c:66:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:67:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:67:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:68:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_llmnr’
systemd-258.1/src/resolve/test-dns-packet-append.c:70:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:70:9: danger: dereference of NULL ‘<unknown>’
#   68|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   69|   
#   70|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   71|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   72|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:89:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:82:1: enter_function: entry to ‘test_packet_set_flags_mdns_not_truncated’
systemd-258.1/src/resolve/test-dns-packet-append.c:85:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:86:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:86:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:87:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:89:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_mdns_not_truncated’
systemd-258.1/src/resolve/test-dns-packet-append.c:89:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:89:9: danger: dereference of NULL ‘<unknown>’
#   87|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   88|   
#   89|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   90|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   91|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:108:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:101:1: enter_function: entry to ‘test_packet_set_flags_mdns_truncated’
systemd-258.1/src/resolve/test-dns-packet-append.c:104:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:105:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:105:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:106:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:108:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_mdns_truncated’
systemd-258.1/src/resolve/test-dns-packet-append.c:108:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:108:9: danger: dereference of NULL ‘<unknown>’
#  106|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ true);
#  107|   
#  108|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#  109|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#  110|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:148:1: enter_function: entry to ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:152:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:153:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:153:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:155:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:156:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:156:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:156:9: danger: dereference of NULL ‘<unknown>’
#  154|   
#  155|           DNS_PACKET_ID(packet) = htobe16(42);
#  156|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  157|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:148:1: enter_function: entry to ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:152:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:153:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:153:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:155:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:156:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:157:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:157:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:157:9: danger: dereference of NULL ‘<unknown>’
#  155|           DNS_PACKET_ID(packet) = htobe16(42);
#  156|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  157|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  158|   
#  159|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "www.example.com");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:188:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:180:1: enter_function: entry to ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:184:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:185:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:185:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:187:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:188:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:188:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:188:9: danger: dereference of NULL ‘<unknown>’
#  186|   
#  187|           DNS_PACKET_ID(packet) = htobe16(42);
#  188|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  189|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  190|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:180:1: enter_function: entry to ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:184:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:185:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:185:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:187:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:188:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:189:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258.1/src/resolve/test-dns-packet-append.c:189:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           DNS_PACKET_ID(packet) = htobe16(42);
#  188|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  189|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  190|   
#  191|           key = dns_resource_key_new(DNS_CLASS_ANY, DNS_TYPE_SOA, "www.example.com");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:243:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:216:1: enter_function: entry to ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:222:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:224:15: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:225:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:226:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:227:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:232:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:236:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:237:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:240:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:240:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:242:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:243:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:243:9: danger: dereference of NULL ‘<unknown>’
#  241|   
#  242|           DNS_PACKET_ID(packet) = htobe16(42);
#  243|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  244|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  245|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:244:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:216:1: enter_function: entry to ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:222:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:224:15: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:225:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:226:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:227:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:230:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:231:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:232:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:236:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:237:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:240:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:240:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:242:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:244:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:244:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_question_compression’
systemd-258.1/src/resolve/test-dns-packet-append.c:244:9: danger: dereference of NULL ‘<unknown>’
#  242|           DNS_PACKET_ID(packet) = htobe16(42);
#  243|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  244|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  245|   
#  246|           ASSERT_OK(dns_packet_append_question(packet, question));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:285:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:278:1: enter_function: entry to ‘test_packet_append_opt_basic’
systemd-258.1/src/resolve/test-dns-packet-append.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:282:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:282:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:284:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_basic’
systemd-258.1/src/resolve/test-dns-packet-append.c:285:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_basic’
systemd-258.1/src/resolve/test-dns-packet-append.c:285:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:285:9: danger: dereference of NULL ‘<unknown>’
#  283|   
#  284|           DNS_PACKET_ID(packet) = htobe16(42);
#  285|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  286|   
#  287|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:313:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:306:1: enter_function: entry to ‘test_packet_append_opt_change_max_udp’
systemd-258.1/src/resolve/test-dns-packet-append.c:309:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:310:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:310:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:312:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_change_max_udp’
systemd-258.1/src/resolve/test-dns-packet-append.c:313:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_change_max_udp’
systemd-258.1/src/resolve/test-dns-packet-append.c:313:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:313:9: danger: dereference of NULL ‘<unknown>’
#  311|   
#  312|           DNS_PACKET_ID(packet) = htobe16(42);
#  313|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  314|   
#  315|           ASSERT_OK(dns_packet_append_opt(packet, 4100, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:341:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:334:1: enter_function: entry to ‘test_packet_append_opt_dnssec_ok’
systemd-258.1/src/resolve/test-dns-packet-append.c:337:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:338:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:338:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:340:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_dnssec_ok’
systemd-258.1/src/resolve/test-dns-packet-append.c:341:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_dnssec_ok’
systemd-258.1/src/resolve/test-dns-packet-append.c:341:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:341:9: danger: dereference of NULL ‘<unknown>’
#  339|   
#  340|           DNS_PACKET_ID(packet) = htobe16(42);
#  341|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  342|   
#  343|           ASSERT_OK(dns_packet_append_opt(packet, 512, true, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:369:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:362:1: enter_function: entry to ‘test_packet_append_opt_rcode’
systemd-258.1/src/resolve/test-dns-packet-append.c:365:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:366:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:366:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:368:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_rcode’
systemd-258.1/src/resolve/test-dns-packet-append.c:369:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_rcode’
systemd-258.1/src/resolve/test-dns-packet-append.c:369:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:369:9: danger: dereference of NULL ‘<unknown>’
#  367|   
#  368|           DNS_PACKET_ID(packet) = htobe16(42);
#  369|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  370|   
#  371|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0x97a, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:397:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:390:1: enter_function: entry to ‘test_packet_append_opt_nsid’
systemd-258.1/src/resolve/test-dns-packet-append.c:393:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:394:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:394:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:396:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_nsid’
systemd-258.1/src/resolve/test-dns-packet-append.c:397:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_nsid’
systemd-258.1/src/resolve/test-dns-packet-append.c:397:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:397:9: danger: dereference of NULL ‘<unknown>’
#  395|   
#  396|           DNS_PACKET_ID(packet) = htobe16(42);
#  397|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  398|   
#  399|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, "nsid.example.com", 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:430:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:422:1: enter_function: entry to ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:426:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:427:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:427:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:429:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:430:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:430:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:430:9: danger: dereference of NULL ‘<unknown>’
#  428|   
#  429|           DNS_PACKET_ID(packet) = htobe16(42);
#  430|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  431|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:431:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:422:1: enter_function: entry to ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:426:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:427:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:427:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:429:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:430:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:431:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:431:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:431:9: danger: dereference of NULL ‘<unknown>’
#  429|           DNS_PACKET_ID(packet) = htobe16(42);
#  430|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  431|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  432|   
#  433|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "example.com");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:470:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:462:1: enter_function: entry to ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:466:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:467:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:467:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:469:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:470:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:470:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:470:9: danger: dereference of NULL ‘<unknown>’
#  468|   
#  469|           DNS_PACKET_ID(packet) = htobe16(42);
#  470|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  471|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  472|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:471:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:462:1: enter_function: entry to ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:466:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:467:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:467:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:469:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:470:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:471:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:471:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:471:9: danger: dereference of NULL ‘<unknown>’
#  469|           DNS_PACKET_ID(packet) = htobe16(42);
#  470|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  471|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  472|   
#  473|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "example.com");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:507:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:500:1: enter_function: entry to ‘test_packet_patch_max_udp_size’
systemd-258.1/src/resolve/test-dns-packet-append.c:503:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:504:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:504:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:506:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size’
systemd-258.1/src/resolve/test-dns-packet-append.c:507:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size’
systemd-258.1/src/resolve/test-dns-packet-append.c:507:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:507:9: danger: dereference of NULL ‘<unknown>’
#  505|   
#  506|           DNS_PACKET_ID(packet) = htobe16(42);
#  507|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  508|   
#  509|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:537:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:530:1: enter_function: entry to ‘test_packet_patch_max_udp_size_no_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:533:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:534:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:534:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:536:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size_no_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:537:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size_no_opt’
systemd-258.1/src/resolve/test-dns-packet-append.c:537:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:537:9: danger: dereference of NULL ‘<unknown>’
#  535|   
#  536|           DNS_PACKET_ID(packet) = htobe16(42);
#  537|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  538|   
#  539|           ASSERT_FALSE(dns_packet_patch_max_udp_size(packet, 4097));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:573:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:554:1: enter_function: entry to ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:560:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:561:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:565:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:566:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:569:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:570:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:570:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:572:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:573:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:573:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:573:9: danger: dereference of NULL ‘<unknown>’
#  571|   
#  572|           DNS_PACKET_ID(p1) = htobe16(42);
#  573|->         DNS_PACKET_HEADER(p1)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  574|           DNS_PACKET_HEADER(p1)->ancount = htobe16(dns_answer_size(answer));
#  575|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:574:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:554:1: enter_function: entry to ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:560:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:561:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:565:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:566:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:569:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:570:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:570:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:572:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:573:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:574:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:574:42: call_function: inlined call to ‘htobe16’ from ‘test_packet_dup’
systemd-258.1/src/resolve/test-dns-packet-append.c:574:9: danger: dereference of NULL ‘<unknown>’
#  572|           DNS_PACKET_ID(p1) = htobe16(42);
#  573|           DNS_PACKET_HEADER(p1)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  574|->         DNS_PACKET_HEADER(p1)->ancount = htobe16(dns_answer_size(answer));
#  575|   
#  576|           ASSERT_OK(dns_packet_append_answer(p1, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:622:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:603:1: enter_function: entry to ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:609:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:610:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:614:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:615:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:618:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:619:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:619:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:621:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:622:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:622:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:622:9: danger: dereference of NULL ‘<unknown>’
#  620|   
#  621|           DNS_PACKET_ID(packet) = htobe16(42);
#  622|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  623|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  624|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:623:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:603:1: enter_function: entry to ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:609:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:610:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:614:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:615:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:618:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:619:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:619:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:621:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:622:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:623:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:623:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:623:9: danger: dereference of NULL ‘<unknown>’
#  621|           DNS_PACKET_ID(packet) = htobe16(42);
#  622|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  623|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  624|   
#  625|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:664:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:645:1: enter_function: entry to ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:651:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:652:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:656:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:657:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:660:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:661:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:661:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:663:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:664:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:664:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:664:9: danger: dereference of NULL ‘<unknown>’
#  662|   
#  663|           DNS_PACKET_ID(packet) = htobe16(42);
#  664|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  665|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  666|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:665:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:645:1: enter_function: entry to ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:651:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:652:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:656:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:657:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:660:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:661:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:661:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:663:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:664:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:665:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:665:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_ns’
systemd-258.1/src/resolve/test-dns-packet-append.c:665:9: danger: dereference of NULL ‘<unknown>’
#  663|           DNS_PACKET_ID(packet) = htobe16(42);
#  664|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  665|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  666|   
#  667|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:707:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:688:1: enter_function: entry to ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:694:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:695:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:699:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:700:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:703:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:704:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:704:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:706:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:707:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:707:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:707:9: danger: dereference of NULL ‘<unknown>’
#  705|   
#  706|           DNS_PACKET_ID(packet) = htobe16(42);
#  707|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  708|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:708:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:688:1: enter_function: entry to ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:694:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:695:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:699:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:700:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:703:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:704:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:704:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:706:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:707:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:708:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:708:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_cname’
systemd-258.1/src/resolve/test-dns-packet-append.c:708:9: danger: dereference of NULL ‘<unknown>’
#  706|           DNS_PACKET_ID(packet) = htobe16(42);
#  707|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  708|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  709|   
#  710|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:751:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:731:1: enter_function: entry to ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:737:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:738:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:743:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:744:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:747:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:748:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:748:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:750:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:751:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:751:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:751:9: danger: dereference of NULL ‘<unknown>’
#  749|   
#  750|           DNS_PACKET_ID(packet) = htobe16(42);
#  751|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  752|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  753|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:752:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:731:1: enter_function: entry to ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:737:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:738:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:743:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:744:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:747:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:748:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:748:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:750:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:751:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:752:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:752:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_hinfo’
systemd-258.1/src/resolve/test-dns-packet-append.c:752:9: danger: dereference of NULL ‘<unknown>’
#  750|           DNS_PACKET_ID(packet) = htobe16(42);
#  751|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  752|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  753|   
#  754|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:794:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:775:1: enter_function: entry to ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:781:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:782:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:786:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:787:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:790:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:791:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:791:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:793:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:794:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:794:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:794:9: danger: dereference of NULL ‘<unknown>’
#  792|   
#  793|           DNS_PACKET_ID(packet) = htobe16(42);
#  794|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  795|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  796|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:795:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:775:1: enter_function: entry to ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:781:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:782:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:786:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:787:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:790:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:791:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:791:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:793:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:794:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:795:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:795:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_ptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:795:9: danger: dereference of NULL ‘<unknown>’
#  793|           DNS_PACKET_ID(packet) = htobe16(42);
#  794|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  795|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  796|   
#  797|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:843:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:823:1: enter_function: entry to ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:829:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:830:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:836:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:840:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:840:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:842:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:843:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:843:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:843:9: danger: dereference of NULL ‘<unknown>’
#  841|   
#  842|           DNS_PACKET_ID(packet) = htobe16(42);
#  843|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  844|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  845|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:844:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:823:1: enter_function: entry to ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:829:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:830:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:836:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:840:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:840:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:842:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:843:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:844:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:844:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_mx’
systemd-258.1/src/resolve/test-dns-packet-append.c:844:9: danger: dereference of NULL ‘<unknown>’
#  842|           DNS_PACKET_ID(packet) = htobe16(42);
#  843|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  844|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  845|   
#  846|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:880: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  878|           item = calloc(1, offsetof(DnsTxtItem, data) + 3);
#  879|           ASSERT_NOT_NULL(item);
#  880|->         item->length = 2;
#  881|           memcpy(item->data, "hi", 3);
#  882|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:881: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  879|           ASSERT_NOT_NULL(item);
#  880|           item->length = 2;
#  881|->         memcpy(item->data, "hi", 3);
#  882|           LIST_APPEND(items, rr->txt.items, item);
#  883|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:886: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  884|           item = calloc(1, offsetof(DnsTxtItem, data) + 6);
#  885|           ASSERT_NOT_NULL(item);
#  886|->         item->length = 5;
#  887|           memcpy(item->data, "world", 6);
#  888|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  885|           ASSERT_NOT_NULL(item);
#  886|           item->length = 5;
#  887|->         memcpy(item->data, "world", 6);
#  888|           LIST_APPEND(items, rr->txt.items, item);
#  889|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:899:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:868:1: enter_function: entry to ‘test_packet_append_answer_single_txt’
systemd-258.1/src/resolve/test-dns-packet-append.c:875:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:876:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:879:9: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:880:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:882:9: branch_true: following ‘true’ branch (when ‘_item’ is NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:882:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:885:9: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:886:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:888:9: branch_true: following ‘true’ branch (when ‘_item’ is NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:888:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:891:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:892:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_txt’
systemd-258.1/src/resolve/test-dns-packet-append.c:895:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:896:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:896:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:898:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_txt’
systemd-258.1/src/resolve/test-dns-packet-append.c:899:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_txt’
systemd-258.1/src/resolve/test-dns-packet-append.c:899:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:899:9: danger: dereference of NULL ‘<unknown>’
#  897|   
#  898|           DNS_PACKET_ID(packet) = htobe16(42);
#  899|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  900|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  901|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:948:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:923:1: enter_function: entry to ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:929:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:930:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:940:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:941:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:944:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:945:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:945:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:947:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:948:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:948:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:948:9: danger: dereference of NULL ‘<unknown>’
#  946|   
#  947|           DNS_PACKET_ID(packet) = htobe16(42);
#  948|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  949|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  950|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:949:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:923:1: enter_function: entry to ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:929:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:930:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:940:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:941:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:944:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:945:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:945:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:947:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:948:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:949:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:949:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_loc’
systemd-258.1/src/resolve/test-dns-packet-append.c:949:9: danger: dereference of NULL ‘<unknown>’
#  947|           DNS_PACKET_ID(packet) = htobe16(42);
#  948|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  949|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  950|   
#  951|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:999:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:977:1: enter_function: entry to ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:983:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:984:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:991:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:992:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:995:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:996:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:996:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:998:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:999:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:999:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:999:9: danger: dereference of NULL ‘<unknown>’
#  997|   
#  998|           DNS_PACKET_ID(packet) = htobe16(42);
#  999|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1000|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1001|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1000:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:977:1: enter_function: entry to ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:983:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:984:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:991:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:992:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:995:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:996:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:996:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:998:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:999:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:1000:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:1000:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_srv’
systemd-258.1/src/resolve/test-dns-packet-append.c:1000:9: danger: dereference of NULL ‘<unknown>’
#  998|           DNS_PACKET_ID(packet) = htobe16(42);
#  999|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1000|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1001|   
# 1002|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1054:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1030:1: enter_function: entry to ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1036:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1037:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1046:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1047:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1050:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1051:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1051:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:1053:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1054:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1054:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1054:9: danger: dereference of NULL ‘<unknown>’
# 1052|   
# 1053|           DNS_PACKET_ID(packet) = htobe16(42);
# 1054|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1055|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1056|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1055:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1030:1: enter_function: entry to ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1036:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1037:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1046:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1047:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1050:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1051:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1051:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:1053:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1054:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1055:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1055:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_naptr’
systemd-258.1/src/resolve/test-dns-packet-append.c:1055:9: danger: dereference of NULL ‘<unknown>’
# 1053|           DNS_PACKET_ID(packet) = htobe16(42);
# 1054|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1055|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1056|   
# 1057|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1135:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1094:1: enter_function: entry to ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1100:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1102:14: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1103:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1104:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1111:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1112:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1132:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1132:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:1134:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1135:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1135:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1135:9: danger: dereference of NULL ‘<unknown>’
# 1133|   
# 1134|           DNS_PACKET_ID(packet) = htobe16(42);
# 1135|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1136|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1137|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1136:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1094:1: enter_function: entry to ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1100:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1102:14: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1103:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1104:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1111:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1112:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1131:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1132:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1132:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:1134:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1135:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1136:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258.1/src/resolve/test-dns-packet-append.c:1136:9: danger: dereference of NULL ‘<unknown>’
# 1134|           DNS_PACKET_ID(packet) = htobe16(42);
# 1135|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1136|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1137|   
# 1138|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 1178|           ASSERT_NOT_NULL(param);
# 1179|   
# 1180|->         param->key = key;
# 1181|           param->length = len;
# 1182|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 1179|   
# 1180|           param->key = key;
# 1181|->         param->length = len;
# 1182|   
# 1183|           if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1223:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1190:1: enter_function: entry to ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1197:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1198:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1202:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1202:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1203:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1203:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1204:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1204:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1205:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1205:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1207:17: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1207:17: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1211:17: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1211:17: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258.1/src/resolve/test-dns-packet-append.c:1215:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1216:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1219:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1220:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1220:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-append.c:1222:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1223:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_svcb’
systemd-258.1/src/resolve/test-dns-packet-append.c:1223:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1223:9: danger: dereference of NULL ‘<unknown>’
# 1221|   
# 1222|           DNS_PACKET_ID(packet) = htobe16(42);
# 1223|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1224|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1225|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: danger: dereference of NULL ‘<unknown>’
# 1284|           ASSERT_OK(dns_packet_new(&packet, DNS_PROTOCOL_DNS, 0, DNS_PACKET_SIZE_MAX));
# 1285|   
# 1286|->         DNS_PACKET_ID(packet) = htobe16(42);
# 1287|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1287:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1287:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1287:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1287:9: danger: dereference of NULL ‘<unknown>’
# 1285|   
# 1286|           DNS_PACKET_ID(packet) = htobe16(42);
# 1287|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
# 1289|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-append.c:1288:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1287:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1288:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258.1/src/resolve/test-dns-packet-append.c:1288:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-append.c:1288:9: danger: dereference of NULL ‘<unknown>’
# 1286|           DNS_PACKET_ID(packet) = htobe16(42);
# 1287|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
# 1289|   
# 1290|           key = ASSERT_PTR(dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "www.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com"));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:23:1: enter_function: entry to ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:26:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:27:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:27:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:28:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:35:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: danger: dereference of NULL ‘<unknown>’
#   35|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#   36|   
#   37|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#   38|   
#   39|           ASSERT_EQ(DNS_PACKET_QR(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:50:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:23:1: enter_function: entry to ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:26:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:27:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:27:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:28:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:35:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:37:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:39:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:40:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:40:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:41:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:42:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:42:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:43:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:45:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:45:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:46:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:46:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:47:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:47:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:48:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:48:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:50:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:50:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258.1/src/resolve/test-dns-packet-extract.c:50:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:50:9: danger: dereference of NULL ‘<unknown>’
#   48|           ASSERT_EQ(dns_packet_rcode(packet), 0);
#   49|   
#   50|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#   51|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#   52|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:56:1: enter_function: entry to ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:60:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:60:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:61:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: danger: dereference of NULL ‘<unknown>’
#   68|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#   69|   
#   70|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#   71|   
#   72|           ASSERT_EQ(DNS_PACKET_QR(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:83:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:56:1: enter_function: entry to ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:59:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:60:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:60:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:61:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:70:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:72:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:72:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:73:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:73:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:74:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:75:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:75:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:76:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:76:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:78:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:78:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:79:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:79:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:80:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:80:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:81:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:81:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:83:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:83:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258.1/src/resolve/test-dns-packet-extract.c:83:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:83:9: danger: dereference of NULL ‘<unknown>’
#   81|           ASSERT_EQ(dns_packet_rcode(packet), 0);
#   82|   
#   83|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 339);
#   84|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#   85|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:89:1: enter_function: entry to ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:92:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:93:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:93:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:94:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:101:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: danger: dereference of NULL ‘<unknown>’
#  101|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  102|   
#  103|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  104|   
#  105|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:116:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:89:1: enter_function: entry to ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:92:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:93:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:93:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:94:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:101:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:103:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:105:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:106:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:107:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:108:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:108:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:109:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:109:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:111:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:111:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:112:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:112:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:113:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:113:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:114:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:114:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:116:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:116:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:116:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:116:9: danger: dereference of NULL ‘<unknown>’
#  114|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  115|   
#  116|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 3);
#  117|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 4);
#  118|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:122:1: enter_function: entry to ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:125:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:126:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:126:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:127:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:134:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: danger: dereference of NULL ‘<unknown>’
#  134|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  135|   
#  136|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  137|   
#  138|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:149:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:122:1: enter_function: entry to ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:125:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:126:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:126:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:127:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:134:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:136:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:138:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:138:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:139:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:140:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:140:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:141:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:141:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:142:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:144:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:144:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:145:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:146:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:146:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:147:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:147:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:149:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:149:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258.1/src/resolve/test-dns-packet-extract.c:149:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:149:9: danger: dereference of NULL ‘<unknown>’
#  147|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_NXDOMAIN);
#  148|   
#  149|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#  150|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#  151|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:155:1: enter_function: entry to ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:158:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:159:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:159:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:160:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:167:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: danger: dereference of NULL ‘<unknown>’
#  167|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  168|   
#  169|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  170|   
#  171|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:182:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:155:1: enter_function: entry to ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:158:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:159:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:159:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:160:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:167:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:169:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:171:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:171:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:172:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:172:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:173:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:173:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:174:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:174:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:175:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:175:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:177:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:177:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:178:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:178:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:179:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:179:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:180:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:180:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:182:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:182:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258.1/src/resolve/test-dns-packet-extract.c:182:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:182:9: danger: dereference of NULL ‘<unknown>’
#  180|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  181|   
#  182|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1283);
#  183|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 3588);
#  184|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:188:1: enter_function: entry to ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:191:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:192:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:192:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:193:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: danger: dereference of NULL ‘<unknown>’
#  200|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  201|   
#  202|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66u);
#  203|   
#  204|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:215:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:188:1: enter_function: entry to ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:191:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:192:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:192:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:193:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:200:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:202:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:204:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:204:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:205:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:205:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:206:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:206:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:207:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:208:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:208:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:210:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:210:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:211:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:212:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:213:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:213:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:215:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:215:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258.1/src/resolve/test-dns-packet-extract.c:215:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:215:9: danger: dereference of NULL ‘<unknown>’
#  213|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  214|   
#  215|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#  216|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#  217|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 2317);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:221:1: enter_function: entry to ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:225:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:225:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:226:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: danger: dereference of NULL ‘<unknown>’
#  233|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  234|   
#  235|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  236|   
#  237|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:248:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-packet-extract.c:221:1: enter_function: entry to ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:225:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:225:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-packet-extract.c:226:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:235:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:237:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:238:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:238:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:239:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:240:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:240:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:241:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:241:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:243:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:244:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:245:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:245:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:246:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:246:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-packet-extract.c:248:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:248:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258.1/src/resolve/test-dns-packet-extract.c:248:9: branch_true: ...to here
systemd-258.1/src/resolve/test-dns-packet-extract.c:248:9: danger: dereference of NULL ‘<unknown>’
#  246|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  247|   
#  248|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 3);
#  249|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 4);
#  250|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:2492: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2490|           item = calloc(1, offsetof(DnsTxtItem, data) + 3);
# 2491|           ASSERT_NOT_NULL(item);
# 2492|->         item->length = 2;
# 2493|           memcpy(item->data, "hi", 3);
# 2494|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:2493: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2491|           ASSERT_NOT_NULL(item);
# 2492|           item->length = 2;
# 2493|->         memcpy(item->data, "hi", 3);
# 2494|           LIST_APPEND(items, rr->txt.items, item);
# 2495|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:2498: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2496|           item = calloc(1, offsetof(DnsTxtItem, data) + 6);
# 2497|           ASSERT_NOT_NULL(item);
# 2498|->         item->length = 5;
# 2499|           memcpy(item->data, "world", 6);
# 2500|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:2499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2497|           ASSERT_NOT_NULL(item);
# 2498|           item->length = 5;
# 2499|->         memcpy(item->data, "world", 6);
# 2500|           LIST_APPEND(items, rr->txt.items, item);
# 2501|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:3902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 3900|           ASSERT_NOT_NULL(param);
# 3901|   
# 3902|->         param->key = key;
# 3903|           param->length = len;
# 3904|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-packet-extract.c:3903: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 3901|   
# 3902|           param->key = key;
# 3903|->         param->length = len;
# 3904|   
# 3905|           if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-query.c:131:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-query.c:118:1: enter_function: entry to ‘test_dns_query_new_bypass_ok’
systemd-258.1/src/resolve/test-dns-query.c:124:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:125:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:125:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-query.c:127:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:127:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:128:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:128:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-query.c:130:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:130:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:131:54: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:131:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_query_new_bypass_ok’
systemd-258.1/src/resolve/test-dns-query.c:131:46: call_function: inlined call to ‘htobe16’ from ‘test_dns_query_new_bypass_ok’
systemd-258.1/src/resolve/test-dns-query.c:131:9: danger: dereference of NULL ‘<unknown>’
#  129|   
#  130|           ASSERT_OK(dns_packet_append_question(packet, question));
#  131|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  132|           ASSERT_OK(dns_packet_extract(packet));
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-query.c:151:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-dns-query.c:138:1: enter_function: entry to ‘test_dns_query_new_bypass_conflict’
systemd-258.1/src/resolve/test-dns-query.c:144:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:145:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:145:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-query.c:147:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:147:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:148:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:148:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/resolve/test-dns-query.c:150:9: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:150:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-dns-query.c:151:54: branch_false: ...to here
systemd-258.1/src/resolve/test-dns-query.c:151:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_query_new_bypass_conflict’
systemd-258.1/src/resolve/test-dns-query.c:151:46: call_function: inlined call to ‘htobe16’ from ‘test_dns_query_new_bypass_conflict’
systemd-258.1/src/resolve/test-dns-query.c:151:9: danger: dereference of NULL ‘<unknown>’
#  149|   
#  150|           ASSERT_OK(dns_packet_append_question(packet, question));
#  151|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  152|           ASSERT_OK(dns_packet_extract(packet));
#  153|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-rr.c:1368: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1366|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1367|           ASSERT_NOT_NULL(a->txt.items);
# 1368|->         a->txt.items->length = len;
# 1369|           memcpy(a->txt.items->data, data, len);
# 1370|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-rr.c:1386: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1384|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1385|           ASSERT_NOT_NULL(a->txt.items);
# 1386|->         a->txt.items->length = len;
# 1387|           memcpy(a->txt.items->data, data, len);
# 1388|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-rr.c:1406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1404|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1405|           ASSERT_NOT_NULL(a->txt.items);
# 1406|->         a->txt.items->length = len;
# 1407|           memcpy(a->txt.items->data, data, len);
# 1408|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-rr.c:2043: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 2041|           ASSERT_NOT_NULL(param);
# 2042|   
# 2043|->         param->key = key;
# 2044|           param->length = len;
# 2045|   

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/resolve/test-dns-rr.c:2044: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 2042|   
# 2043|           param->key = key;
# 2044|->         param->length = len;
# 2045|   
# 2046|           if (value != NULL)

Error: CPPCHECK_WARNING (CWE-587):
systemd-258.1/src/resolve/test-dns-rr.c:2341: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 2339|           ASSERT_EQ(rr->wire_format_size, sizeof(data));
# 2340|           ASSERT_EQ(rr->wire_format_rdata_offset, 27u);
# 2341|->         ASSERT_EQ(rr->wire_format_canonical, true);
# 2342|   
# 2343|           r = memcmp(rr->wire_format, data, sizeof(data));

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-resolved-dummy-server.c:54:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:24:12: enter_function: entry to ‘server_recv’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:44:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:46:14: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:47:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:50:13: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:51:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:54:15: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:54:15: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘server_recv’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:54:15: branch_true: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:54:15: danger: dereference of NULL ‘p’
#   52|                   return r;
#   53|   
#   54|->         iov = IOVEC_MAKE(DNS_PACKET_DATA(p), p->allocated);
#   55|   
#   56|           l = recvmsg_safe(fd, &mh, 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:178:12: enter_function: entry to ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:182:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:185:53: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:186:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:189:13: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:190:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:36: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:36: branch_true: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:9: danger: dereference of NULL ‘<unknown>’
#  191|                   return r;
#  192|   
#  193|->         DNS_PACKET_HEADER(p)->id = DNS_PACKET_ID(packet);
#  194|           DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(packet->question));
#  195|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-resolved-dummy-server.c:194:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:178:12: enter_function: entry to ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:182:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:185:53: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:186:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:189:13: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:190:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:36: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:193:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:194:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:194:41: call_function: inlined call to ‘htobe16’ from ‘make_reply_packet’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:194:9: danger: dereference of NULL ‘<unknown>’
#  192|   
#  193|           DNS_PACKET_HEADER(p)->id = DNS_PACKET_ID(packet);
#  194|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(packet->question));
#  195|   
#  196|           *ret = TAKE_PTR(p);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-resolved-dummy-server.c:325:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:321:13: enter_function: entry to ‘server_fail’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:322:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-dummy-server.c:325:51: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘server_fail’
systemd-258.1/src/resolve/test-resolved-dummy-server.c:325:51: branch_true: ...to here
systemd-258.1/src/resolve/test-resolved-dummy-server.c:325:51: danger: dereference of NULL ‘<unknown>’
#  323|   
#  324|           /* Order: qr, opcode, aa, tc, rd, ra, ad, cd, rcode */
#  325|->         DNS_PACKET_HEADER(reply)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
#  326|                                                   1, 0, 0, 0, DNS_PACKET_RD(packet), 1, 0, 1, rcode));
#  327|   }

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/resolve/test-resolved-packet.c:209:9: warning[-Wanalyzer-null-argument]: use of NULL ‘joined’ where non-null expected
systemd-258.1/src/resolve/test-resolved-packet.c:182:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-packet.c:184:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-packet.c:184:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-packet.c:185:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-packet.c:185:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-packet.c:187:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-packet.c:190:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-packet.c:192:60: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-packet.c:193:30: release_memory: ‘joined’ is NULL
systemd-258.1/src/resolve/test-resolved-packet.c:209:9: release_memory: ‘joined’ is NULL
systemd-258.1/src/resolve/test-resolved-packet.c:209:9: release_memory: ‘joined’ is NULL
systemd-258.1/src/resolve/test-resolved-packet.c:209:9: danger: argument 1 (‘joined’) NULL where non-null expected
#  207|           }
#  208|   
#  209|->         assert(streq(joined, twilio_reply_string));
#  210|   
#  211|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *parsed = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/resolve/test-resolved-stream.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/resolve/test-resolved-stream.c:179:13: enter_function: entry to ‘send_simple_question’
systemd-258.1/src/resolve/test-resolved-stream.c:184:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-stream.c:185:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-stream.c:185:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-stream.c:186:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-stream.c:186:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-stream.c:187:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-stream.c:187:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-stream.c:188:9: branch_false: ...to here
systemd-258.1/src/resolve/test-resolved-stream.c:188:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/test-resolved-stream.c:189:49: call_function: inlined call to ‘dns_question_size’ from ‘send_simple_question’
systemd-258.1/src/resolve/test-resolved-stream.c:189:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘send_simple_question’
systemd-258.1/src/resolve/test-resolved-stream.c:189:41: call_function: inlined call to ‘htobe16’ from ‘send_simple_question’
systemd-258.1/src/resolve/test-resolved-stream.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           assert_se(dns_question_add(question, key, 0) >= 0);
#  188|           assert_se(dns_packet_append_question(p, question) >= 0);
#  189|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(question));
#  190|           assert_se(dns_stream_write_packet(stream, p) >= 0);
#  191|   }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/rfkill/rfkill.c:265:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘c.rfkill_fd’
systemd-258.1/src/rfkill/rfkill.c:377:1: enter_function: entry to ‘main’
systemd-258.1/src/rfkill/rfkill.c:377:1: call_function: calling ‘run’ from ‘main’
#  263|           }
#  264|   
#  265|->         safe_close(c->rfkill_fd);
#  266|   }
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/acl-util.c:568:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘entry’
systemd-258.1/src/shared/acl-util.c:540:5: enter_function: entry to ‘fd_add_uid_acl_permission’
systemd-258.1/src/shared/acl-util.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/acl-util.c:554:9: branch_false: ...to here
systemd-258.1/src/shared/acl-util.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/acl-util.c:556:15: branch_false: ...to here
systemd-258.1/src/shared/acl-util.c:557:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/acl-util.c:560:13: branch_false: ...to here
systemd-258.1/src/shared/acl-util.c:560:13: call_function: calling ‘acl_find_uid’ from ‘fd_add_uid_acl_permission’
systemd-258.1/src/shared/acl-util.c:560:13: return_function: returning to ‘fd_add_uid_acl_permission’ from ‘acl_find_uid’
systemd-258.1/src/shared/acl-util.c:561:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/acl-util.c:568:13: branch_false: ...to here
systemd-258.1/src/shared/acl-util.c:568:13: danger: use of uninitialized value ‘entry’ here
#  566|           }
#  567|   
#  568|->         if (acl_get_permset(entry, &permset) < 0)
#  569|                   return -errno;
#  570|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/base-filesystem.c:196:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r’
systemd-258.1/src/shared/base-filesystem.c:144:5: enter_function: entry to ‘base_filesystem_create_fd’
systemd-258.1/src/shared/base-filesystem.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/base-filesystem.c:149:9: branch_false: ...to here
systemd-258.1/src/shared/base-filesystem.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/base-filesystem.c:153:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/base-filesystem.c:154:21: branch_true: ...to here
systemd-258.1/src/shared/base-filesystem.c:154:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/base-filesystem.c:157:35: branch_false: ...to here
systemd-258.1/src/shared/base-filesystem.c:153:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/base-filesystem.c:154:21: branch_true: ...to here
systemd-258.1/src/shared/base-filesystem.c:157:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/base-filesystem.c:160:21: branch_false: ...to here
systemd-258.1/src/shared/base-filesystem.c:163:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/base-filesystem.c:193:25: branch_false: ...to here
systemd-258.1/src/shared/base-filesystem.c:193:25: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/base-filesystem.c:193:25: call_function: inlined call to ‘umaskp’ from ‘base_filesystem_create_fd’
systemd-258.1/src/shared/base-filesystem.c:196:20: danger: use of uninitialized value ‘r’ here
#  194|                                   r = RET_NERRNO(mkdirat(fd, i->dir, i->mode));
#  195|                   }
#  196|->                 if (r < 0) {
#  197|                           bool ignore = IN_SET(r, -EEXIST, -EROFS) || FLAGS_SET(i->flags, BASE_FILESYSTEM_IGNORE_ON_FAILURE);
#  198|                           log_full_errno(ignore ? LOG_DEBUG : LOG_ERR, r,

Error: CPPCHECK_WARNING (CWE-672):
systemd-258.1/src/shared/bitmap.c:37: error[deallocret]: Returning/dereferencing 'ret' after it is deallocated / released
#   35|   
#   36|           ret->n_bitmaps = b->n_bitmaps;
#   37|->         return ret;
#   38|   }
#   39|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/blockdev-util.c:163:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devnum’
systemd-258.1/src/shared/blockdev-util.c:151:5: enter_function: entry to ‘block_device_new_from_fd’
systemd-258.1/src/shared/blockdev-util.c:156:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:157:9: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:157:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:159:13: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:159:13: call_function: calling ‘fd_get_devnum’ from ‘block_device_new_from_fd’
systemd-258.1/src/shared/blockdev-util.c:159:13: return_function: returning to ‘block_device_new_from_fd’ from ‘fd_get_devnum’
systemd-258.1/src/shared/blockdev-util.c:160:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:163:13: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:163:13: danger: use of uninitialized value ‘devnum’ here
#  161|                   return r;
#  162|   
#  163|->         r = sd_device_new_from_devnum(&dev, 'b', devnum);
#  164|           if (r < 0)
#  165|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/blockdev-util.c:323:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ret’
systemd-258.1/src/shared/blockdev-util.c:852:5: enter_function: entry to ‘blockdev_get_root’
systemd-258.1/src/shared/blockdev-util.c:864:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/blockdev-util.c:865:21: branch_true: ...to here
systemd-258.1/src/shared/blockdev-util.c:865:21: call_function: calling ‘get_block_device_harder’ from ‘blockdev_get_root’
#  321|                   return r;
#  322|   
#  323|->         r = block_get_originating(*ret, ret);
#  324|           if (r < 0)
#  325|                   log_debug_errno(r, "Failed to chase block device, ignoring: %m");

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/blockdev-util.c:354:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘whole_devt’
systemd-258.1/src/shared/blockdev-util.c:343:5: enter_function: entry to ‘lock_whole_block_device’
systemd-258.1/src/shared/blockdev-util.c:350:13: call_function: calling ‘block_get_whole_disk’ from ‘lock_whole_block_device’
systemd-258.1/src/shared/blockdev-util.c:350:13: return_function: returning to ‘lock_whole_block_device’ from ‘block_get_whole_disk’
systemd-258.1/src/shared/blockdev-util.c:351:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:354:23: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:354:23: danger: use of uninitialized value ‘whole_devt’ here
#  352|                   return r;
#  353|   
#  354|->         lock_fd = r = device_open_from_devnum(S_IFBLK, whole_devt, O_RDONLY|O_CLOEXEC|O_NONBLOCK, NULL);
#  355|           if (r < 0)
#  356|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/blockdev-util.c:557:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devt’
systemd-258.1/src/shared/blockdev-util.c:546:5: enter_function: entry to ‘fd_is_encrypted’
systemd-258.1/src/shared/blockdev-util.c:551:13: call_function: calling ‘get_block_device_fd’ from ‘fd_is_encrypted’
systemd-258.1/src/shared/blockdev-util.c:551:13: return_function: returning to ‘fd_is_encrypted’ from ‘get_block_device_fd’
systemd-258.1/src/shared/blockdev-util.c:552:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:554:12: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:554:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:557:9: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:557:9: danger: use of uninitialized value ‘devt’ here
#  555|                   return false;
#  556|   
#  557|->         xsprintf_sys_block_path(p, NULL, devt);
#  558|   
#  559|           return blockdev_is_encrypted(p, 10 /* safety net: maximum recursion depth */);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/blockdev-util.c:589:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devt’
systemd-258.1/src/shared/blockdev-util.c:578:5: enter_function: entry to ‘fd_get_whole_disk’
systemd-258.1/src/shared/blockdev-util.c:582:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:583:9: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:583:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:585:13: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:585:13: call_function: calling ‘fd_get_devnum’ from ‘fd_get_whole_disk’
systemd-258.1/src/shared/blockdev-util.c:585:13: return_function: returning to ‘fd_get_whole_disk’ from ‘fd_get_devnum’
systemd-258.1/src/shared/blockdev-util.c:586:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/blockdev-util.c:589:16: branch_false: ...to here
systemd-258.1/src/shared/blockdev-util.c:589:16: danger: use of uninitialized value ‘devt’ here
#  587|                   return r;
#  588|   
#  589|->         return block_get_whole_disk(devt, ret);
#  590|   }
#  591|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bootspec.c:1627:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f")’
systemd-258.1/src/shared/bootspec.c:1572:5: enter_function: entry to ‘boot_config_augment_from_loader’
systemd-258.1/src/shared/bootspec.c:1590:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1595:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bootspec.c:1599:28: call_function: calling ‘boot_config_find_entry’ from ‘boot_config_augment_from_loader’
systemd-258.1/src/shared/bootspec.c:1599:28: return_function: returning to ‘boot_config_augment_from_loader’ from ‘boot_config_find_entry’
systemd-258.1/src/shared/bootspec.c:1600:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1605:20: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1609:20: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1612:17: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bootspec.c:1613:28: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/shared/bootspec.c:1614:37: branch_true: ...to here
systemd-258.1/src/shared/bootspec.c:1615:36: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1620:21: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1620:21: acquire_memory: allocated here
systemd-258.1/src/shared/bootspec.c:1621:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1624:22: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1624:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1627:17: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1627:17: danger: ‘strdup("/sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
# 1625|                           return log_oom();
# 1626|   
# 1627|->                 config->entries[config->n_entries++] = (BootEntry) {
# 1628|                           .type = startswith(*i, "auto-") ? BOOT_ENTRY_AUTO : BOOT_ENTRY_LOADER,
# 1629|                           .id = TAKE_PTR(c),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bootspec.c:1627:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*__unique_prefix_i34)’
systemd-258.1/src/shared/bootspec.c:1572:5: enter_function: entry to ‘boot_config_augment_from_loader’
systemd-258.1/src/shared/bootspec.c:1590:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1595:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bootspec.c:1599:28: call_function: calling ‘boot_config_find_entry’ from ‘boot_config_augment_from_loader’
systemd-258.1/src/shared/bootspec.c:1599:28: return_function: returning to ‘boot_config_augment_from_loader’ from ‘boot_config_find_entry’
systemd-258.1/src/shared/bootspec.c:1600:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1605:20: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1608:21: acquire_memory: allocated here
systemd-258.1/src/shared/bootspec.c:1609:20: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1612:17: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bootspec.c:1613:28: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258.1/src/shared/bootspec.c:1614:37: branch_true: ...to here
systemd-258.1/src/shared/bootspec.c:1615:36: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1620:21: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1621:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1624:22: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1624:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1627:17: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1627:17: danger: ‘strdup(*__unique_prefix_i34)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
# 1625|                           return log_oom();
# 1626|   
# 1627|->                 config->entries[config->n_entries++] = (BootEntry) {
# 1628|                           .type = startswith(*i, "auto-") ? BOOT_ENTRY_AUTO : BOOT_ENTRY_LOADER,
# 1629|                           .id = TAKE_PTR(c),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bootspec.c:1753:1: warning[-Wanalyzer-malloc-leak]: leak of ‘t2’
systemd-258.1/src/shared/bootspec.c:1707:12: enter_function: entry to ‘print_cmdline’
systemd-258.1/src/shared/bootspec.c:1711:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1713:27: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1717:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1720:21: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1720:21: call_function: calling ‘indent_embedded_newlines’ from ‘print_cmdline’
systemd-258.1/src/shared/bootspec.c:1720:21: return_function: returning to ‘print_cmdline’ from ‘indent_embedded_newlines’
systemd-258.1/src/shared/bootspec.c:1720:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1723:17: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1724:22: acquire_memory: allocated here
systemd-258.1/src/shared/bootspec.c:1725:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1714:38: call_function: inlined call to ‘freep’ from ‘print_cmdline’
systemd-258.1/src/shared/bootspec.c:1729:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1735:9: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1735:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1743:13: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1743:13: call_function: inlined call to ‘streq_ptr’ from ‘print_cmdline’
systemd-258.1/src/shared/bootspec.c:1743:13: call_function: inlined call to ‘streq_ptr’ from ‘print_cmdline’
systemd-258.1/src/shared/bootspec.c:1743:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/bootspec.c:1753:1: danger: ‘t2’ leaks here; was allocated at [(26)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/25)
# 1751|   
# 1752|           return 0;
# 1753|-> }
# 1754|   
# 1755|   static int json_addon(

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bootspec.c:1815:1: warning[-Wanalyzer-malloc-leak]: leak of ‘combined_cmdline’
systemd-258.1/src/shared/bootspec.c:1928:5: enter_function: entry to ‘boot_entry_to_json’
systemd-258.1/src/shared/bootspec.c:1934:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1935:9: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1935:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1937:18: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1937:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1942:13: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1946:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1950:13: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1950:13: call_function: calling ‘boot_entry_title’ from ‘boot_entry_to_json’
systemd-258.1/src/shared/bootspec.c:1950:13: return_function: returning to ‘boot_entry_to_json’ from ‘boot_entry_title’
systemd-258.1/src/shared/bootspec.c:1950:13: call_function: calling ‘boot_entry_title’ from ‘boot_entry_to_json’
systemd-258.1/src/shared/bootspec.c:1950:13: return_function: returning to ‘boot_entry_to_json’ from ‘boot_entry_title’
systemd-258.1/src/shared/bootspec.c:1968:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1974:13: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1983:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bootspec.c:1986:13: branch_false: ...to here
systemd-258.1/src/shared/bootspec.c:1986:13: call_function: calling ‘json_cmdline’ from ‘boot_entry_to_json’
# 1813|                   return log_oom();
# 1814|           return 0;
# 1815|-> }
# 1816|   
# 1817|   int show_boot_entry(

Error: COMPILER_WARNING:
systemd-258.1/src/shared/bpf-program.c:5:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    3|   #include <fcntl.h>
#    4|   #include <linux/bpf.h>
#    5|-> #include <linux/bpf_insn.h>
#    6|   #include <sys/bpf.h>
#    7|   #include <unistd.h>

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/btrfs-util.c:233:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sh.objectid’
systemd-258.1/src/shared/btrfs-util.c:1911:12: enter_function: entry to ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1931:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:1932:9: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1932:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1934:16: call_function: calling ‘btrfs_ioctl_search_args_compare’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1934:16: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_compare’
systemd-258.1/src/shared/btrfs-util.c:1934:16: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/btrfs-util.c:1935:50: branch_true: ...to here
systemd-258.1/src/shared/btrfs-util.c:1940:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:1943:21: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1943:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:1946:17: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1946:17: call_function: calling ‘btrfs_iterate’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1946:17: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_iterate’
systemd-258.1/src/shared/btrfs-util.c:1988:22: call_function: calling ‘btrfs_ioctl_search_args_inc’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1988:22: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_inc’
systemd-258.1/src/shared/btrfs-util.c:1988:20: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/btrfs-util.c:1934:16: call_function: calling ‘btrfs_ioctl_search_args_compare’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1934:16: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_compare’
systemd-258.1/src/shared/btrfs-util.c:1934:16: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/btrfs-util.c:1935:50: branch_true: ...to here
systemd-258.1/src/shared/btrfs-util.c:1940:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:1943:21: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1943:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:1946:17: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:1946:17: call_function: calling ‘btrfs_iterate’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:1946:17: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_iterate’
systemd-258.1/src/shared/btrfs-util.c:1949:25: call_function: inlined call to ‘btrfs_ioctl_search_args_set’ from ‘btrfs_read_chunk_tree_fd’
#  231|           assert(h);
#  232|   
#  233|->         args->key.min_objectid = h->objectid;
#  234|           args->key.min_type = h->type;
#  235|           args->key.min_offset = h->offset;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/btrfs-util.c:2088:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘subvol_id’
systemd-258.1/src/shared/btrfs-util.c:2045:5: enter_function: entry to ‘btrfs_get_file_physical_offset_fd’
systemd-258.1/src/shared/btrfs-util.c:2063:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2064:9: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2064:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2066:13: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2066:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2069:13: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2070:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2073:13: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2073:13: call_function: calling ‘btrfs_is_nocow_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258.1/src/shared/btrfs-util.c:2073:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_is_nocow_fd’
systemd-258.1/src/shared/btrfs-util.c:2074:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2076:12: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2076:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2080:13: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2080:13: call_function: calling ‘btrfs_subvol_get_id_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258.1/src/shared/btrfs-util.c:2080:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_subvol_get_id_fd’
systemd-258.1/src/shared/btrfs-util.c:2081:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2084:13: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2084:13: call_function: calling ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258.1/src/shared/btrfs-util.c:2084:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_read_chunk_tree_fd’
systemd-258.1/src/shared/btrfs-util.c:2085:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/btrfs-util.c:2088:9: branch_false: ...to here
systemd-258.1/src/shared/btrfs-util.c:2088:9: danger: use of uninitialized value ‘subvol_id’ here
# 2086|                   return r;
# 2087|   
# 2088|->         search_args.key.tree_id = subvol_id;
# 2089|           search_args.key.min_objectid = search_args.key.max_objectid = st.st_ino;
# 2090|   

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/bus-locator.c:108:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/bus-locator.c:105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-locator.c:107:9: branch_false: ...to here
systemd-258.1/src/shared/bus-locator.c:107:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/bus-locator.c:108:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  106|   
#  107|           va_start(ap, types);
#  108|->         r = sd_bus_call_method_asyncv(bus, ret_slot, locator->destination, locator->path, locator->interface, member, callback, userdata, types, ap);
#  109|           va_end(ap);
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/bus-locator.c:128:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/bus-locator.c:125:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-locator.c:127:9: branch_false: ...to here
systemd-258.1/src/shared/bus-locator.c:127:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/bus-locator.c:128:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  126|   
#  127|           va_start(ap, types);
#  128|->         r = sd_bus_call_methodv(bus, locator->destination, locator->path, locator->interface, member, reterr_error, ret_reply, types, ap);
#  129|           va_end(ap);
#  130|   

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/bus-locator.c:197:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/bus-locator.c:194:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-locator.c:196:9: branch_false: ...to here
systemd-258.1/src/shared/bus-locator.c:196:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/bus-locator.c:197:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  195|   
#  196|           va_start(ap, type);
#  197|->         r = sd_bus_set_propertyv(bus, locator->destination, locator->path, locator->interface, member, reterr_error, type, ap);
#  198|           va_end(ap);
#  199|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/bus-message-util.c:99:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘family’
systemd-258.1/src/shared/bus-message-util.c:84:5: enter_function: entry to ‘bus_message_read_in_addr_auto’
systemd-258.1/src/shared/bus-message-util.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:91:13: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:91:13: call_function: calling ‘bus_message_read_family’ from ‘bus_message_read_in_addr_auto’
systemd-258.1/src/shared/bus-message-util.c:91:13: return_function: returning to ‘bus_message_read_in_addr_auto’ from ‘bus_message_read_family’
systemd-258.1/src/shared/bus-message-util.c:92:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:95:13: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:96:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:99:19: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:99:19: danger: use of uninitialized value ‘family’ here
#   97|                   return r;
#   98|   
#   99|->         if (sz != FAMILY_ADDRESS_SIZE(family))
#  100|                   return sd_bus_error_set(reterr_error, SD_BUS_ERROR_INVALID_ARGS, "Invalid address size");
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/bus-message-util.c:136:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘family’
systemd-258.1/src/shared/bus-message-util.c:109:12: enter_function: entry to ‘bus_message_read_dns_one’
systemd-258.1/src/shared/bus-message-util.c:122:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:123:9: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:123:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:124:9: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:124:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:125:9: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:125:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:126:9: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:126:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:128:13: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:129:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:132:13: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:132:13: call_function: calling ‘bus_message_read_in_addr_auto’ from ‘bus_message_read_dns_one’
systemd-258.1/src/shared/bus-message-util.c:132:13: return_function: returning to ‘bus_message_read_dns_one’ from ‘bus_message_read_in_addr_auto’
systemd-258.1/src/shared/bus-message-util.c:133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-message-util.c:136:14: branch_false: ...to here
systemd-258.1/src/shared/bus-message-util.c:136:14: danger: use of uninitialized value ‘family’ here
#  134|                   return r;
#  135|   
#  136|->         if (!dns_server_address_valid(family, &a)) {
#  137|                   r = sd_bus_error_set(reterr_error, SD_BUS_ERROR_INVALID_ARGS, "Invalid DNS server address");
#  138|                   assert(r < 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-unit-procs.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258.1/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:368:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:376:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:378:20: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:378:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:381:21: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:381:21: call_function: calling ‘add_process’ from ‘unit_show_processes’
#   77|           cg->parent = parent;
#   78|   
#   79|->         r = hashmap_put(cgroups, cg->cgroup_path, cg);
#   80|           if (r < 0) {
#   81|                   if (!is_const)

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-unit-procs.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cg’
systemd-258.1/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258.1/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:368:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:376:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:378:20: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:378:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:381:21: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:381:21: call_function: calling ‘add_process’ from ‘unit_show_processes’
#   77|           cg->parent = parent;
#   78|   
#   79|->         r = hashmap_put(cgroups, cg->cgroup_path, cg);
#   80|           if (r < 0) {
#   81|                   if (!is_const)

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/shared/bus-unit-procs.c:120:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cg’
systemd-258.1/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258.1/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:406:16: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:407:16: branch_true: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:407:16: call_function: calling ‘remove_cgroup’ from ‘unit_show_processes’
#  118|           assert(cg);
#  119|   
#  120|->         while (cg->children)
#  121|                   remove_cgroup(cgroups, cg->children);
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-415):
systemd-258.1/src/shared/bus-unit-procs.c:126:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*cg.cgroup_path’
systemd-258.1/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258.1/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:406:16: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bus-unit-procs.c:407:16: branch_true: ...to here
systemd-258.1/src/shared/bus-unit-procs.c:407:16: call_function: calling ‘remove_cgroup’ from ‘unit_show_processes’
#  124|   
#  125|           if (!cg->is_const)
#  126|->                 free(cg->cgroup_path);
#  127|   
#  128|           hashmap_free(cg->pids);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-wait-for-units.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
systemd-258.1/src/shared/bus-wait-for-units.c:279:5: enter_function: entry to ‘bus_wait_for_units_add_unit’
systemd-258.1/src/shared/bus-wait-for-units.c:290:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:291:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:291:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:292:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:292:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:294:20: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:295:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:298:13: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:298:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:301:16: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_add_unit’
systemd-258.1/src/shared/bus-wait-for-units.c:302:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:305:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:313:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:314:21: branch_true: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:286:53: call_function: inlined call to ‘wait_for_item_freep’ from ‘bus_wait_for_units_add_unit’
#   66|           }
#   67|   
#   68|->         sd_bus_slot_unref(item->slot_properties_changed);
#   69|           sd_bus_slot_unref(item->slot_get_all);
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-wait-for-units.c:69:9: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
systemd-258.1/src/shared/bus-wait-for-units.c:279:5: enter_function: entry to ‘bus_wait_for_units_add_unit’
systemd-258.1/src/shared/bus-wait-for-units.c:290:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:291:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:291:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:292:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:292:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:294:20: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:295:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:298:13: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:298:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:301:16: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_add_unit’
systemd-258.1/src/shared/bus-wait-for-units.c:302:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:305:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:313:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:314:21: branch_true: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:286:53: call_function: inlined call to ‘wait_for_item_freep’ from ‘bus_wait_for_units_add_unit’
#   67|   
#   68|           sd_bus_slot_unref(item->slot_properties_changed);
#   69|->         sd_bus_slot_unref(item->slot_get_all);
#   70|   
#   71|           free(item->bus_path);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-wait-for-units.c:83:17: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258.1/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   81|   static void call_unit_callback_and_wait(BusWaitForUnits *d, WaitForItem *item, bool good) {
#   82|           if (item->unit_callback)
#   83|->                 item->unit_callback(d, item->bus_path, good, item->userdata);
#   84|   
#   85|           wait_for_item_free(item);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-wait-for-units.c:93:32: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258.1/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   91|           assert(d);
#   92|   
#   93|->         d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|           d->bus = sd_bus_unref(d->bus);
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/bus-wait-for-units.c:93:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*d.slot_disconnected’
systemd-258.1/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   91|           assert(d);
#   92|   
#   93|->         d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|           d->bus = sd_bus_unref(d->bus);
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/bus-wait-for-units.c:94:18: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258.1/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258.1/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258.1/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   92|   
#   93|           d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|->         d->bus = sd_bus_unref(d->bus);
#   95|   
#   96|           while ((item = hashmap_first(d->items)))

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/shared/conf-parser.c:355:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
systemd-258.1/src/shared/conf-parser.c:482:12: enter_function: entry to ‘config_parse_many_files’
systemd-258.1/src/shared/conf-parser.c:499:12: branch_true: following ‘true’ branch (when ‘ret_stats_by_path’ is non-NULL)...
systemd-258.1/src/shared/conf-parser.c:500:33: branch_true: ...to here
systemd-258.1/src/shared/conf-parser.c:501:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:505:9: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:541:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/conf-parser.c:545:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:547:20: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:547:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:550:21: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:550:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:560:21: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:560:21: call_function: calling ‘config_parse’ from ‘config_parse_many_files’
#  353|   
#  354|                   l = skip_leading_chars(buf, WHITESPACE);
#  355|->                 if (*l != '\0' && strchr(COMMENTS, *l))
#  356|                           continue;
#  357|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/conf-parser.c:476:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
systemd-258.1/src/shared/conf-parser.c:671:12: enter_function: entry to ‘dropins_get_stats_by_path’
systemd-258.1/src/shared/conf-parser.c:680:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:681:9: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:681:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:682:9: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:682:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:684:13: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:685:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:687:12: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:687:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:690:14: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:690:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:693:13: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:694:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:697:9: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:697:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/conf-parser.c:700:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/conf-parser.c:707:21: branch_false: ...to here
systemd-258.1/src/shared/conf-parser.c:707:21: call_function: calling ‘hashmap_put_stats_by_path’ from ‘dropins_get_stats_by_path’
#  474|                   return r;
#  475|   
#  476|->         assert(r > 0);
#  477|           TAKE_PTR(path_copy);
#  478|           TAKE_PTR(st_copy);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/network/netdev/macsec.c:142:12: enter_function: entry to ‘macsec_receive_channel_new_static’
systemd-258.1/src/network/netdev/macsec.c:147:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:148:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:149:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:149:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:150:9: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:150:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:152:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:153:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:156:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:157:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:162:13: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:162:13: call_function: calling ‘macsec_receive_channel_new’ from ‘macsec_receive_channel_new_static’
systemd-258.1/src/network/netdev/macsec.c:162:13: return_function: returning to ‘macsec_receive_channel_new_static’ from ‘macsec_receive_channel_new’
systemd-258.1/src/network/netdev/macsec.c:163:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/netdev/macsec.c:166:22: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:144:65: call_function: inlined call to ‘macsec_receive_channel_freep’ from ‘macsec_receive_channel_new_static’
systemd-258.1/src/network/netdev/macsec.c:143:56: call_function: inlined call to ‘config_section_freep’ from ‘macsec_receive_channel_new_static’
<unknown>: branch_false: ...to here
systemd-258.1/src/network/netdev/macsec.c:143:56: call_function: inlined call to ‘config_section_freep’ from ‘macsec_receive_channel_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘neighbor’
systemd-258.1/src/network/networkd-neighbor.c:99:12: enter_function: entry to ‘neighbor_new_static’
systemd-258.1/src/network/networkd-neighbor.c:104:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:105:9: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:105:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:106:9: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:106:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:107:9: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:107:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:109:13: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:110:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:113:20: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:114:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:119:13: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:119:13: call_function: calling ‘neighbor_new’ from ‘neighbor_new_static’
systemd-258.1/src/network/networkd-neighbor.c:119:13: return_function: returning to ‘neighbor_new_static’ from ‘neighbor_new’
systemd-258.1/src/network/networkd-neighbor.c:120:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-neighbor.c:123:17: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:101:46: call_function: inlined call to ‘neighbor_unrefp’ from ‘neighbor_new_static’
systemd-258.1/src/network/networkd-neighbor.c:100:56: call_function: inlined call to ‘config_section_freep’ from ‘neighbor_new_static’
<unknown>: branch_false: ...to here
systemd-258.1/src/network/networkd-neighbor.c:100:56: call_function: inlined call to ‘config_section_freep’ from ‘neighbor_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘static_lease’
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:43:12: enter_function: entry to ‘lease_new_static’
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:48:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:49:9: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:50:9: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:50:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:51:9: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:51:9: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:53:13: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:54:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:57:24: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:58:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:63:13: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:63:13: call_function: calling ‘dhcp_static_lease_new’ from ‘lease_new_static’
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:63:13: return_function: returning to ‘lease_new_static’ from ‘dhcp_static_lease_new’
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:64:12: branch_false: following ‘false’ branch...
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:67:21: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:45:61: call_function: inlined call to ‘dhcp_static_lease_freep’ from ‘lease_new_static’
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:44:56: call_function: inlined call to ‘config_section_freep’ from ‘lease_new_static’
<unknown>: branch_false: ...to here
systemd-258.1/src/network/networkd-dhcp-server-static-lease.c:44:56: call_function: inlined call to ‘config_section_freep’ from ‘lease_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/cpu-set-util.c:69: warning[uninitvar]: Uninitialized variable: end
#   67|           }
#   68|   
#   69|->         if (in_range && add_range(&str, start, end) < 0)
#   70|                   return NULL;
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/creds-util.c:601:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(l + 1)’
systemd-258.1/src/shared/creds-util.c:451:5: enter_function: entry to ‘get_credential_host_secret’
systemd-258.1/src/shared/creds-util.c:459:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:462:25: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:463:12: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
systemd-258.1/src/shared/creds-util.c:485:9: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:485:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:487:9: call_function: inlined call to ‘mkdir_parents’ from ‘get_credential_host_secret’
systemd-258.1/src/shared/creds-util.c:489:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:492:13: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:508:20: branch_false: following ‘false’ branch (when ‘attempt != 3’)...
systemd-258.1/src/shared/creds-util.c:512:22: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:513:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:530:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:530:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:533:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:534:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:536:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:538:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:543:22: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:543:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:548:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:549:20: branch_false: following ‘false’ branch (when ‘l > 16’)...
systemd-258.1/src/shared/creds-util.c:552:20: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:552:20: branch_false: following ‘false’ branch (when ‘l <= 16777216’)...
systemd-258.1/src/shared/creds-util.c:556:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:556:21: acquire_memory: allocated here
systemd-258.1/src/shared/creds-util.c:557:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:560:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:561:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:564:20: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:564:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:568:21: call_function: inlined call to ‘sd_id128_equal’ from ‘get_credential_host_secret’
systemd-258.1/src/shared/creds-util.c:594:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:599:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:599:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:601:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:601:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:603:20: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:603:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:607:21: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:607:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:503:37: call_function: inlined call to ‘closep’ from ‘get_credential_host_secret’
systemd-258.1/src/shared/creds-util.c:502:82: call_function: inlined call to ‘erase_and_freep’ from ‘get_credential_host_secret’
systemd-258.1/src/shared/creds-util.c:601:21: danger: ‘malloc(l + 1)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/26)
#  599|                   if (fstat(fd, &st) < 0)
#  600|                           return log_debug_errno(errno, "Failed to stat %s/%s: %m", dirname, filename);
#  601|->                 if (st.st_nlink == 0) /* Already deleted by now? */
#  602|                           continue;
#  603|                   if (st.st_nlink != 1) /* Safety check, someone is playing games with us */

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}})' depends on order of evaluation [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation of side effects
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation [...]
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,
systemd-258.1/src/shared/creds-util.c:858: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}})' depends on order of evaluation of side effects
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258.1/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258.1/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258.1/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258.1/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258.1/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:882: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  880|                                   CREDENTIAL_SECRET_GENERATE|
#  881|                                   CREDENTIAL_SECRET_WARN_NOT_ENCRYPTED|
#  882|->                                 (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED) ? CREDENTIAL_SECRET_FAIL_ON_TEMPORARY_FS : 0),
#  883|                                   &host_key);
#  884|                   if (r == -ENOMEDIUM && sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:884: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  882|                                   (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED) ? CREDENTIAL_SECRET_FAIL_ON_TEMPORARY_FS : 0),
#  883|                                   &host_key);
#  884|->                 if (r == -ENOMEDIUM && sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))
#  885|                           log_debug_errno(r, "Credential host secret location on temporary file system, not using.");
#  886|                   else if (r < 0)

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:892: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  890|   #if HAVE_TPM2
#  891|           bool try_tpm2;
#  892|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
#  893|                   /* If automatic mode is selected lets see if a TPM2 it is present. If we are running in a
#  894|                    * container tpm2_support will detect this, and will return a different flag combination of

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:892: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  890|   #if HAVE_TPM2
#  891|           bool try_tpm2;
#  892|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
#  893|                   /* If automatic mode is selected lets see if a TPM2 it is present. If we are running in a
#  894|                    * container tpm2_support will detect this, and will return a different flag combination of

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}})' depends on order of evaluation of side effects
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258.1/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes= [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258.1/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes= [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258.1/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}})' depends on order of evaluation [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes= [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes= [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258.1/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:922: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  920|                           r = tpm2_load_pcr_public_key(tpm2_pubkey_path, &pubkey.iov_base, &pubkey.iov_len);
#  921|                           if (r < 0) {
#  922|->                                 if (tpm2_pubkey_path || r != -ENOENT || !sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED))
#  923|                                           return log_error_errno(r, "Failed to read TPM PCR public key: %m");
#  924|   

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:922: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  920|                           r = tpm2_load_pcr_public_key(tpm2_pubkey_path, &pubkey.iov_base, &pubkey.iov_len);
#  921|                           if (r < 0) {
#  922|->                                 if (tpm2_pubkey_path || r != -ENOENT || !sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED))
#  923|                                           return log_error_errno(r, "Failed to read TPM PCR public key: %m");
#  924|   

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:985: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  983|                           if (sd_id128_equal(with_key, _CRED_AUTO_INITRD))
#  984|                                   log_warning("TPM2 present and used, but we didn't manage to talk to it. Credential will be refused if SecureBoot is enabled.");
#  985|->                         else if (!sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))
#  986|                                   return log_error_errno(r, "Failed to seal to TPM2: %m");
#  987|   

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1002: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
# 1000|   #endif
# 1001|   
# 1002|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
# 1003|                   /* Let's settle the key type in auto mode now. */
# 1004|   

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1002: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
# 1000|   #endif
# 1001|   
# 1002|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
# 1003|                   /* Let's settle the key type in auto mode now. */
# 1004|   

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation of side effects
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258.1/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0x [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258.1/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0x [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258.1/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1222: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0xaf,0x49,0x50,0xa8,0x49,0x13,0x4e,0xb1,0xa7,0x38,0x46,0x30,0x4f,0xf3,0x0c,0x05}})' depends on order of evaluation of side effects
# 1220|   
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|->         with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1222: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0xaf,0x49,0x50,0xa8,0x49,0x13,0x4e,0xb1,0xa7,0x38,0x46,0x30,0x4f,0xf3,0x0c,0x05}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation of side effects
# 1220|   
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|->         with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1223: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|->         with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|           with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1223: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|->         with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|           with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1225: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|->         with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1226|   
# 1227|           if (!with_host_key && !with_tpm2 && !with_null)

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/shared/creds-util.c:1225: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation of side effects
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|->         with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1226|   
# 1227|           if (!with_host_key && !with_tpm2 && !with_null)

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/creds-util.c:1812:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_credentials_dir()’
systemd-258.1/src/shared/creds-util.c:1775:5: enter_function: entry to ‘pick_up_credentials’
systemd-258.1/src/shared/creds-util.c:1779:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:1780:9: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:1780:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/creds-util.c:1782:29: branch_false: ...to here
systemd-258.1/src/shared/creds-util.c:1782:29: call_function: calling ‘open_credentials_dir’ from ‘pick_up_credentials’
systemd-258.1/src/shared/creds-util.c:1782:29: return_function: returning to ‘pick_up_credentials’ from ‘open_credentials_dir’
systemd-258.1/src/shared/creds-util.c:1812:1: danger: ‘open_credentials_dir()’ leaks here; was opened at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
# 1810|   
# 1811|           return ret;
# 1812|-> }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/discover-image.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258.1/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258.1/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  127|   
#  128|           free(i->hostname);
#  129|->         strv_free(i->machine_info);
#  130|           strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/discover-image.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258.1/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258.1/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  128|           free(i->hostname);
#  129|           strv_free(i->machine_info);
#  130|->         strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);
#  132|           strv_free(i->confext_release);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/discover-image.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258.1/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258.1/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  129|           strv_free(i->machine_info);
#  130|           strv_free(i->os_release);
#  131|->         strv_free(i->sysext_release);
#  132|           strv_free(i->confext_release);
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/discover-image.c:132:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258.1/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258.1/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  130|           strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);
#  132|->         strv_free(i->confext_release);
#  133|   
#  134|           return mfree(i);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/dissect-image.c:4638: error[uninitvar]: Uninitialized variable: i
# 4636|                   };
# 4637|   
# 4638|->                 r = sd_json_dispatch(i, partition_dispatch_table, SD_JSON_ALLOW_EXTENSIONS, &pp);
# 4639|                   if (r < 0)
# 4640|                           return log_error_errno(r, "Failed to parse partition data: %m");

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/shared/edit-util.c:285:17: warning[-Wanalyzer-null-argument]: use of NULL ‘stdin_data’ where non-null expected
systemd-258.1/src/shared/edit-util.c:462:5: enter_function: entry to ‘do_edit_files_and_install’
systemd-258.1/src/shared/edit-util.c:463:30: release_memory: ‘stdin_data’ is NULL
systemd-258.1/src/shared/edit-util.c:467:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:469:13: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:469:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:472:13: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:472:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:477:17: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:477:17: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:483:21: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:483:21: call_function: calling ‘run_editor’ from ‘do_edit_files_and_install’
#  283|                   *mempcpy_typesafe(mempcpy_typesafe(cmdline, editor, editor_n), args, strv_length(args)) = NULL;
#  284|   
#  285|->                 execvp(cmdline[0], cmdline);
#  286|                   log_warning_errno(errno, "Specified editor '%s' not available, trying fallbacks: %m", editor[0]);
#  287|           }

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/shared/edit-util.c:286:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/shared/edit-util.c:462:5: enter_function: entry to ‘do_edit_files_and_install’
systemd-258.1/src/shared/edit-util.c:467:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:469:13: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:469:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:472:13: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:472:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:477:17: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:477:17: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:483:21: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:483:21: call_function: calling ‘run_editor’ from ‘do_edit_files_and_install’
#  284|   
#  285|                   execvp(cmdline[0], cmdline);
#  286|->                 log_warning_errno(errno, "Specified editor '%s' not available, trying fallbacks: %m", editor[0]);
#  287|           }
#  288|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/shared/edit-util.c:368:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258.1/src/shared/edit-util.c:327:12: enter_function: entry to ‘strip_edit_temp_file’
systemd-258.1/src/shared/edit-util.c:328:30: release_memory: ‘old_contents’ is NULL
systemd-258.1/src/shared/edit-util.c:333:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:334:9: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:334:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:335:9: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:335:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:336:9: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:336:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:338:13: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:339:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:342:15: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:343:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:346:23: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:346:23: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/edit-util.c:346:52: branch_true: ...to here
systemd-258.1/src/shared/edit-util.c:346:23: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/edit-util.c:352:34: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:352:34: call_function: calling ‘strstrafter’ from ‘strip_edit_temp_file’
systemd-258.1/src/shared/edit-util.c:352:34: return_function: returning to ‘strip_edit_temp_file’ from ‘strstrafter’
systemd-258.1/src/shared/edit-util.c:352:34: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:355:20: branch_false: following ‘false’ branch (when ‘contents_end’ is NULL)...
systemd-258.1/src/shared/edit-util.c:358:28: branch_false: ...to here
systemd-258.1/src/shared/edit-util.c:365:20: branch_true: following ‘true’ branch (when ‘with_marker != 0’)...
systemd-258.1/src/shared/edit-util.c:366:42: branch_true: ...to here
systemd-258.1/src/shared/edit-util.c:367:37: call_function: inlined call to ‘skip_leading_chars’ from ‘strip_edit_temp_file’
systemd-258.1/src/shared/edit-util.c:368:37: branch_true: ...to here
systemd-258.1/src/shared/edit-util.c:368:37: danger: dereference of NULL ‘<unknown>’
#  366|                           for (const char *p = old_contents;;) {
#  367|                                   p = skip_leading_chars(p, WHITESPACE);
#  368|->                                 if (*p == '\0')
#  369|                                           break;
#  370|                                   if (*p != '#') {

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/efi-api.c:214:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
systemd-258.1/src/shared/efi-api.c:205:5: enter_function: entry to ‘efi_get_reboot_to_firmware’
systemd-258.1/src/shared/efi-api.c:210:13: call_function: calling ‘get_os_indications’ from ‘efi_get_reboot_to_firmware’
systemd-258.1/src/shared/efi-api.c:210:13: return_function: returning to ‘efi_get_reboot_to_firmware’ from ‘get_os_indications’
systemd-258.1/src/shared/efi-api.c:211:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/efi-api.c:214:16: branch_false: ...to here
systemd-258.1/src/shared/efi-api.c:214:16: danger: use of uninitialized value ‘b’ here
#  212|                   return r;
#  213|   
#  214|->         return !!(b & EFI_OS_INDICATIONS_BOOT_TO_FW_UI);
#  215|   #else
#  216|           return -EOPNOTSUPP;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/efi-api.c:229:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
systemd-258.1/src/shared/efi-api.c:220:5: enter_function: entry to ‘efi_set_reboot_to_firmware’
systemd-258.1/src/shared/efi-api.c:225:13: call_function: calling ‘get_os_indications’ from ‘efi_set_reboot_to_firmware’
systemd-258.1/src/shared/efi-api.c:225:13: return_function: returning to ‘efi_set_reboot_to_firmware’ from ‘get_os_indications’
systemd-258.1/src/shared/efi-api.c:226:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/efi-api.c:229:17: branch_false: ...to here
systemd-258.1/src/shared/efi-api.c:229:17: branch_true: following ‘true’ branch (when ‘value != 0’)...
systemd-258.1/src/shared/efi-api.c:229:17: branch_true: ...to here
systemd-258.1/src/shared/efi-api.c:229:17: danger: use of uninitialized value ‘b’ here
#  227|                   return r;
#  228|   
#  229|->         b_new = UPDATE_FLAG(b, EFI_OS_INDICATIONS_BOOT_TO_FW_UI, value);
#  230|   
#  231|           /* Avoid writing to efi vars store if we can due to firmware bugs. */

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/shared/ethtool-util.c:375: error[nullPointer]: Null pointer dereference
#  373|           UPDATE(ecmd.wolopts, wolopts, need_update);
#  374|           if (password &&
#  375|->             memcmp(ecmd.sopass, password, sizeof(ecmd.sopass)) != 0) {
#  376|                   memcpy(ecmd.sopass, password, sizeof(ecmd.sopass));
#  377|                   need_update = true;

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/shared/ethtool-util.c:376: error[nullPointer]: Null pointer dereference
#  374|           if (password &&
#  375|               memcmp(ecmd.sopass, password, sizeof(ecmd.sopass)) != 0) {
#  376|->                 memcpy(ecmd.sopass, password, sizeof(ecmd.sopass));
#  377|                   need_update = true;
#  378|           }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ethtool-util.c:385:1: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
systemd-258.1/src/shared/ethtool-util.c:318:5: enter_function: entry to ‘ethtool_set_wol’
systemd-258.1/src/shared/ethtool-util.c:333:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:334:9: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:334:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:336:13: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:336:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:340:13: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:340:13: call_function: calling ‘ethtool_connect’ from ‘ethtool_set_wol’
systemd-258.1/src/shared/ethtool-util.c:340:13: return_function: returning to ‘ethtool_set_wol’ from ‘ethtool_connect’
systemd-258.1/src/shared/ethtool-util.c:341:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:344:9: call_function: inlined call to ‘strscpy’ from ‘ethtool_set_wol’
systemd-258.1/src/shared/ethtool-util.c:348:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:351:12: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:359:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/ethtool-util.c:360:38: branch_true: ...to here
systemd-258.1/src/shared/ethtool-util.c:362:24: call_function: calling ‘wol_options_to_string_alloc’ from ‘ethtool_set_wol’
systemd-258.1/src/shared/ethtool-util.c:362:24: return_function: returning to ‘ethtool_set_wol’ from ‘wol_options_to_string_alloc’
systemd-258.1/src/shared/ethtool-util.c:363:17: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:366:28: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:385:1: danger: ‘str’ leaks here; was allocated at [(28)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/27)
#  383|           ecmd.cmd = ETHTOOL_SWOL;
#  384|           return RET_NERRNO(ioctl(*ethtool_fd, SIOCETHTOOL, &ifr));
#  385|-> }
#  386|   
#  387|   int ethtool_set_nic_buffer_size(int *ethtool_fd, const char *ifname, const netdev_ring_param *ring) {

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/shared/ethtool-util.c:620:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘strings’
systemd-258.1/src/shared/ethtool-util.c:591:5: enter_function: entry to ‘ethtool_set_features’
systemd-258.1/src/shared/ethtool-util.c:592:49: release_memory: ‘strings’ is NULL
systemd-258.1/src/shared/ethtool-util.c:599:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:600:9: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:600:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:603:28: branch_true: following ‘true’ branch (when ‘i != 63’)...
systemd-258.1/src/shared/ethtool-util.c:604:29: branch_true: ...to here
systemd-258.1/src/shared/ethtool-util.c:609:12: branch_true: following ‘true’ branch (when ‘have != 0’)...
systemd-258.1/src/shared/ethtool-util.c:612:13: branch_true: ...to here
systemd-258.1/src/shared/ethtool-util.c:612:13: call_function: calling ‘ethtool_connect’ from ‘ethtool_set_features’
systemd-258.1/src/shared/ethtool-util.c:612:13: return_function: returning to ‘ethtool_set_features’ from ‘ethtool_connect’
systemd-258.1/src/shared/ethtool-util.c:613:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:616:13: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:616:13: call_function: calling ‘get_stringset’ from ‘ethtool_set_features’
systemd-258.1/src/shared/ethtool-util.c:616:13: return_function: returning to ‘ethtool_set_features’ from ‘get_stringset’
systemd-258.1/src/shared/ethtool-util.c:617:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ethtool-util.c:620:54: branch_false: ...to here
systemd-258.1/src/shared/ethtool-util.c:620:54: release_memory: ‘strings’ is NULL
systemd-258.1/src/shared/ethtool-util.c:620:47: danger: dereference of NULL ‘strings’
#  618|                   return log_debug_errno(r, "ethtool: could not get ethtool feature strings: %m");
#  619|   
#  620|->         r = get_features(*ethtool_fd, ifname, strings->len, &gfeatures);
#  621|           if (r < 0)
#  622|                   return log_debug_errno(r, "ethtool: could not get ethtool features for %s: %m", ifname);

Error: CPPCHECK_WARNING (CWE-562):
systemd-258.1/src/shared/ethtool-util.c:672: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  670|           */
#  671|   
#  672|->         ifr->ifr_data = (void*) &ecmd;
#  673|   
#  674|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562):
systemd-258.1/src/shared/ethtool-util.c:682: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  680|           ecmd.base.link_mode_masks_nwords = -ecmd.base.link_mode_masks_nwords;
#  681|   
#  682|->         ifr->ifr_data = (void *) &ecmd;
#  683|   
#  684|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562):
systemd-258.1/src/shared/ethtool-util.c:716: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  714|           assert(ret);
#  715|   
#  716|->         ifr->ifr_data = (void *) &ecmd;
#  717|   
#  718|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562):
systemd-258.1/src/shared/ethtool-util.c:762: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  760|           memcpy(p, u->link_modes.lp_advertising, sizeof(uint32_t) * ecmd.base.link_mode_masks_nwords);
#  761|   
#  762|->         ifr->ifr_data = (void *) &ecmd;
#  763|   
#  764|           return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr));

Error: CPPCHECK_WARNING (CWE-562):
systemd-258.1/src/shared/ethtool-util.c:793: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  791|           ecmd.eth_tp_mdix_ctrl = u->base.eth_tp_mdix_ctrl;
#  792|   
#  793|->         ifr->ifr_data = (void *) &ecmd;
#  794|   
#  795|           return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr));

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/exec-util.c:176:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pid’
systemd-258.1/src/shared/exec-util.c:295:5: enter_function: entry to ‘execute_directories’
systemd-258.1/src/shared/exec-util.c:316:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:319:13: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:324:12: branch_true: following ‘true’ branch (when ‘callbacks’ is non-NULL)...
systemd-258.1/src/shared/exec-util.c:325:21: branch_true: ...to here
systemd-258.1/src/shared/exec-util.c:326:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:330:16: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:330:16: call_function: calling ‘execute_strv’ from ‘execute_directories’
#  174|                           bool skip_remaining = false;
#  175|   
#  176|->                         r = wait_for_terminate_and_check(t, pid, WAIT_LOG_ABNORMAL);
#  177|                           if (r < 0)
#  178|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/exec-util.c:602:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 0)’
systemd-258.1/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258.1/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:602:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:602:38: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:602:38: acquire_resource: opened here
systemd-258.1/src/shared/exec-util.c:602:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  600|                   }
#  601|   
#  602|->                 if (!stdin_is_tty && dup2(fd, STDIN_FILENO) < 0) {
#  603|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDIN: %m");
#  604|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/exec-util.c:607:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 1)’
systemd-258.1/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258.1/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:607:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:607:39: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:607:39: acquire_resource: opened here
systemd-258.1/src/shared/exec-util.c:607:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  605|                   }
#  606|   
#  607|->                 if (!stdout_is_tty && dup2(fd, STDOUT_FILENO) < 0) {
#  608|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDOUT: %m");
#  609|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/exec-util.c:612:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 2)’
systemd-258.1/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258.1/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:612:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/exec-util.c:612:39: branch_false: ...to here
systemd-258.1/src/shared/exec-util.c:612:39: acquire_resource: opened here
systemd-258.1/src/shared/exec-util.c:612:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  610|                   }
#  611|   
#  612|->                 if (!stderr_is_tty && dup2(fd, STDERR_FILENO) < 0) {
#  613|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDERR: %m");
#  614|                           _exit(EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/shared/format-table.c:447: error[memleak]: Memory leak: d
#  445|                   d->strv = strv_copy(data);
#  446|                   if (!d->strv)
#  447|->                         return NULL;
#  448|           } else
#  449|                   memcpy_safe(d->data, data, data_size);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/format-table.c:1921:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(33)’
systemd-258.1/src/shared/format-table.c:3132:5: enter_function: entry to ‘table_print_with_pager’
systemd-258.1/src/shared/format-table.c:3141:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/format-table.c:3146:13: branch_false: ...to here
systemd-258.1/src/shared/format-table.c:3151:13: call_function: calling ‘table_print_json’ from ‘table_print_with_pager’
# 1919|                           return NULL;
# 1920|   
# 1921|->                 d->formatted = sd_id128_to_string(d->id128, p);
# 1922|                   break;
# 1923|           }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/format-table.c:1932:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(37)’
systemd-258.1/src/shared/format-table.c:3132:5: enter_function: entry to ‘table_print_with_pager’
systemd-258.1/src/shared/format-table.c:3141:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/format-table.c:3146:13: branch_false: ...to here
systemd-258.1/src/shared/format-table.c:3151:13: call_function: calling ‘table_print_json’ from ‘table_print_with_pager’
# 1930|                           return NULL;
# 1931|   
# 1932|->                 d->formatted = sd_id128_to_uuid_string(d->id128, p);
# 1933|                   break;
# 1934|           }

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/shared/generator.c:241:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258.1/src/shared/generator.c:206:12: enter_function: entry to ‘write_fsck_sysroot_service’
systemd-258.1/src/shared/generator.c:213:32: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:216:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:217:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:217:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:218:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:218:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:225:19: branch_false: ...to here
systemd-258.1/src/shared/generator.c:226:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:229:20: call_function: inlined call to ‘cescape’ from ‘write_fsck_sysroot_service’
systemd-258.1/src/shared/generator.c:230:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:233:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:234:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:237:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘write_fsck_sysroot_service’
systemd-258.1/src/shared/generator.c:237:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘write_fsck_sysroot_service’
systemd-258.1/src/shared/generator.c:238:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:262:17: call_function: inlined call to ‘isempty’ from ‘write_fsck_sysroot_service’
systemd-258.1/src/shared/generator.c:241:9: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:241:9: danger: argument 1 (‘f’) NULL where non-null expected
#  239|                   return r;
#  240|   
#  241|->         fprintf(f,
#  242|                   "[Unit]\n"
#  243|                   "Description=File System Check on %1$s\n"

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/shared/generator.c:586:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258.1/src/shared/generator.c:547:5: enter_function: entry to ‘generator_hook_up_mkswap’
systemd-258.1/src/shared/generator.c:552:32: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:555:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:556:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:556:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:558:16: branch_false: ...to here
systemd-258.1/src/shared/generator.c:559:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:563:14: branch_false: ...to here
systemd-258.1/src/shared/generator.c:563:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/generator.c:568:13: branch_true: ...to here
systemd-258.1/src/shared/generator.c:569:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:573:19: call_function: inlined call to ‘cescape’ from ‘generator_hook_up_mkswap’
systemd-258.1/src/shared/generator.c:574:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:577:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:582:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:582:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkswap’
systemd-258.1/src/shared/generator.c:582:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkswap’
systemd-258.1/src/shared/generator.c:583:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:586:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:586:9: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:586:9: danger: argument 1 (‘f’) NULL where non-null expected
#  584|                   return r;
#  585|   
#  586|->         fprintf(f,
#  587|                   "[Unit]\n"
#  588|                   "Description=Make Swap on %%f\n"

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/shared/generator.c:668:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258.1/src/shared/generator.c:613:5: enter_function: entry to ‘generator_hook_up_mkfs’
systemd-258.1/src/shared/generator.c:620:32: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:624:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:625:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:625:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:626:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:626:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:628:16: branch_false: ...to here
systemd-258.1/src/shared/generator.c:629:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:633:14: branch_false: ...to here
systemd-258.1/src/shared/generator.c:633:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/generator.c:638:12: branch_true: ...to here
systemd-258.1/src/shared/generator.c:638:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:644:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:648:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:656:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:659:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:660:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:664:13: branch_false: ...to here
systemd-258.1/src/shared/generator.c:664:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkfs’
systemd-258.1/src/shared/generator.c:664:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkfs’
systemd-258.1/src/shared/generator.c:665:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/generator.c:668:9: branch_false: ...to here
systemd-258.1/src/shared/generator.c:668:9: release_memory: ‘f’ is NULL
systemd-258.1/src/shared/generator.c:668:9: danger: argument 1 (‘f’) NULL where non-null expected
#  666|                   return r;
#  667|   
#  668|->         fprintf(f,
#  669|                   "[Unit]\n"
#  670|                   "Description=Make File System on %%f\n"

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/group-record.c:110: error[uninitvar]: Uninitialized variable: e
#  108|   
#  109|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  110|->                 if (!sd_json_variant_is_object(e))
#  111|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of objects.", strna(name));
#  112|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/hwdb-util.c:124:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258.1/src/shared/hwdb-util.c:577:5: enter_function: entry to ‘hwdb_update’
systemd-258.1/src/shared/hwdb-util.c:589:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:592:16: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:592:16: acquire_memory: allocated here
systemd-258.1/src/shared/hwdb-util.c:593:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:597:25: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:579:44: call_function: inlined call to ‘trie_freep’ from ‘hwdb_update’
#  122|                   return NULL;
#  123|   
#  124|->         trie_node_cleanup(trie->root);
#  125|           strbuf_free(trie->strings);
#  126|           return mfree(trie);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/hwdb-util.c:606:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258.1/src/shared/hwdb-util.c:577:5: enter_function: entry to ‘hwdb_update’
systemd-258.1/src/shared/hwdb-util.c:589:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:592:16: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:592:16: acquire_memory: allocated here
systemd-258.1/src/shared/hwdb-util.c:593:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:597:25: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:598:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:602:22: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:603:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/hwdb-util.c:606:9: branch_false: ...to here
systemd-258.1/src/shared/hwdb-util.c:614:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/hwdb-util.c:615:24: branch_true: ...to here
systemd-258.1/src/shared/hwdb-util.c:615:24: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/hwdb-util.c:615:24: branch_true: ...to here
systemd-258.1/src/shared/hwdb-util.c:611:9: call_function: calling ‘array_cleanup’ from ‘hwdb_update’
systemd-258.1/src/shared/hwdb-util.c:579:44: call_function: inlined call to ‘trie_freep’ from ‘hwdb_update’
#  604|                   return -ENOMEM;
#  605|   
#  606|->         trie->nodes_count++;
#  607|   
#  608|           ConfFile **files = NULL;

Error: COMPILER_WARNING:
systemd-258.1/src/shared/ioprio-util.h:4:10: error[fatal error]: sys/ioprio.h: No such file or directory
#    2|   #pragma once
#    3|   
#    4|-> #include <sys/ioprio.h>         /* IWYU pragma: export */
#    5|   
#    6|   #include "forward.h"

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/journal-importer.c:480:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258.1/src/shared/journal-importer.c:469:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/journal-importer.c:473:28: branch_true: ...to here
systemd-258.1/src/shared/journal-importer.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
systemd-258.1/src/shared/journal-importer.c:480:25: branch_false: ...to here
systemd-258.1/src/shared/journal-importer.c:480:25: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/journal-importer.c:480:25: branch_true: ...to here
systemd-258.1/src/shared/journal-importer.c:480:25: danger: ‘tmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  478|                                       target);
#  479|                   else {
#  480|->                         log_debug("Reallocated buffer from %zu to %zu bytes",
#  481|                                     old_size, target);
#  482|                           imp->buf = tmp;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/kbd-util.c:71:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(&*de.d_name, (long unsigned int)(e - &de_23(D)->d_name))’
systemd-258.1/src/shared/kbd-util.c:39:12: enter_function: entry to ‘keymap_recurse_dir_callback’
systemd-258.1/src/shared/kbd-util.c:52:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/kbd-util.c:57:12: branch_false: ...to here
systemd-258.1/src/shared/kbd-util.c:57:12: branch_false: following ‘false’ branch (when ‘event == 2’)...
systemd-258.1/src/shared/kbd-util.c:60:14: branch_false: ...to here
systemd-258.1/src/shared/kbd-util.c:67:13: acquire_memory: allocated here
systemd-258.1/src/shared/kbd-util.c:68:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/kbd-util.c:71:13: branch_false: ...to here
systemd-258.1/src/shared/kbd-util.c:71:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/kbd-util.c:74:9: branch_false: ...to here
systemd-258.1/src/shared/kbd-util.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/kbd-util.c:76:14: branch_false: ...to here
systemd-258.1/src/shared/kbd-util.c:76:14: call_function: calling ‘keymap_is_valid’ from ‘keymap_recurse_dir_callback’
systemd-258.1/src/shared/kbd-util.c:76:14: return_function: returning to ‘keymap_recurse_dir_callback’ from ‘keymap_is_valid’
systemd-258.1/src/shared/kbd-util.c:76:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/kbd-util.c:79:13: branch_true: ...to here
systemd-258.1/src/shared/kbd-util.c:71:13: danger: ‘strndup(&*de.d_name, (long unsigned int)(e - &de_23(D)->d_name))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   69|                   return -ENOMEM;
#   70|   
#   71|->         if (data->keymap_name)
#   72|                   return streq(p, data->keymap_name) ? 1 : RECURSE_DIR_CONTINUE;
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/killall.c:48:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(__builtin_alloca(27), "re")’
systemd-258.1/src/shared/killall.c:23:12: enter_function: entry to ‘argv_has_at’
systemd-258.1/src/shared/killall.c:29:25: branch_false: ...to here
systemd-258.1/src/shared/killall.c:30:36: acquire_resource: opened here
systemd-258.1/src/shared/killall.c:31:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/killall.c:37:14: branch_false: ...to here
systemd-258.1/src/shared/killall.c:41:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/killall.c:47:16: branch_false: ...to here
systemd-258.1/src/shared/killall.c:48:1: danger: ‘fopen(__builtin_alloca(27), "re")’ leaks here; was opened at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
#   46|            * https://systemd.io/ROOT_STORAGE_DAEMONS */
#   47|           return c == '@';
#   48|-> }
#   49|   
#   50|   static bool is_in_survivor_cgroup(const PidRef *pid) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/killall.c:48:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(__builtin_alloca(27), "re")’
systemd-258.1/src/shared/killall.c:23:12: enter_function: entry to ‘argv_has_at’
systemd-258.1/src/shared/killall.c:29:25: branch_false: ...to here
systemd-258.1/src/shared/killall.c:30:36: acquire_memory: allocated here
systemd-258.1/src/shared/killall.c:31:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/killall.c:37:14: branch_false: ...to here
systemd-258.1/src/shared/killall.c:41:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/killall.c:47:16: branch_false: ...to here
systemd-258.1/src/shared/killall.c:48:1: danger: ‘fopen(__builtin_alloca(27), "re")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#   46|            * https://systemd.io/ROOT_STORAGE_DAEMONS */
#   47|           return c == '@';
#   48|-> }
#   49|   
#   50|   static bool is_in_survivor_cgroup(const PidRef *pid) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/logs-show.c:1144:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
systemd-258.1/src/shared/logs-show.c:1106:12: enter_function: entry to ‘update_json_data’
systemd-258.1/src/shared/logs-show.c:1117:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/logs-show.c:1118:9: branch_false: ...to here
systemd-258.1/src/shared/logs-show.c:1118:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/logs-show.c:1120:12: branch_false: ...to here
systemd-258.1/src/shared/logs-show.c:1129:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258.1/src/shared/logs-show.c:1132:13: call_function: inlined call to ‘hashmap_get’ from ‘update_json_data’
systemd-258.1/src/shared/logs-show.c:1133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/logs-show.c:1140:21: branch_false: ...to here
systemd-258.1/src/shared/logs-show.c:1140:21: acquire_memory: allocated here
systemd-258.1/src/shared/logs-show.c:1141:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/logs-show.c:1144:21: branch_false: ...to here
systemd-258.1/src/shared/logs-show.c:1138:54: call_function: inlined call to ‘json_data_freep’ from ‘update_json_data’
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/logs-show.c:1138:54: call_function: inlined call to ‘json_data_freep’ from ‘update_json_data’
# 1142|                           return log_oom();
# 1143|   
# 1144|->                 r = sd_json_variant_new_string(&e->name, name);
# 1145|                   if (r < 0)
# 1146|                           return log_error_errno(r, "Failed to allocate JSON name variant: %m");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/loop-util.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258.1/src/shared/loop-util.c:836:5: enter_function: entry to ‘loop_device_open’
systemd-258.1/src/shared/loop-util.c:852:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:853:9: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:854:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:860:14: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:861:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:864:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:870:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:887:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:888:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:891:18: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:893:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:896:18: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:898:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:901:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:902:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:905:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:906:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:909:16: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:910:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:913:13: call_function: inlined call to ‘malloc_multiply’ from ‘loop_device_open’
systemd-258.1/src/shared/loop-util.c:914:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:917:9: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:917:9: danger: ‘malloc(96)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/24)
#  915|                   return -ENOMEM;
#  916|   
#  917|->         *d = (LoopDevice) {
#  918|                   .n_ref = 1,
#  919|                   .fd = TAKE_FD(fd),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/loop-util.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(s)’
systemd-258.1/src/shared/loop-util.c:836:5: enter_function: entry to ‘loop_device_open’
systemd-258.1/src/shared/loop-util.c:852:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:853:9: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:854:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:860:14: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:861:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:864:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:870:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:887:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:888:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:891:18: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:893:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:896:18: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:898:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:901:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:902:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:905:13: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:906:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:909:16: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:909:16: acquire_memory: allocated here
systemd-258.1/src/shared/loop-util.c:910:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:913:13: call_function: inlined call to ‘malloc_multiply’ from ‘loop_device_open’
systemd-258.1/src/shared/loop-util.c:914:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/loop-util.c:917:9: branch_false: ...to here
systemd-258.1/src/shared/loop-util.c:917:9: danger: ‘strdup(s)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
#  915|                   return -ENOMEM;
#  916|   
#  917|->         *d = (LoopDevice) {
#  918|                   .n_ref = 1,
#  919|                   .fd = TAKE_FD(fd),

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/machine-id-setup.c:218:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘writable’
systemd-258.1/src/shared/machine-id-setup.c:132:5: enter_function: entry to ‘machine_id_setup’
systemd-258.1/src/shared/machine-id-setup.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/machine-id-setup.c:139:9: call_function: inlined call to ‘umaskp’ from ‘machine_id_setup’
systemd-258.1/src/shared/machine-id-setup.c:200:13: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/machine-id-setup.c:218:12: branch_false: ...to here
systemd-258.1/src/shared/machine-id-setup.c:218:12: danger: use of uninitialized value ‘writable’ here
#  216|           }
#  217|   
#  218|->         if (writable) {
#  219|                   if (lseek(fd, 0, SEEK_SET) < 0)
#  220|                           return log_error_errno(errno, "Failed to seek %s: %m", etc_machine_id);

Error: COMPILER_WARNING:
systemd-258.1/src/shared/mount-util.c:466:13: error[-Wimplicit-function-declaration]: implicit declaration of function ‘pivot_root’
#  464|   
#  465|           /* Let the kernel tuck the new root under the old one. */
#  466|->         if (pivot_root(".", ".") < 0)
#  467|                   return log_debug_errno(errno, "Failed to pivot root to new rootfs '%s': %m", path);
#  468|   

Error: COMPILER_WARNING:
systemd-258.1/src/shared/mount-util.c:1454:14: error[-Wimplicit-function-declaration]: implicit declaration of function ‘open_tree_attr’; did you mean ‘open_tree’?
# 1452|           }
# 1453|   
# 1454|->         fd = open_tree_attr(dir_fd, path, flags, attr, sizeof(struct mount_attr));
# 1455|           if (fd >= 0)
# 1456|                   return TAKE_FD(fd);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/netif-util.c:56:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258.1/src/shared/netif-util.c:49:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/netif-util.c:52:13: branch_false: ...to here
systemd-258.1/src/shared/netif-util.c:52:13: acquire_memory: allocated here
systemd-258.1/src/shared/netif-util.c:53:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
systemd-258.1/src/shared/netif-util.c:56:16: branch_false: ...to here
systemd-258.1/src/shared/netif-util.c:56:16: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   54|                   return -ENOMEM;
#   55|   
#   56|->         *ret = ascii_strlower(p);
#   57|           return 0;
#   58|   }

Error: COMPILER_WARNING:
systemd-258.1/src/shared/nsresource.c:19:19: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   17|   
#   18|   static int make_pid_name(char **ret) {
#   19|->         char comm[TASK_COMM_LEN];
#   20|   
#   21|           assert(ret);

Error: COMPILER_WARNING:
systemd-258.1/src/shared/nsresource.c:30:9: error[error]: expression in static assertion is not an integer
#   28|            * some bits). But it also should be unique if we are called multiple times in a row. Hence we take
#   29|            * the "comm" name (which is 15 chars), and suffix it with the PID, possibly overriding the end. */
#   30|->         assert_cc(TASK_COMM_LEN == 15 + 1);
#   31|   
#   32|           char spid[DECIMAL_STR_MAX(pid_t)];

Error: COMPILER_WARNING:
systemd-258.1/src/shared/numa-util.h:4:10: error[fatal error]: sys/mempolicy.h: No such file or directory
#    2|   #pragma once
#    3|   
#    4|-> #include <sys/mempolicy.h>
#    5|   
#    6|   #include "cpu-set-util.h"

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/openssl-util.c:1563:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258.1/src/shared/openssl-util.c:1543:12: enter_function: entry to ‘openssl_ask_password_ui_new’
systemd-258.1/src/shared/openssl-util.c:1544:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1547:59: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1548:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1551:13: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1551:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1554:36: call_function: inlined call to ‘malloc_multiply’ from ‘openssl_ask_password_ui_new’
systemd-258.1/src/shared/openssl-util.c:1555:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1560:28: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1563:9: danger: ‘malloc(72)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 1561|           };
# 1562|   
# 1563|->         UI_set_default_method(ui->method);
# 1564|   
# 1565|           if (UI_method_set_ex_data(ui->method, 0, &ui->request) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/openssl-util.c:1565:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258.1/src/shared/openssl-util.c:1543:12: enter_function: entry to ‘openssl_ask_password_ui_new’
systemd-258.1/src/shared/openssl-util.c:1544:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1547:59: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1548:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1551:13: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1551:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1554:36: call_function: inlined call to ‘malloc_multiply’ from ‘openssl_ask_password_ui_new’
systemd-258.1/src/shared/openssl-util.c:1555:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/openssl-util.c:1560:28: branch_false: ...to here
systemd-258.1/src/shared/openssl-util.c:1565:13: danger: ‘malloc(72)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
# 1563|           UI_set_default_method(ui->method);
# 1564|   
# 1565|->         if (UI_method_set_ex_data(ui->method, 0, &ui->request) == 0)
# 1566|                   return log_openssl_errors("Failed to set extra data for UI method");
# 1567|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/openssl-util.h:210:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
systemd-258.1/src/home/homed-manager.c:1512:12: enter_function: entry to ‘manager_load_public_keys’
systemd-258.1/src/home/homed-manager.c:1516:9: branch_false: following ‘false’ branch...
systemd-258.1/src/home/homed-manager.c:1518:26: branch_false: ...to here
systemd-258.1/src/home/homed-manager.c:1526:12: branch_false: following ‘false’ branch...
systemd-258.1/src/home/homed-manager.c:1529:9: branch_false: ...to here
systemd-258.1/src/home/homed-manager.c:1529:9: branch_true: following ‘true’ branch...
systemd-258.1/src/home/homed-manager.c:1530:24: call_function: calling ‘manager_load_public_key_one’ from ‘manager_load_public_keys’
#  208|   
#  209|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(X509*, X509_free, NULL);
#  210|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(EVP_PKEY*, EVP_PKEY_free, NULL);
#  211|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_TYPE*, ASN1_TYPE_free, NULL);
#  212|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_STRING*, ASN1_STRING_free, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/openssl-util.h:210:1: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/home/homed-manager.c:1512:12: enter_function: entry to ‘manager_load_public_keys’
systemd-258.1/src/home/homed-manager.c:1516:9: branch_false: following ‘false’ branch...
systemd-258.1/src/home/homed-manager.c:1518:26: branch_false: ...to here
systemd-258.1/src/home/homed-manager.c:1526:12: branch_false: following ‘false’ branch...
systemd-258.1/src/home/homed-manager.c:1529:9: branch_false: ...to here
systemd-258.1/src/home/homed-manager.c:1529:9: branch_true: following ‘true’ branch...
systemd-258.1/src/home/homed-manager.c:1530:24: call_function: calling ‘manager_load_public_key_one’ from ‘manager_load_public_keys’
#  208|   
#  209|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(X509*, X509_free, NULL);
#  210|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(EVP_PKEY*, EVP_PKEY_free, NULL);
#  211|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_TYPE*, ASN1_TYPE_free, NULL);
#  212|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_STRING*, ASN1_STRING_free, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/pager.c:160:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[0], 0)’
systemd-258.1/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258.1/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258.1/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258.1/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258.1/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258.1/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258.1/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258.1/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258.1/src/shared/pager.c:155:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:160:21: branch_true: ...to here
systemd-258.1/src/shared/pager.c:160:21: acquire_resource: opened here
systemd-258.1/src/shared/pager.c:160:20: danger: ‘dup2(fd[0], 0)’ leaks here; was opened at [(27)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/26)
#  158|                   /* In the child start the pager */
#  159|   
#  160|->                 if (dup2(fd[0], STDIN_FILENO) < 0) {
#  161|                           log_error_errno(errno, "Failed to duplicate file descriptor to STDIN: %m");
#  162|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/pager.c:252:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
systemd-258.1/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258.1/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258.1/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258.1/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258.1/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258.1/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258.1/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258.1/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258.1/src/shared/pager.c:155:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:251:25: branch_false: ...to here
systemd-258.1/src/shared/pager.c:252:13: acquire_resource: opened here
systemd-258.1/src/shared/pager.c:252:12: danger: ‘dup2(fd[1], 1)’ leaks here; was opened at [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
#  250|           /* Return in the parent */
#  251|           stored_stdout = fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC, 3);
#  252|->         if (dup2(fd[1], STDOUT_FILENO) < 0) {
#  253|                   stored_stdout = safe_close(stored_stdout);
#  254|                   return (void) log_error_errno(errno, "Failed to duplicate pager pipe: %m");

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/pager.c:259:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 2)’
systemd-258.1/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258.1/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258.1/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258.1/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258.1/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258.1/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258.1/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258.1/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258.1/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258.1/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258.1/src/shared/pager.c:155:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:251:25: branch_false: ...to here
systemd-258.1/src/shared/pager.c:252:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:256:9: branch_false: ...to here
systemd-258.1/src/shared/pager.c:259:13: acquire_resource: opened here
systemd-258.1/src/shared/pager.c:259:12: danger: ‘dup2(fd[1], 2)’ leaks here; was opened at [(29)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/28)
#  257|   
#  258|           stored_stderr = fcntl(STDERR_FILENO, F_DUPFD_CLOEXEC, 3);
#  259|->         if (dup2(fd[1], STDERR_FILENO) < 0) {
#  260|                   stored_stderr = safe_close(stored_stderr);
#  261|                   return (void) log_error_errno(errno, "Failed to duplicate pager pipe: %m");

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/pager.c:280:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stored_stdout, 1)’
systemd-258.1/src/shared/pager.c:274:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:278:9: branch_false: ...to here
systemd-258.1/src/shared/pager.c:279:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:280:21: branch_true: ...to here
systemd-258.1/src/shared/pager.c:280:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:280:42: branch_false: ...to here
systemd-258.1/src/shared/pager.c:280:42: acquire_resource: opened here
systemd-258.1/src/shared/pager.c:280:21: danger: ‘dup2(stored_stdout, 1)’ leaks here; was opened at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  278|           (void) fflush(stdout);
#  279|           if (stdout_redirected)
#  280|->                 if (stored_stdout < 0 || dup2(stored_stdout, STDOUT_FILENO) < 0)
#  281|                           (void) close(STDOUT_FILENO);
#  282|           stored_stdout = safe_close(stored_stdout);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/shared/pager.c:285:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stored_stderr, 2)’
systemd-258.1/src/shared/pager.c:274:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:278:9: branch_false: ...to here
systemd-258.1/src/shared/pager.c:284:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pager.c:285:21: branch_true: ...to here
systemd-258.1/src/shared/pager.c:285:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pager.c:285:42: branch_false: ...to here
systemd-258.1/src/shared/pager.c:285:42: acquire_resource: opened here
systemd-258.1/src/shared/pager.c:285:21: danger: ‘dup2(stored_stderr, 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  283|           (void) fflush(stderr);
#  284|           if (stderr_redirected)
#  285|->                 if (stored_stderr < 0 || dup2(stored_stderr, STDERR_FILENO) < 0)
#  286|                           (void) close(STDERR_FILENO);
#  287|           stored_stderr = safe_close(stored_stderr);

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:48:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:48:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   46|           const char *p = endswith(format, "@PAMERR@");
#   47|           if (p) {
#   48|->                 const char *pamerr = pam_strerror(handle, error);
#   49|                   if (strchr(pamerr, '%'))
#   50|                           pamerr = "n/a";  /* We cannot have any formatting chars */

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:53:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:49:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:52:26: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:53:17: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:53:17: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:53:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   51|   
#   52|                   char buf[p - format + strlen(pamerr) + 1];
#   53|->                 xsprintf(buf, "%.*s%s", (int)(p - format), format, pamerr);
#   54|   
#   55|                   DISABLE_WARNING_FORMAT_NONLITERAL;

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:56:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:49:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:52:26: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:53:17: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:56:17: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:56:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   54|   
#   55|                   DISABLE_WARNING_FORMAT_NONLITERAL;
#   56|->                 pam_vsyslog(handle, level, buf, ap);
#   57|                   REENABLE_WARNING;
#   58|           } else

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:59:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:47:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:59:17: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:59:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   57|                   REENABLE_WARNING;
#   58|           } else
#   59|->                 pam_vsyslog(handle, level, format, ap);
#   60|   
#   61|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:265:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:257:9: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:257:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:260:20: branch_false: following ‘false’ branch (when ‘item_type > 0’)...
systemd-258.1/src/shared/pam-util.c:265:38: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:265:38: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:265:38: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:265:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  263|                   }
#  264|   
#  265|->                 const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  266|                   r = pam_get_item(handle, item_type, value);
#  267|                   if (!IN_SET(r, PAM_BAD_ITEM, PAM_SUCCESS))

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:266:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:257:9: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:257:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:260:20: branch_false: following ‘false’ branch (when ‘item_type > 0’)...
systemd-258.1/src/shared/pam-util.c:265:38: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:265:38: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:266:21: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:266:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  264|   
#  265|                   const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  266|->                 r = pam_get_item(handle, item_type, value);
#  267|                   if (!IN_SET(r, PAM_BAD_ITEM, PAM_SUCCESS))
#  268|                           break;

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:289:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:281:9: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:281:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:284:20: branch_false: following ‘false’ branch (when ‘data_name’ is non-NULL)...
systemd-258.1/src/shared/pam-util.c:289:38: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:289:38: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pam-util.c:289:38: branch_true: ...to here
systemd-258.1/src/shared/pam-util.c:289:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  287|                   }
#  288|   
#  289|->                 const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  290|                   r = pam_get_data(handle, data_name, value);
#  291|                   if (!IN_SET(r, PAM_NO_MODULE_DATA, PAM_SUCCESS))

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/pam-util.c:290:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/pam-util.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:281:9: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:281:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/pam-util.c:284:20: branch_false: following ‘false’ branch (when ‘data_name’ is non-NULL)...
systemd-258.1/src/shared/pam-util.c:289:38: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:289:38: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pam-util.c:290:21: branch_false: ...to here
systemd-258.1/src/shared/pam-util.c:290:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  288|   
#  289|                   const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  290|->                 r = pam_get_data(handle, data_name, value);
#  291|                   if (!IN_SET(r, PAM_NO_MODULE_DATA, PAM_SUCCESS))
#  292|                           break;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:157:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_slotids, 8)’
systemd-258.1/src/shared/pkcs11-util.c:1408:12: enter_function: entry to ‘module_process’
systemd-258.1/src/shared/pkcs11-util.c:1424:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1426:13: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1427:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1434:16: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1435:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1438:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1441:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1446:22: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1446:22: call_function: calling ‘uri_from_module_info’ from ‘module_process’
systemd-258.1/src/shared/pkcs11-util.c:1446:22: return_function: returning to ‘module_process’ from ‘uri_from_module_info’
systemd-258.1/src/shared/pkcs11-util.c:1447:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1450:22: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1451:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1456:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1458:14: call_function: calling ‘pkcs11_get_slot_list_malloc’ from ‘module_process’
#  155|                           return CKR_HOST_MEMORY;
#  156|   
#  157|->                 rv = m->C_GetSlotList(0, slotids, &n_slotids);
#  158|                   if (rv == CKR_OK) {
#  159|                           *ret_slotids = TAKE_PTR(slotids);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:182:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258.1/src/shared/pkcs11-util.c:1288:12: enter_function: entry to ‘token_process’
systemd-258.1/src/shared/pkcs11-util.c:1302:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1303:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1303:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1304:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1304:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1306:23: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1306:23: call_function: calling ‘pkcs11_token_label’ from ‘token_process’
#  180|                   return NULL;
#  181|   
#  182|->         strstrip(t);
#  183|           return t;
#  184|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258.1/src/shared/pkcs11-util.c:1732:12: enter_function: entry to ‘list_callback’
systemd-258.1/src/shared/pkcs11-util.c:1746:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1747:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1747:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1749:13: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1750:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1757:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1757:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1760:23: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1760:23: call_function: calling ‘pkcs11_token_label’ from ‘list_callback’
systemd-258.1/src/shared/pkcs11-util.c:1760:23: return_function: returning to ‘list_callback’ from ‘pkcs11_token_label’
systemd-258.1/src/shared/pkcs11-util.c:1761:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1764:33: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1764:33: call_function: calling ‘pkcs11_token_manufacturer_id’ from ‘list_callback’
#  191|                   return NULL;
#  192|   
#  193|->         strstrip(t);
#  194|           return t;
#  195|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:204:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258.1/src/shared/pkcs11-util.c:1732:12: enter_function: entry to ‘list_callback’
systemd-258.1/src/shared/pkcs11-util.c:1746:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1747:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1747:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1749:13: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1750:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1757:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1757:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1760:23: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1760:23: call_function: calling ‘pkcs11_token_label’ from ‘list_callback’
systemd-258.1/src/shared/pkcs11-util.c:1760:23: return_function: returning to ‘list_callback’ from ‘pkcs11_token_label’
systemd-258.1/src/shared/pkcs11-util.c:1761:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1764:33: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1764:33: call_function: calling ‘pkcs11_token_manufacturer_id’ from ‘list_callback’
systemd-258.1/src/shared/pkcs11-util.c:1764:33: return_function: returning to ‘list_callback’ from ‘pkcs11_token_manufacturer_id’
systemd-258.1/src/shared/pkcs11-util.c:1765:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1768:23: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1768:23: call_function: calling ‘pkcs11_token_model’ from ‘list_callback’
#  202|                   return NULL;
#  203|   
#  204|->         strstrip(t);
#  205|           return t;
#  206|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:911:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(attributes[0].ulValueLen)’
systemd-258.1/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258.1/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  909|   
#  910|                   attributes[0].pValue = buffer;
#  911|->                 rv = m->C_GetAttributeValue(session, prototype, &attributes[0], 1);
#  912|                   if (rv != CKR_OK)
#  913|                           return log_debug_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:924:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(attributes[1].ulValueLen)’
systemd-258.1/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258.1/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  922|   
#  923|                   attributes[1].pValue = buffer;
#  924|->                 rv = m->C_GetAttributeValue(session, prototype, &attributes[1], 1);
#  925|                   if (rv != CKR_OK)
#  926|                           return log_debug_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:987:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ec_params_attr.pValue’
systemd-258.1/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258.1/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  985|   
#  986|                   ec_params_attr.pValue = ec_params_buffer;
#  987|->                 rv = m->C_GetAttributeValue(session, object, &ec_params_attr, 1);
#  988|                   if (rv != CKR_OK)
#  989|                           return log_error_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:1146:14: warning[-Wanalyzer-malloc-leak]: leak of ‘shared_secret_attr.pValue’
systemd-258.1/src/shared/pkcs11-util.c:1210:5: enter_function: entry to ‘pkcs11_token_decrypt_data’
systemd-258.1/src/shared/pkcs11-util.c:1223:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1224:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1225:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1225:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1226:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1227:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1227:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1229:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1230:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1233:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1239:24: call_function: calling ‘pkcs11_token_decrypt_data_ecc’ from ‘pkcs11_token_decrypt_data’
# 1144|                   return log_oom();
# 1145|   
# 1146|->         rv = m->C_GetAttributeValue(session, shared_secret_handle, &shared_secret_attr, 1);
# 1147|           rv2 = m->C_DestroyObject(session, shared_secret_handle);
# 1148|           if (rv2 != CKR_OK)

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:1189:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(encrypted_data_size)’
systemd-258.1/src/shared/pkcs11-util.c:1180:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1184:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1185:19: acquire_memory: allocated here
systemd-258.1/src/shared/pkcs11-util.c:1186:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1189:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1189:14: danger: ‘malloc(encrypted_data_size)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 1187|                   return log_oom();
# 1188|   
# 1189|->         rv = m->C_Decrypt(session, (CK_BYTE*) encrypted_data, encrypted_data_size, dbuffer, &dbuffer_size);
# 1190|           if (rv == CKR_BUFFER_TOO_SMALL) {
# 1191|                   erase_and_free(dbuffer);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:1197:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(dbuffer_size)’
systemd-258.1/src/shared/pkcs11-util.c:1180:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1184:9: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1186:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1189:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1190:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1191:17: branch_true: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1193:27: acquire_memory: allocated here
systemd-258.1/src/shared/pkcs11-util.c:1194:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1197:22: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1197:22: danger: ‘malloc(dbuffer_size)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1195|                           return log_oom();
# 1196|   
# 1197|->                 rv = m->C_Decrypt(session, (CK_BYTE*) encrypted_data, encrypted_data_size, dbuffer, &dbuffer_size);
# 1198|           }
# 1199|           if (rv != CKR_OK)

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/pkcs11-util.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(random_pool_size())’
systemd-258.1/src/shared/pkcs11-util.c:1255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1257:13: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1258:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1268:15: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1270:18: acquire_memory: allocated here
systemd-258.1/src/shared/pkcs11-util.c:1271:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/pkcs11-util.c:1274:14: branch_false: ...to here
systemd-258.1/src/shared/pkcs11-util.c:1274:14: danger: ‘malloc(random_pool_size())’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1272|                   return log_oom();
# 1273|   
# 1274|->         rv = m->C_GenerateRandom(session, buffer, rps);
# 1275|           if (rv != CKR_OK)
# 1276|                   return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:121:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  119|                   return;
#  120|   
#  121|->         f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:122:34: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  120|   
#  121|           f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|->         f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:123:34: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  121|           f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|->         f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:124:36: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|->         f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:125:32: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|->         f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|           f->event = sd_event_unref(f->event);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:126:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|->         f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|           f->event = sd_event_unref(f->event);
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/ptyfwd.c:127:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258.1/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258.1/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258.1/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258.1/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258.1/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|->         f->event = sd_event_unref(f->event);
#  128|   
#  129|           if (f->output_fd >= 0) {

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/qrcode-util.c:43: warning[uninitvar]: Uninitialized variable: r
#   41|           }
#   42|   
#   43|->         return r;
#   44|   }
#   45|   

Error: COMPILER_WARNING:
systemd-258.1/src/shared/quota-util.c:18:24: error[-Wimplicit-function-declaration]: implicit declaration of function ‘quotactl_fd’; did you mean ‘quotactl’?
#   16|           /* Emulates quotactl_fd() on older kernels that lack it. (i.e. kernels < 5.14) */
#   17|   
#   18|->         r = RET_NERRNO(quotactl_fd(fd, cmd, id, addr));
#   19|           if (!ERRNO_IS_NEG_NOT_SUPPORTED(r))
#   20|                   return r;

Error: COMPILER_WARNING:
systemd-258.1/src/shared/resize-fs.c:6:10: error[fatal error]: linux/xfs.h: No such file or directory
#    4|   #include <linux/fs.h>
#    5|   #include <linux/magic.h>
#    6|-> #include <linux/xfs.h>
#    7|   #include <sys/ioctl.h>
#    8|   #include <sys/vfs.h>

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/rm-rf.c:172:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_mode’
systemd-258.1/src/shared/rm-rf.c:425:5: enter_function: entry to ‘rm_rf_at’
systemd-258.1/src/shared/rm-rf.c:429:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:430:9: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:430:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:434:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:434:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:439:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:439:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:443:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:458:14: call_function: calling ‘openat_harder’ from ‘rm_rf_at’
#  170|           if (fd < 0) {
#  171|                   if (chmod_done)
#  172|->                         (void) fchmod_opath(pfd, old_mode & 07777);
#  173|                   return fd;
#  174|           }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/rm-rf.c:177:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_mode’
systemd-258.1/src/shared/rm-rf.c:425:5: enter_function: entry to ‘rm_rf_at’
systemd-258.1/src/shared/rm-rf.c:429:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:430:9: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:430:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:434:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:434:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:439:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:439:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/rm-rf.c:443:13: branch_false: ...to here
systemd-258.1/src/shared/rm-rf.c:458:14: call_function: calling ‘openat_harder’ from ‘rm_rf_at’
#  175|   
#  176|           if (ret_old_mode)
#  177|->                 *ret_old_mode = old_mode;
#  178|   
#  179|           return TAKE_FD(fd);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/rm-rf.h:39:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258.1/src/test/test-unit-file.c:159:1: enter_function: entry to ‘test_unit_file_remove_from_name_map’
systemd-258.1/src/test/test-unit-file.c:163:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-unit-file.c:164:9: branch_false: ...to here
systemd-258.1/src/test/test-unit-file.c:164:9: acquire_memory: allocated here
systemd-258.1/src/test/test-unit-file.c:164:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-unit-file.c:166:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
systemd-258.1/src/test/test-unit-file.c:167:21: branch_true: ...to here
systemd-258.1/src/test/test-unit-file.c:167:21: call_function: calling ‘test_unit_file_remove_from_name_map_trail’ from ‘test_unit_file_remove_from_name_map’
systemd-258.1/src/test/test-unit-file.c:160:51: call_function: calling ‘rm_rf_physical_and_freep’ from ‘test_unit_file_remove_from_name_map’
#   37|   /* Similar as above, but allow to destroy a directory on a physical file system, and also frees the pointer. */
#   38|   char* rm_rf_physical_and_free(char *p);
#   39|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char*, rm_rf_physical_and_free);
#   40|   
#   41|   /* Similar as above, but also has magic btrfs subvolume powers. */

Error: COMPILER_WARNING:
systemd-258.1/src/shared/shift-uid.c:280:16: error[error]: ‘MQUEUE_MAGIC’ undeclared (first use in this function)
#  278|                  F_TYPE_EQUAL(sfs->f_type, EFIVARFS_MAGIC) ||
#  279|                  F_TYPE_EQUAL(sfs->f_type, HUGETLBFS_MAGIC) ||
#  280|->                F_TYPE_EQUAL(sfs->f_type, MQUEUE_MAGIC) ||
#  281|                  F_TYPE_EQUAL(sfs->f_type, PROC_SUPER_MAGIC) ||
#  282|                  F_TYPE_EQUAL(sfs->f_type, PSTOREFS_MAGIC) ||

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/sleep-config.c:315: warning[uninitvar]: Uninitialized variable: support
#  313|           }
#  314|   
#  315|->         assert(support == SLEEP_SUPPORTED);
#  316|           *ret_support = support;
#  317|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/sleep-config.c:315:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘support’
systemd-258.1/src/shared/sleep-config.c:294:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/sleep-config.c:295:9: branch_false: ...to here
systemd-258.1/src/shared/sleep-config.c:295:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/sleep-config.c:297:14: branch_false: ...to here
systemd-258.1/src/shared/sleep-config.c:297:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/sleep-config.c:303:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/sleep-config.c:315:9: branch_false: ...to here
systemd-258.1/src/shared/sleep-config.c:315:9: danger: use of uninitialized value ‘support’ here
#  313|           }
#  314|   
#  315|->         assert(support == SLEEP_SUPPORTED);
#  316|           *ret_support = support;
#  317|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/specifier.c:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(33)’
systemd-258.1/src/shared/specifier.c:138:5: enter_function: entry to ‘specifier_id128’
systemd-258.1/src/shared/specifier.c:139:32: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/specifier.c:142:13: call_function: inlined call to ‘malloc_multiply’ from ‘specifier_id128’
systemd-258.1/src/shared/specifier.c:143:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/specifier.c:146:16: branch_false: ...to here
systemd-258.1/src/shared/specifier.c:146:9: danger: ‘malloc(33)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  144|                   return -ENOMEM;
#  145|   
#  146|->         *ret = sd_id128_to_string(*id, n);
#  147|           return 0;
#  148|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/specifier.c:158:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(37)’
systemd-258.1/src/shared/specifier.c:150:5: enter_function: entry to ‘specifier_uuid’
systemd-258.1/src/shared/specifier.c:151:32: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/specifier.c:154:13: call_function: inlined call to ‘malloc_multiply’ from ‘specifier_uuid’
systemd-258.1/src/shared/specifier.c:155:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/specifier.c:158:16: branch_false: ...to here
systemd-258.1/src/shared/specifier.c:158:9: danger: ‘malloc(37)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  156|                   return -ENOMEM;
#  157|   
#  158|->         *ret = sd_id128_to_uuid_string(*id, n);
#  159|           return 0;
#  160|   }

Error: COMPILER_WARNING:
systemd-258.1/src/shared/switch-root.c:155:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘pivot_root’
#  153|            * that's not possible however, and hence we simply overmount root */
#  154|           if (resolved_old_root_after)
#  155|->                 r = RET_NERRNO(pivot_root(".", resolved_old_root_after));
#  156|           else {
#  157|                   r = RET_NERRNO(pivot_root(".", "."));

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/shared/tests.c:454:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/shared/tests.c:452:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/shared/tests.c:454:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  452|           va_start(ap, format);
#  453|           DISABLE_WARNING_FORMAT_NONLITERAL;
#  454|->         log_internalv(LOG_ERR, 0, file, line, func, format, ap);
#  455|           REENABLE_WARNING;
#  456|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/tests.h:16:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:16:5: enter_function: entry to ‘main’
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:32:16: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:34:21: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:35:21: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:36:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:38:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:41:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:43:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:43:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:44:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:44:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:46:21: call_function: inlined call to ‘safe_fork’ from ‘main’
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:47:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:56:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:56:17: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:58:17: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-journal/test-journal-init.c:61:17: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘main’
#   14|   
#   15|   static inline void log_set_assert_return_is_criticalp(bool *p) {
#   16|->         log_set_assert_return_is_critical(*p);
#   17|   }
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/tests.h:16:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘log_get_assert_return_is_critical()’
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:51:13: enter_function: entry to ‘test_request_basic’
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:63:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:63:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:65:13: branch_false: ...to here
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:66:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:68:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:68:9: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘test_request_basic’
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:69:9: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘test_request_basic’
#   14|   
#   15|   static inline void log_set_assert_return_is_criticalp(bool *p) {
#   16|->         log_set_assert_return_is_critical(*p);
#   17|   }
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/unit-file.c:564:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&*de.d_name)’
systemd-258.1/src/shared/unit-file.c:630:5: enter_function: entry to ‘unit_file_remove_from_name_map’
systemd-258.1/src/shared/unit-file.c:640:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/unit-file.c:646:13: branch_false: ...to here
systemd-258.1/src/shared/unit-file.c:646:13: call_function: calling ‘unit_file_build_name_map’ from ‘unit_file_remove_from_name_map’
#  562|                                   return log_oom();
#  563|   
#  564|->                         r = hashmap_ensure_put(&ids, &string_hash_ops_free_free, key, dst);
#  565|                           if (r < 0)
#  566|                                   return log_warning_errno(r, "Failed to add entry to hashmap (%s%s%s): %m",

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shared/user-record-nss.c:299:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*sgrp.sg_namp’
systemd-258.1/src/shared/user-record-nss.c:424:5: enter_function: entry to ‘nss_group_record_by_gid’
systemd-258.1/src/shared/user-record-nss.c:436:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record-nss.c:439:12: branch_false: ...to here
systemd-258.1/src/shared/user-record-nss.c:439:12: branch_true: following ‘true’ branch (when ‘with_shadow != 0’)...
systemd-258.1/src/shared/user-record-nss.c:440:21: branch_true: ...to here
systemd-258.1/src/shared/user-record-nss.c:440:21: call_function: calling ‘nss_sgrp_for_group’ from ‘nss_group_record_by_gid’
systemd-258.1/src/shared/user-record-nss.c:440:21: return_function: returning to ‘nss_group_record_by_gid’ from ‘nss_sgrp_for_group’
systemd-258.1/src/shared/user-record-nss.c:441:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record-nss.c:449:13: branch_false: ...to here
systemd-258.1/src/shared/user-record-nss.c:449:13: call_function: calling ‘nss_group_to_group_record’ from ‘nss_group_record_by_gid’
#  297|                   return -EINVAL;
#  298|   
#  299|->         if (sgrp && !streq_ptr(sgrp->sg_namp, grp->gr_name))
#  300|                   return -EINVAL;
#  301|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:152:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  150|           free(h->realm);
#  151|           free(h->user_name_and_realm_auto);
#  152|->         strv_free(h->aliases);
#  153|           free(h->real_name);
#  154|           free(h->email_address);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  153|           free(h->real_name);
#  154|           free(h->email_address);
#  155|->         erase_and_free(h->password_hint);
#  156|           free(h->location);
#  157|           free(h->icon_name);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  162|           free(h->shell);
#  163|   
#  164|->         strv_free(h->environment);
#  165|           free(h->time_zone);
#  166|           free(h->preferred_language);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  165|           free(h->time_zone);
#  166|           free(h->preferred_language);
#  167|->         strv_free(h->additional_languages);
#  168|           rlimit_free_all(h->rlimits);
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258.1/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258.1/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  166|           free(h->preferred_language);
#  167|           strv_free(h->additional_languages);
#  168|->         rlimit_free_all(h->rlimits);
#  169|   
#  170|           free(h->skeleton_directory);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:353: error[uninitvar]: Uninitialized variable: key
#  351|                   int l;
#  352|   
#  353|->                 p = startswith(key, "RLIMIT_");
#  354|                   if (!p)
#  355|                           l = -SYNTHETIC_ERRNO(EINVAL);

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:361: error[uninitvar]: Uninitialized variable: value
#  359|                           return json_log(variant, flags, l, "Resource limit '%s' not known.", key);
#  360|   
#  361|->                 if (!sd_json_variant_is_object(value))
#  362|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Resource limit '%s' has invalid value.", key);
#  363|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:550: error[uninitvar]: Uninitialized variable: e
#  548|   
#  549|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  550|->                 if (!sd_json_variant_is_string(e))
#  551|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of strings.", strna(name));
#  552|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:621: error[uninitvar]: Uninitialized variable: e
#  619|           sd_json_variant *e;
#  620|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  621|->                 if (!sd_json_variant_is_string(e))
#  622|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a string.");
#  623|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:764: error[uninitvar]: Uninitialized variable: e
#  762|                   };
#  763|   
#  764|->                 if (!sd_json_variant_is_object(e))
#  765|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  766|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:822: error[uninitvar]: Uninitialized variable: e
#  820|                           return log_oom();
#  821|   
#  822|->                 r = sd_json_variant_unbase64(e, &b, &l);
#  823|                   if (r < 0)
#  824|                           return json_log(variant, flags, r, "Failed to decode FIDO2 credential ID: %m");

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:877: error[uninitvar]: Uninitialized variable: e
#  875|                   };
#  876|   
#  877|->                 if (!sd_json_variant_is_object(e))
#  878|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  879|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:917: error[uninitvar]: Uninitialized variable: e
#  915|                   };
#  916|   
#  917|->                 if (!sd_json_variant_is_object(e))
#  918|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  919|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:1102: error[uninitvar]: Uninitialized variable: value
# 1100|                   _cleanup_free_ uint8_t *hash = NULL;
# 1101|   
# 1102|->                 if (!sd_json_variant_is_string(value))
# 1103|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid hash.", key);
# 1104|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:1105: error[uninitvar]: Uninitialized variable: key
# 1103|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid hash.", key);
# 1104|   
# 1105|->                 if (!suitable_blob_filename(key))
# 1106|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid filename.", key);
# 1107|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/user-record.c:1121:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sd_json_variant_string(sd_json_variant_by_index(variant,  __unique_prefix_state35.idx)))’
systemd-258.1/src/shared/user-record.c:1085:12: enter_function: entry to ‘dispatch_blob_manifest’
systemd-258.1/src/shared/user-record.c:1087:25: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1092:12: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1092:12: branch_false: following ‘false’ branch (when ‘variant’ is non-NULL)...
systemd-258.1/src/shared/user-record.c:1095:14: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1095:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1098:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/user-record.c:1102:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1105:22: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1105:22: call_function: calling ‘suitable_blob_filename’ from ‘dispatch_blob_manifest’
systemd-258.1/src/shared/user-record.c:1105:22: return_function: returning to ‘dispatch_blob_manifest’ from ‘suitable_blob_filename’
systemd-258.1/src/shared/user-record.c:1105:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1108:28: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1108:28: acquire_memory: allocated here
systemd-258.1/src/shared/user-record.c:1109:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1112:24: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1113:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1116:21: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1117:20: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1120:21: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1121:20: danger: ‘strdup(sd_json_variant_string(sd_json_variant_by_index(variant,  __unique_prefix_state35.idx)))’ leaks here; was allocated at [(24)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/23)
# 1119|   
# 1120|                   r = hashmap_ensure_put(&manifest, &path_hash_ops_free_free, filename, hash);
# 1121|->                 if (r < 0)
# 1122|                           return json_log(value, flags, r, "Failed to insert blob manifest entry '%s': %m", filename);
# 1123|                   TAKE_PTR(filename); /* Ownership transfers to hashmap */

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:1159: error[uninitvar]: Uninitialized variable: e
# 1157|                           sd_id128_t k;
# 1158|   
# 1159|->                         if (!sd_json_variant_is_string(e)) {
# 1160|                                   json_log(e, flags, 0, "Machine ID is not a string, ignoring: %m");
# 1161|                                   continue;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:1203: error[uninitvar]: Uninitialized variable: e
# 1201|                   JSON_VARIANT_ARRAY_FOREACH(e, hns) {
# 1202|   
# 1203|->                         if (!sd_json_variant_is_string(e)) {
# 1204|                                   json_log(e, flags, 0, "Hostname is not a string, ignoring: %m");
# 1205|                                   continue;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:1365: error[uninitvar]: Uninitialized variable: e
# 1363|   
# 1364|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
# 1365|->                 if (!sd_json_variant_is_object(e))
# 1366|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of objects.", strna(name));
# 1367|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/user-record.c:2415: error[uninitvar]: Uninitialized variable: e
# 2413|                           _cleanup_(sd_json_variant_unrefp) sd_json_variant *z = NULL;
# 2414|   
# 2415|->                         if (!sd_json_variant_is_object(e))
# 2416|                                   return -EINVAL;
# 2417|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258.1/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   73|                   return NULL;
#   74|   
#   75|->         sd_json_variant_unref(iterator->query);
#   76|   
#   77|           set_free(iterator->links);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   73|                   return NULL;
#   74|   
#   75|->         sd_json_variant_unref(iterator->query);
#   76|   
#   77|           set_free(iterator->links);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258.1/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   76|   
#   77|           set_free(iterator->links);
#   78|->         strv_free(iterator->dropins);
#   79|   
#   80|           switch (iterator->what) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   76|   
#   77|           set_free(iterator->links);
#   78|->         strv_free(iterator->dropins);
#   79|   
#   80|           switch (iterator->what) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258.1/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   99|                   free(iterator->found_user_name);
#  100|                   free(iterator->found_group_name);
#  101|->                 strv_free(iterator->members_of_group);
#  102|                   free(iterator->filter_user_name);
#  103|                   free(iterator->filter_group_name);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   99|                   free(iterator->found_user_name);
#  100|                   free(iterator->found_group_name);
#  101|->                 strv_free(iterator->members_of_group);
#  102|                   free(iterator->filter_user_name);
#  103|                   free(iterator->filter_group_name);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#  104|   
#  105|                   if (iterator->nss_iterating)
#  106|->                         endgrent();
#  107|   
#  108|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#  112|           }
#  113|   
#  114|->         sd_event_unref(iterator->event);
#  115|   
#  116|           if (iterator->nss_systemd_blocked)

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/userdb.c:1126: warning[uninitvar]: Uninitialized variable: &spwd
# 1124|                           }
# 1125|   
# 1126|->                         r = nss_passwd_to_user_record(pw, r >= 0 ? &spwd : NULL, ret);
# 1127|                           if (r < 0)
# 1128|                                   return r;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/shared/userdb.c:1572: warning[uninitvar]: Uninitialized variable: &sgrp
# 1570|                           }
# 1571|   
# 1572|->                         r = nss_group_to_group_record(gr, r >= 0 ? &sgrp : NULL, ret);
# 1573|                           if (r < 0)
# 1574|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/shared/userdb.c:1999:16: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258.1/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258.1/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258.1/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258.1/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258.1/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
# 1997|                                          "Unable to find symbol _nss_systemd_block in libnss_systemd.so.2: %s", dlerror());
# 1998|   
# 1999|->         return call(b);
# 2000|   }

Error: GCC_ANALYZER_WARNING (CWE-835):
systemd-258.1/src/shared/xml.c:57:21: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258.1/src/shared/xml.c:57:21: danger: infinite loop here
systemd-258.1/src/shared/xml.c:57:20: branch_false: if it ever follows ‘false’ branch, it will always do so...
systemd-258.1/src/shared/xml.c:60:17: branch_false: ...to here
#   55|   
#   56|           for (;;) {
#   57|->                 if (*c == 0)
#   58|                           return XML_END;
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shutdown/detach-dm.c:40:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258.1/src/shutdown/detach-dm.c:158:5: enter_function: entry to ‘dm_detach_all’
systemd-258.1/src/shutdown/detach-dm.c:162:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shutdown/detach-dm.c:162:9: branch_true: ...to here
systemd-258.1/src/shutdown/detach-dm.c:159:44: call_function: calling ‘device_mapper_list_free’ from ‘dm_detach_all’
#   38|           assert(head);
#   39|   
#   40|->         while (*head)
#   41|                   device_mapper_free(head, *head);
#   42|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shutdown/detach-loopback.c:43:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258.1/src/shutdown/detach-loopback.c:217:5: enter_function: entry to ‘loopback_detach_all’
systemd-258.1/src/shutdown/detach-loopback.c:221:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shutdown/detach-loopback.c:221:9: branch_true: ...to here
systemd-258.1/src/shutdown/detach-loopback.c:218:46: call_function: calling ‘loopback_device_list_free’ from ‘loopback_detach_all’
#   41|           assert(head);
#   42|   
#   43|->         while (*head)
#   44|                   loopback_device_free(head, *head);
#   45|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shutdown/detach-md.c:42:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258.1/src/shutdown/detach-md.c:185:5: enter_function: entry to ‘md_detach_all’
systemd-258.1/src/shutdown/detach-md.c:189:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shutdown/detach-md.c:189:9: branch_true: ...to here
systemd-258.1/src/shutdown/detach-md.c:186:42: call_function: calling ‘raid_device_list_free’ from ‘md_detach_all’
#   40|           assert(head);
#   41|   
#   42|->         while (*head)
#   43|                   raid_device_free(head, *head);
#   44|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shutdown/detach-swap.c:28:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258.1/src/shutdown/detach-swap.c:103:5: enter_function: entry to ‘swapoff_all’
systemd-258.1/src/shutdown/detach-swap.c:107:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shutdown/detach-swap.c:107:9: branch_true: ...to here
systemd-258.1/src/shutdown/detach-swap.c:104:43: call_function: calling ‘swap_devices_list_free’ from ‘swapoff_all’
#   26|           assert(head);
#   27|   
#   28|->         while (*head)
#   29|                   swap_device_free(head, *head);
#   30|   }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/shutdown/umount.c:49:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258.1/src/shutdown/umount.c:468:12: enter_function: entry to ‘umount_all_once’
systemd-258.1/src/shutdown/umount.c:472:9: branch_true: following ‘true’ branch...
systemd-258.1/src/shutdown/umount.c:472:9: branch_true: ...to here
systemd-258.1/src/shutdown/umount.c:469:43: call_function: calling ‘mount_points_list_free’ from ‘umount_all_once’
#   47|           assert(head);
#   48|   
#   49|->         while (*head)
#   50|                   mount_point_free(head, *head);
#   51|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/sleep/battery-capacity.c:22:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(battery_name)’
systemd-258.1/src/sleep/battery-capacity.c:184:5: enter_function: entry to ‘fetch_batteries_capacity_by_name’
systemd-258.1/src/sleep/battery-capacity.c:189:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:191:38: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:192:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:195:13: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:196:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:199:9: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:199:9: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
systemd-258.1/src/sleep/battery-capacity.c:201:29: branch_true: ...to here
systemd-258.1/src/sleep/battery-capacity.c:205:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:208:21: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:209:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:214:37: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:214:37: acquire_memory: allocated here
systemd-258.1/src/sleep/battery-capacity.c:215:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sleep/battery-capacity.c:218:21: branch_false: ...to here
systemd-258.1/src/sleep/battery-capacity.c:218:21: call_function: calling ‘CAPACITY_TO_PTR’ from ‘fetch_batteries_capacity_by_name’
systemd-258.1/src/sleep/battery-capacity.c:218:21: return_function: returning to ‘fetch_batteries_capacity_by_name’ from ‘CAPACITY_TO_PTR’
systemd-258.1/src/sleep/battery-capacity.c:22:9: danger: ‘strdup(battery_name)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#   20|   
#   21|   static void *CAPACITY_TO_PTR(int capacity) {
#   22|->         assert(capacity >= 0);
#   23|           assert(capacity <= 100);
#   24|           return INT_TO_PTR(capacity + 1);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/socket-activate/socket-activate.c:175:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(start_fd, 3)’
systemd-258.1/src/socket-activate/socket-activate.c:144:12: enter_function: entry to ‘exec_process’
systemd-258.1/src/socket-activate/socket-activate.c:149:9: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-activate/socket-activate.c:150:9: branch_false: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:150:9: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-activate/socket-activate.c:152:9: branch_false: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:152:9: branch_true: following ‘true’ branch (when ‘var’ is non-NULL)...
systemd-258.1/src/socket-activate/socket-activate.c:155:21: branch_true: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:156:20: branch_true: following ‘true’ branch...
systemd-258.1/src/socket-activate/socket-activate.c:164:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-activate/socket-activate.c:172:20: branch_false: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:172:20: branch_true: following ‘true’ branch (when ‘start_fd != 3’)...
systemd-258.1/src/socket-activate/socket-activate.c:173:25: branch_true: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:173:25: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-activate/socket-activate.c:175:29: branch_false: ...to here
systemd-258.1/src/socket-activate/socket-activate.c:175:29: acquire_resource: opened here
systemd-258.1/src/socket-activate/socket-activate.c:175:28: danger: ‘dup2(start_fd, 3)’ leaks here; was opened at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
#  173|                           assert(n_fds == 1);
#  174|   
#  175|->                         if (dup2(start_fd, SD_LISTEN_FDS_START) < 0)
#  176|                                   return log_error_errno(errno, "Failed to dup connection: %m");
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/socket-proxy/socket-proxyd.c:63:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258.1/src/socket-proxy/socket-proxyd.c:442:12: enter_function: entry to ‘context_add_connection’
systemd-258.1/src/socket-proxy/socket-proxyd.c:445:9: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:447:35: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:448:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:455:13: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:461:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:464:13: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:468:53: call_function: inlined call to ‘malloc_multiply’ from ‘context_add_connection’
systemd-258.1/src/socket-proxy/socket-proxyd.c:469:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:472:9: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:468:49: call_function: inlined call to ‘connection_freep’ from ‘context_add_connection’
#   61|                   return NULL;
#   62|   
#   63|->         if (c->context)
#   64|                   set_remove(c->context->connections, c);
#   65|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/socket-proxy/socket-proxyd.c:412:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258.1/src/socket-proxy/socket-proxyd.c:442:12: enter_function: entry to ‘context_add_connection’
systemd-258.1/src/socket-proxy/socket-proxyd.c:445:9: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:447:35: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:448:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:455:13: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:461:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:464:13: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:468:53: call_function: inlined call to ‘malloc_multiply’ from ‘context_add_connection’
systemd-258.1/src/socket-proxy/socket-proxyd.c:469:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:472:9: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:480:12: branch_false: following ‘false’ branch...
systemd-258.1/src/socket-proxy/socket-proxyd.c:483:9: branch_false: ...to here
systemd-258.1/src/socket-proxy/socket-proxyd.c:485:13: call_function: calling ‘resolve_remote’ from ‘context_add_connection’
systemd-258.1/src/socket-proxy/socket-proxyd.c:468:49: call_function: inlined call to ‘connection_freep’ from ‘context_add_connection’
#  410|           int r;
#  411|   
#  412|->         if (IN_SET(arg_remote_host[0], '/', '@')) {
#  413|                   union sockaddr_union sa;
#  414|                   int sa_len;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/sysext/sysext.c:752:1: warning[-Wanalyzer-malloc-leak]: leak of ‘options’
systemd-258.1/src/sysext/sysext.c:711:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:712:9: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:712:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:714:19: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:714:19: acquire_memory: allocated here
systemd-258.1/src/sysext/sysext.c:715:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:730:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:747:13: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:752:1: danger: ‘options’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  750|   
#  751|           return 0;
#  752|-> }
#  753|   
#  754|   static char *hierarchy_as_single_path_component(const char *hierarchy) {

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/sysext/sysext.c:1343:71: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*op.work_dir, 589824)’
systemd-258.1/src/sysext/sysext.c:1305:12: enter_function: entry to ‘mount_overlayfs_with_op’
systemd-258.1/src/sysext/sysext.c:1315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1316:9: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1316:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1318:13: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1319:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1322:13: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1323:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1326:36: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1327:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1330:64: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1331:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1334:13: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1334:12: branch_true: following ‘true’ branch...
systemd-258.1/src/sysext/sysext.c:1336:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1339:48: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1339:43: acquire_resource: opened here
systemd-258.1/src/sysext/sysext.c:1340:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysext/sysext.c:1343:71: branch_false: ...to here
systemd-258.1/src/sysext/sysext.c:1339:37: call_function: inlined call to ‘closep’ from ‘mount_overlayfs_with_op’
systemd-258.1/src/sysext/sysext.c:1343:71: danger: ‘open(*op.work_dir, 589824)’ leaks here; was opened at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
# 1341|                           return log_error_errno(errno, "Failed to open directory '%s': %m", op->work_dir);
# 1342|   
# 1343|->                 r = mac_selinux_fix_full(dfd, /* inode_path= */ NULL, op->hierarchy, /* flags= */ 0);
# 1344|                   if (r < 0)
# 1345|                           return log_error_errno(r, "Failed to fix SELinux label for '%s': %m", op->work_dir);

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/systemctl/systemctl-edit.c:189:53: warning[-Wanalyzer-null-argument]: use of NULL ‘new_path’ where non-null expected
systemd-258.1/src/systemctl/systemctl-edit.c:171:12: enter_function: entry to ‘unit_file_create_copy’
systemd-258.1/src/systemctl/systemctl-edit.c:177:30: release_memory: ‘new_path’ is NULL
systemd-258.1/src/systemctl/systemctl-edit.c:180:9: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:181:9: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:181:9: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:182:9: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:182:9: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:183:9: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:183:9: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:185:13: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:185:13: call_function: calling ‘get_file_to_edit’ from ‘unit_file_create_copy’
systemd-258.1/src/systemctl/systemctl-edit.c:185:13: return_function: returning to ‘unit_file_create_copy’ from ‘get_file_to_edit’
systemd-258.1/src/systemctl/systemctl-edit.c:186:12: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:189:14: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:189:14: release_memory: ‘new_path’ is NULL
systemd-258.1/src/systemctl/systemctl-edit.c:189:12: branch_true: following ‘true’ branch...
systemd-258.1/src/systemctl/systemctl-edit.c:189:53: branch_true: ...to here
systemd-258.1/src/systemctl/systemctl-edit.c:189:53: danger: argument 1 (‘new_path’) NULL where non-null expected
#  187|                   return r;
#  188|   
#  189|->         if (!path_equal(fragment_path, new_path) && access(new_path, F_OK) >= 0) {
#  190|                   char response;
#  191|   

Error: GCC_ANALYZER_WARNING (CWE-688):
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:45: warning[-Wanalyzer-null-argument]: use of NULL ‘job_type’ where non-null expected
systemd-258.1/src/systemctl/systemctl-start-unit.c:292:5: enter_function: entry to ‘verb_start’
systemd-258.1/src/systemctl/systemctl-start-unit.c:308:12: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:311:9: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:314:12: branch_true: following ‘true’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:317:26: branch_true: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:317:26: call_function: calling ‘verb_to_action’ from ‘verb_start’
systemd-258.1/src/systemctl/systemctl-start-unit.c:317:26: return_function: returning to ‘verb_start’ from ‘verb_to_action’
systemd-258.1/src/systemctl/systemctl-start-unit.c:319:17: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:321:20: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:321:20: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:328:29: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:328:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258.1/src/systemctl/systemctl-start-unit.c:334:36: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:334:35: branch_true: following ‘true’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:360:20: branch_true: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:360:19: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:361:22: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:364:20: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:21: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:20: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:30: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:21: branch_true: following ‘true’ branch...
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:45: branch_true: ...to here
systemd-258.1/src/systemctl/systemctl-start-unit.c:367:45: danger: argument 1 (‘job_type’) NULL where non-null expected
#  365|                           return log_error_errno(r, "Failed to expand names: %m");
#  366|   
#  367|->                 if (!arg_all && expanded && streq(job_type, "start") && !arg_quiet) {
#  368|                           log_warning("Warning: %ssystemctl start called with a glob pattern.%s",
#  369|                                       ansi_highlight_red(),

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/systemctl/systemctl-util.c:734:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bus’
systemd-258.1/src/systemctl/systemctl-util.c:704:5: enter_function: entry to ‘unit_exists’
systemd-258.1/src/systemctl/systemctl-util.c:723:12: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-util.c:726:16: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-util.c:727:12: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-util.c:730:13: call_function: inlined call to ‘acquire_bus’ from ‘unit_exists’
systemd-258.1/src/systemctl/systemctl-util.c:730:13: call_function: inlined call to ‘acquire_bus’ from ‘unit_exists’
systemd-258.1/src/systemctl/systemctl-util.c:731:12: branch_false: following ‘false’ branch...
systemd-258.1/src/systemctl/systemctl-util.c:734:13: branch_false: ...to here
systemd-258.1/src/systemctl/systemctl-util.c:734:13: danger: use of uninitialized value ‘bus’ here
#  732|                   return r;
#  733|   
#  734|->         r = bus_map_all_properties(bus, "org.freedesktop.systemd1", path, property_map, 0, &error, &m, &info);
#  735|           if (r < 0)
#  736|                   return log_error_errno(r, "Failed to get properties: %s", bus_error_message(&error, r));

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/systemd/sd-bus.h:450:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/resolve/resolved-bus.c:1225:13: enter_function: entry to ‘bus_method_resolve_service_complete’
systemd-258.1/src/resolve/resolved-bus.c:1233:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1235:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1235:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1240:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1241:12: branch_true: following ‘true’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1242:21: branch_true: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1242:21: call_function: calling ‘reply_method_errorf’ from ‘bus_method_resolve_service_complete’
#  448|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus, sd_bus_flush_close_unref);
#  449|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_slot, sd_bus_slot_unref);
#  450|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_message, sd_bus_message_unref);
#  451|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_creds, sd_bus_creds_unref);
#  452|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_track, sd_bus_track_unref);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/systemd/sd-bus.h:451:1: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258.1/src/resolve/resolved-bus.c:1861:12: enter_function: entry to ‘bus_method_register_service’
systemd-258.1/src/resolve/resolved-bus.c:1868:22: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1869:15: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1872:9: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1874:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1874:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1877:19: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1877:19: acquire_memory: allocated here
systemd-258.1/src/resolve/resolved-bus.c:1878:12: branch_false: following ‘false’ branch...
systemd-258.1/src/resolve/resolved-bus.c:1881:13: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1864:54: call_function: inlined call to ‘sd_bus_track_unrefp’ from ‘bus_method_register_service’
systemd-258.1/src/resolve/resolved-bus.c:1863:75: branch_false: ...to here
systemd-258.1/src/resolve/resolved-bus.c:1863:75: call_function: calling ‘dnssd_registered_service_freep’ from ‘bus_method_register_service’
systemd-258.1/src/resolve/resolved-bus.c:1862:54: call_function: inlined call to ‘sd_bus_creds_unrefp’ from ‘bus_method_register_service’
#  449|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_slot, sd_bus_slot_unref);
#  450|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_message, sd_bus_message_unref);
#  451|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_creds, sd_bus_creds_unref);
#  452|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_track, sd_bus_track_unref);
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258.1/src/udev/fido_id/fido_id.c:59:12: enter_function: entry to ‘run’
systemd-258.1/src/udev/fido_id/fido_id.c:73:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:76:13: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:78:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:86:13: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:87:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:90:13: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:91:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:94:21: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:98:14: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:98:14: acquire_resource: opened here
systemd-258.1/src/udev/fido_id/fido_id.c:99:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/fido_id/fido_id.c:103:20: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:105:24: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/fido_id/fido_id.c:62:29: call_function: inlined call to ‘closep’ from ‘run’
systemd-258.1/src/udev/fido_id/fido_id.c:60:55: call_function: inlined call to ‘sd_device_unrefp’ from ‘run’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/cryptsetup/cryptsetup.c:2174:12: enter_function: entry to ‘attach_luks_or_plain_or_bitlk’
systemd-258.1/src/cryptsetup/cryptsetup.c:2187:9: branch_false: following ‘false’ branch...
systemd-258.1/src/cryptsetup/cryptsetup.c:2188:9: branch_false: ...to here
systemd-258.1/src/cryptsetup/cryptsetup.c:2188:9: branch_false: following ‘false’ branch...
systemd-258.1/src/cryptsetup/cryptsetup.c:2190:14: branch_false: ...to here
systemd-258.1/src/cryptsetup/cryptsetup.c:2243:12: branch_true: following ‘true’ branch (when ‘token_type == 0’)...
systemd-258.1/src/cryptsetup/cryptsetup.c:2244:24: branch_true: ...to here
systemd-258.1/src/cryptsetup/cryptsetup.c:2244:24: call_function: calling ‘attach_luks_or_plain_or_bitlk_by_tpm2’ from ‘attach_luks_or_plain_or_bitlk’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258.1/src/login/logind-session-device.c:360:5: enter_function: entry to ‘session_device_new’
systemd-258.1/src/login/logind-session-device.c:364:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-session-device.c:366:14: branch_false: ...to here
systemd-258.1/src/login/logind-session-device.c:366:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-session-device.c:369:14: call_function: inlined call to ‘malloc_multiply’ from ‘session_device_new’
systemd-258.1/src/login/logind-session-device.c:370:12: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-session-device.c:373:9: branch_false: ...to here
systemd-258.1/src/login/logind-session-device.c:380:13: call_function: calling ‘session_device_verify’ from ‘session_device_new’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d_originating’
systemd-258.1/src/storagetm/storagetm.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/storagetm/storagetm.c:845:9: branch_false: ...to here
systemd-258.1/src/storagetm/storagetm.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/storagetm/storagetm.c:847:21: branch_false: ...to here
systemd-258.1/src/storagetm/storagetm.c:850:48: call_function: inlined call to ‘sd_device_unrefp’ from ‘device_track_back’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/systemd/sd-device.h:168:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e’
systemd-258.1/src/login/logind-seat.c:270:12: enter_function: entry to ‘seat_trigger_devices’
systemd-258.1/src/login/logind-seat.c:273:9: branch_false: following ‘false’ branch...
systemd-258.1/src/login/logind-seat.c:275:9: branch_false: ...to here
systemd-258.1/src/login/logind-seat.c:275:9: call_function: inlined call to ‘set_clear’ from ‘seat_trigger_devices’
systemd-258.1/src/login/logind-seat.c:277:70: call_function: inlined call to ‘sd_device_enumerator_unrefp’ from ‘seat_trigger_devices’
#  166|   
#  167|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);
#  170|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/systemd/sd-device.h:169:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:150:5: enter_function: entry to ‘device_monitor_new_full’
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:155:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:156:9: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:156:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:158:12: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:179:12: branch_true: following ‘true’ branch (when ‘fd < 0’)...
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:180:24: branch_true: ...to here
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:180:24: acquire_resource: socket created here
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:181:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:185:13: call_function: inlined call to ‘malloc_multiply’ from ‘device_monitor_new_full’
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:186:12: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:152:29: call_function: inlined call to ‘closep’ from ‘device_monitor_new_full’
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:151:64: call_function: inlined call to ‘sd_device_monitor_unrefp’ from ‘device_monitor_new_full’
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-device/device-monitor.c:151:64: call_function: inlined call to ‘sd_device_monitor_unrefp’ from ‘device_monitor_new_full’
#  167|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);
#  170|   
#  171|   _SD_END_DECLARATIONS;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/systemd/sd-dhcp6-option.h:31:1: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:820:12: enter_function: entry to ‘dhcp6_lease_parse_message’
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:829:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:834:9: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:835:33: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:836:26: branch_true: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:840:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:845:40: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:846:20: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:851:17: branch_false: ...to here
systemd-258.1/src/libsystemd-network/sd-dhcp6-lease.c:1027:29: call_function: calling ‘dhcp6_lease_add_vendor_option’ from ‘dhcp6_lease_parse_message’
#   29|   sd_dhcp6_option *sd_dhcp6_option_unref(sd_dhcp6_option *ra);
#   30|   
#   31|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp6_option, sd_dhcp6_option_unref);
#   32|   
#   33|   _SD_END_DECLARATIONS;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/systemd/sd-event.h:180:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e’
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:741:9: branch_true: following ‘true’ branch...
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:741:9: branch_true: ...to here
systemd-258.1/src/libsystemd-network/test-dhcp-client.c:739:46: call_function: inlined call to ‘sd_event_unrefp’ from ‘main’
#  178|   
#  179|   /* Define helpers so that __attribute__((cleanup(sd_event_unrefp))) and similar may be used. */
#  180|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event, sd_event_unref);
#  181|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_unref);
#  182|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_disable_unref);

Error: GCC_ANALYZER_WARNING (CWE-685):
systemd-258.1/src/systemd/sd-id128.h:137:28: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
systemd-258.1/src/udev/udev-builtin-blkid.c:125:12: enter_function: entry to ‘find_gpt_root’
systemd-258.1/src/udev/udev-builtin-blkid.c:128:26: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:132:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:143:21: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:145:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:148:13: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:149:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:151:12: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:151:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:156:13: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:157:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:159:12: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:159:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:164:20: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:226:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:229:20: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:232:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:251:38: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:253:33: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:256:36: branch_true: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:259:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:262:29: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:263:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:268:29: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:269:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-blkid.c:274:33: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:276:28: branch_true: following ‘true’ branch (when ‘need_esp_or_xbootldr != 0’)...
systemd-258.1/src/udev/udev-builtin-blkid.c:276:53: branch_true: ...to here
systemd-258.1/src/udev/udev-builtin-blkid.c:276:53: call_function: calling ‘sd_id128_in_set_sentinel’ from ‘find_gpt_root’ with 3 variadic arguments
#  135|   static __inline__ int sd_id128_in_setv(sd_id128_t a, va_list ap) {
#  136|           for (;;) {
#  137|->                 sd_id128_t b = va_arg(ap, sd_id128_t);
#  138|   
#  139|                   if (sd_id128_is_null(b))

Error: GCC_ANALYZER_WARNING (CWE-685):
systemd-258.1/src/systemd/sd-id128.h:137:28: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (1 consumed)
systemd-258.1/src/test/test-id128.c:24:1: enter_function: entry to ‘test_id128’
systemd-258.1/src/test/test-id128.c:30:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-id128.c:31:9: branch_false: ...to here
systemd-258.1/src/test/test-id128.c:33:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-id128.c:34:9: branch_false: ...to here
systemd-258.1/src/test/test-id128.c:35:9: call_function: calling ‘sd_id128_in_set_sentinel’ from ‘test_id128’ with 2 variadic arguments
#  135|   static __inline__ int sd_id128_in_setv(sd_id128_t a, va_list ap) {
#  136|           for (;;) {
#  137|->                 sd_id128_t b = va_arg(ap, sd_id128_t);
#  138|   
#  139|                   if (sd_id128_is_null(b))

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/systemd/sd-json.h:94:1: warning[-Wanalyzer-malloc-leak]: leak of ‘u’
systemd-258.1/src/shared/user-record.c:1770:5: enter_function: entry to ‘user_record_build’
systemd-258.1/src/shared/user-record.c:1776:9: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1778:9: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1782:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1785:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1785:13: call_function: calling ‘user_record_new’ from ‘user_record_build’
systemd-258.1/src/shared/user-record.c:1785:13: return_function: returning to ‘user_record_build’ from ‘user_record_new’
systemd-258.1/src/shared/user-record.c:1786:12: branch_false: following ‘false’ branch...
systemd-258.1/src/shared/user-record.c:1789:13: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1789:13: call_function: calling ‘user_record_load’ from ‘user_record_build’
systemd-258.1/src/shared/user-record.c:1772:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_build’
systemd-258.1/src/shared/user-record.c:1771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘user_record_build’
<unknown>: branch_false: ...to here
systemd-258.1/src/shared/user-record.c:1771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘user_record_build’
#   92|   void sd_json_variant_unref_many(sd_json_variant **array, size_t n);
#   93|   
#   94|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_json_variant, sd_json_variant_unref);
#   95|   
#   96|   const char* sd_json_variant_string(sd_json_variant *v);

Error: GCC_ANALYZER_WARNING (CWE-404):
systemd-258.1/src/systemd/sd-json.h:94:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:111:5: enter_function: entry to ‘varlink_many_notifyb’
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:116:12: branch_false: following ‘false’ branch...
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:119:60: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:121:9: acquire_resource: ‘va_start’ called here
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:119:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘varlink_many_notifyb’
<unknown>: branch_false: ...to here
systemd-258.1/src/libsystemd/sd-varlink/varlink-util.c:119:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘varlink_many_notifyb’
#   92|   void sd_json_variant_unref_many(sd_json_variant **array, size_t n);
#   93|   
#   94|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_json_variant, sd_json_variant_unref);
#   95|   
#   96|   const char* sd_json_variant_string(sd_json_variant *v);

Error: GCC_ANALYZER_WARNING (CWE-122):
systemd-258.1/src/sysupdate/sysupdate-pattern.c:196:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258.1/src/sysupdate/sysupdate-pattern.c:485:5: enter_function: entry to ‘pattern_format’
systemd-258.1/src/sysupdate/sysupdate-pattern.c:494:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-pattern.c:495:9: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-pattern.c:495:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-pattern.c:496:9: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-pattern.c:496:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-pattern.c:498:13: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-pattern.c:498:13: call_function: calling ‘pattern_split’ from ‘pattern_format’
#  194|                   assert(last->type == PATTERN_LITERAL);
#  195|   
#  196|->                 last->literal[k++] = *e;
#  197|           }
#  198|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/sysupdate/sysupdate-resource.c:163:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258.1/src/sysupdate/sysupdate-resource.c:497:5: enter_function: entry to ‘resource_load_instances’
systemd-258.1/src/sysupdate/sysupdate-resource.c:500:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:502:17: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:506:21: call_function: calling ‘resource_load_from_directory’ from ‘resource_load_instances’
#  161|   
#  162|                   /* Inherit these from the source, if not explicitly overwritten */
#  163|->                 if (instance->metadata.mtime == USEC_INFINITY)
#  164|                           instance->metadata.mtime = timespec_load(&st.st_mtim) ?: USEC_INFINITY;
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/sysupdate/sysupdate-resource.c:246:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258.1/src/sysupdate/sysupdate-resource.c:497:5: enter_function: entry to ‘resource_load_instances’
systemd-258.1/src/sysupdate/sysupdate-resource.c:500:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:502:17: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:515:21: call_function: calling ‘resource_load_from_blockdev’ from ‘resource_load_instances’
#  244|                           return r;
#  245|   
#  246|->                 instance->partition_info = pinfo;
#  247|                   pinfo = (PartitionInfo) PARTITION_INFO_NULL;
#  248|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/sysupdate/sysupdate-resource.c:450:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258.1/src/sysupdate/sysupdate-resource.c:352:12: enter_function: entry to ‘resource_load_from_web’
systemd-258.1/src/sysupdate/sysupdate-resource.c:364:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:366:14: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:366:14: branch_true: following ‘true’ branch (when ‘web_cache’ is non-NULL)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:366:57: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:367:12: branch_true: following ‘true’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:368:17: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:382:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:384:14: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:384:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:390:16: branch_true: following ‘true’ branch (when ‘left != 0’)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:391:71: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:399:20: branch_false: following ‘false’ branch (when ‘left > 66’)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:402:21: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:402:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:405:21: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:406:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:411:21: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:411:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:415:22: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:420:20: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:422:20: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:422:20: branch_false: following ‘false’ branch (when ‘p != e’)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:425:33: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:426:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:429:22: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:429:20: branch_true: following ‘true’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:431:21: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:431:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:434:21: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:435:20: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:437:20: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:437:20: branch_true: following ‘true’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:438:46: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:441:28: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:444:29: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:444:29: call_function: calling ‘resource_add_instance’ from ‘resource_load_from_web’
systemd-258.1/src/sysupdate/sysupdate-resource.c:444:29: return_function: returning to ‘resource_load_from_web’ from ‘resource_add_instance’
systemd-258.1/src/sysupdate/sysupdate-resource.c:445:28: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:448:25: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:448:25: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:450:37: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:450:37: danger: use of uninitialized value ‘instance’ here
#  448|                           assert(hlen == sizeof(instance->metadata.sha256sum));
#  449|   
#  450|->                         if (instance->metadata.sha256sum_set) {
#  451|                                   if (memcmp(instance->metadata.sha256sum, h, hlen) != 0)
#  452|                                           return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "SHA256 sum parsed from filename and manifest don't match at line %zu, refusing.", line_nr);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/sysupdate/sysupdate-resource.c:753:1: warning[-Wanalyzer-malloc-leak]: leak of ‘relative_to’
systemd-258.1/src/sysupdate/sysupdate-resource.c:599:5: enter_function: entry to ‘resource_resolve_path’
systemd-258.1/src/sysupdate/sysupdate-resource.c:609:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:611:13: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:617:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:658:20: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:658:19: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:698:20: call_function: inlined call to ‘RESOURCE_IS_FILESYSTEM’ from ‘resource_resolve_path’
systemd-258.1/src/sysupdate/sysupdate-resource.c:703:25: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:705:39: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:705:39: acquire_memory: allocated here
systemd-258.1/src/sysupdate/sysupdate-resource.c:706:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:727:20: branch_true: following ‘true’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:728:32: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:728:32: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate-resource.c:728:32: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:728:32: branch_true: following ‘true’ branch (when ‘_e < 0’)...
systemd-258.1/src/sysupdate/sysupdate-resource.c:728:32: branch_true: ...to here
systemd-258.1/src/sysupdate/sysupdate-resource.c:753:1: danger: ‘relative_to’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  751|           free_and_replace(rr->path, p);
#  752|           return 1;
#  753|-> }
#  754|   
#  755|   static const char *resource_type_table[_RESOURCE_TYPE_MAX] = {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/sysupdate/sysupdate.c:184:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
systemd-258.1/src/sysupdate/sysupdate.c:905:12: enter_function: entry to ‘context_make_offline’
systemd-258.1/src/sysupdate/sysupdate.c:909:9: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate.c:914:19: call_function: inlined call to ‘context_new’ from ‘context_make_offline’
systemd-258.1/src/sysupdate/sysupdate.c:915:12: branch_false: following ‘false’ branch...
systemd-258.1/src/sysupdate/sysupdate.c:918:13: branch_false: ...to here
systemd-258.1/src/sysupdate/sysupdate.c:918:13: call_function: calling ‘context_read_definitions’ from ‘context_make_offline’
systemd-258.1/src/sysupdate/sysupdate.c:906:43: call_function: inlined call to ‘context_freep’ from ‘context_make_offline’
#  182|           assert(c);
#  183|   
#  184|->         if (arg_definitions)
#  185|                   dirs = strv_new(arg_definitions);
#  186|           else if (arg_component) {

Error: COMPILER_WARNING:
systemd-258.1/src/test/test-argv-util.c:39:9: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   37|           assert_se(pid_get_comm(0, &comm) >= 0);
#   38|           log_debug("comm = <%s>", comm);
#   39|->         assert_se(strneq(comm, p, TASK_COMM_LEN-1));
#   40|           /* We expect comm to be at most 16 bytes (TASK_COMM_LEN). The kernel may raise this limit in the
#   41|            * future. We'd only check the initial part, at least until we recompile, but this will still pass. */

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-async.c:55:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258.1/src/test/test-async.c:36:1: enter_function: entry to ‘test_asynchronous_close’
systemd-258.1/src/test/test-async.c:41:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-async.c:42:9: branch_false: ...to here
systemd-258.1/src/test/test-async.c:43:9: call_function: calling ‘wait_fd_closed’ from ‘test_asynchronous_close’
systemd-258.1/src/test/test-async.c:43:9: return_function: returning to ‘test_asynchronous_close’ from ‘wait_fd_closed’
systemd-258.1/src/test/test-async.c:46:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-async.c:48:12: branch_false: ...to here
systemd-258.1/src/test/test-async.c:48:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-async.c:51:17: branch_true: ...to here
systemd-258.1/src/test/test-async.c:51:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-async.c:53:22: branch_false: ...to here
systemd-258.1/src/test/test-async.c:53:22: acquire_resource: opened here
systemd-258.1/src/test/test-async.c:54:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-async.c:55:17: branch_false: ...to here
systemd-258.1/src/test/test-async.c:55:17: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#   53|                   fd = open("/dev/null", O_RDONLY|O_CLOEXEC);
#   54|                   ASSERT_OK(fd);
#   55|->                 asynchronous_close(fd);
#   56|                   wait_fd_closed(fd);
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:44:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(s, 524544)’
systemd-258.1/src/test/test-bpf-devices.c:17:13: enter_function: entry to ‘test_policy_closed’
systemd-258.1/src/test/test-bpf-devices.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:27:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:28:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:30:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:33:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
systemd-258.1/src/test/test-bpf-devices.c:42:22: branch_true: ...to here
systemd-258.1/src/test/test-bpf-devices.c:42:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:43:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:44:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:44:26: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:48:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:49:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:49:26: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:40:37: call_function: inlined call to ‘closep’ from ‘test_policy_closed’
systemd-258.1/src/test/test-bpf-devices.c:44:26: danger: ‘open(s, 524544)’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#   42|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   43|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   44|->                 wrong += fd < 0 && errno == EPERM;
#   45|                   /* We ignore errors other than EPERM, e.g. ENOENT or ENXIO */
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:49:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(s, 524545)’
systemd-258.1/src/test/test-bpf-devices.c:17:13: enter_function: entry to ‘test_policy_closed’
systemd-258.1/src/test/test-bpf-devices.c:25:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:27:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:28:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:30:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:33:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
systemd-258.1/src/test/test-bpf-devices.c:42:22: branch_true: ...to here
systemd-258.1/src/test/test-bpf-devices.c:43:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:44:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:44:26: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:47:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:48:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:49:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:49:26: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:40:50: call_function: inlined call to ‘closep’ from ‘test_policy_closed’
systemd-258.1/src/test/test-bpf-devices.c:49:26: danger: ‘open(s, 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#   47|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   48|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   49|->                 wrong += fd2 < 0 && errno == EPERM;
#   50|           }
#   51|           assert_se(wrong == 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:82:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:80:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:81:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:82:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:77:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:82:26: danger: ‘open("/dev/null", 524544)’ leaks here; was opened at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
#   80|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   81|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   82|->                 wrong += fd < 0;
#   83|   
#   84|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:86:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:81:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:82:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:84:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:77:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:86:26: danger: ‘open("/dev/null", 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#   84|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   85|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   86|->                 wrong += fd2 < 0;
#   87|           }
#   88|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:95:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:93:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:94:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:95:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:90:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:95:26: danger: ‘open("/dev/random", 524544)’ leaks here; was opened at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
#   93|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   94|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   95|->                 wrong += fd < 0;
#   96|   
#   97|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:99:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:94:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:95:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:97:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:90:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:99:26: danger: ‘open("/dev/random", 524545)’ leaks here; was opened at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
#   97|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   98|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   99|->                 wrong += fd2 >= 0;
#  100|           }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:108:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:106:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:107:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:108:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:103:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:108:26: danger: ‘open("/dev/zero", 524544)’ leaks here; was opened at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
#  106|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  107|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  108|->                 wrong += fd >= 0;
#  109|   
#  110|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:112:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:107:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:108:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:110:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:103:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:112:26: danger: ‘open("/dev/zero", 524545)’ leaks here; was opened at [(18)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/17)
#  110|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  111|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  112|->                 wrong += fd2 < 0;
#  113|           }
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:121:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:119:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:120:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:121:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:124:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:125:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:116:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:121:26: danger: ‘open("/dev/full", 524544)’ leaks here; was opened at [(18)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/17)
#  119|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  120|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  121|->                 wrong += fd >= 0;
#  122|   
#  123|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:125:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:120:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:121:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:123:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:124:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:125:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:116:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258.1/src/test/test-bpf-devices.c:125:26: danger: ‘open("/dev/full", 524545)’ leaks here; was opened at [(20)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/19)
#  123|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  124|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  125|->                 wrong += fd2 >= 0;
#  126|           }
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:154:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:152:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:153:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:154:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:149:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:154:26: danger: ‘open("/dev/null", 524544)’ leaks here; was opened at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
#  152|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  153|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  154|->                 wrong += fd < 0;
#  155|   
#  156|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:158:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:153:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:154:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:156:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:149:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:158:26: danger: ‘open("/dev/null", 524545)’ leaks here; was opened at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
#  156|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  157|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  158|->                 wrong += fd2 < 0;
#  159|           }
#  160|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:167:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:165:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:166:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:167:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:162:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:167:26: danger: ‘open("/dev/full", 524544)’ leaks here; was opened at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
#  165|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  166|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  167|->                 wrong += fd < 0;
#  168|   
#  169|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:171:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:166:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:167:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:169:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:162:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:171:26: danger: ‘open("/dev/full", 524545)’ leaks here; was opened at [(12)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/11)
#  169|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  170|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  171|->                 wrong += fd2 < 0;
#  172|           }
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:180:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524544)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:178:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:179:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:180:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:183:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:184:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:175:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:180:26: danger: ‘open("/dev/tty", 524544)’ leaks here; was opened at [(12)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/11)
#  178|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  179|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  180|->                 wrong += fd >= 0;
#  181|   
#  182|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:184:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524545)’
systemd-258.1/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:179:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:180:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:182:23: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:183:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:184:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:175:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258.1/src/test/test-bpf-devices.c:184:26: danger: ‘open("/dev/tty", 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/13)
#  182|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  183|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  184|->                 wrong += fd2 >= 0;
#  185|           }
#  186|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:213:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524546)’
systemd-258.1/src/test/test-bpf-devices.c:190:13: enter_function: entry to ‘test_policy_allow_list_major_star’
systemd-258.1/src/test/test-bpf-devices.c:198:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:200:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:201:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:203:13: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:204:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:210:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:210:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:211:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:212:20: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:207:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major_star’
systemd-258.1/src/test/test-bpf-devices.c:213:34: danger: ‘open("/dev/null", 524546)’ leaks here; was opened at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
#  211|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  212|                   if (type == 'c')
#  213|->                         wrong += fd < 0;
#  214|                   else
#  215|                           wrong += fd >= 0;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-bpf-devices.c:245:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524546)’
systemd-258.1/src/test/test-bpf-devices.c:221:13: enter_function: entry to ‘test_policy_empty’
systemd-258.1/src/test/test-bpf-devices.c:229:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:231:12: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:243:22: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:243:22: acquire_resource: opened here
systemd-258.1/src/test/test-bpf-devices.c:244:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-bpf-devices.c:245:26: branch_false: ...to here
systemd-258.1/src/test/test-bpf-devices.c:240:37: call_function: inlined call to ‘closep’ from ‘test_policy_empty’
systemd-258.1/src/test/test-bpf-devices.c:245:26: danger: ‘open("/dev/null", 524546)’ leaks here; was opened at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
#  243|                   fd = open(s, O_CLOEXEC|O_RDWR|O_NOCTTY);
#  244|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  245|->                 wrong += fd >= 0;
#  246|           }
#  247|   

Error: COMPILER_WARNING:
systemd-258.1/src/test/test-bpf-firewall.c:4:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    2|   
#    3|   #include <linux/bpf.h>
#    4|-> #include <linux/bpf_insn.h>
#    5|   #include <unistd.h>
#    6|   

Error: COMPILER_WARNING:
systemd-258.1/src/test/test-bpf-foreign-programs.c:4:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    2|   
#    3|   #include <linux/bpf.h>
#    4|-> #include <linux/bpf_insn.h>
#    5|   #include <string.h>
#    6|   #include <unistd.h>

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-btrfs.c:29:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 589824)’
systemd-258.1/src/test/test-btrfs.c:23:14: acquire_resource: opened here
systemd-258.1/src/test/test-btrfs.c:24:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-btrfs.c:27:33: branch_false: ...to here
systemd-258.1/src/test/test-btrfs.c:29:21: danger: ‘open("/", 589824)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   27|                   BtrfsSubvolInfo info;
#   28|   
#   29|->                 r = btrfs_subvol_get_info_fd(fd, 0, &info);
#   30|                   if (r < 0)
#   31|                           log_error_errno(r, "Failed to get subvolume info: %m");

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-capability-util.c:125:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258.1/src/test/test-capability-util.c:123:16: acquire_resource: socket created here
systemd-258.1/src/test/test-capability-util.c:124:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-capability-util.c:125:9: branch_false: ...to here
systemd-258.1/src/test/test-capability-util.c:125:9: danger: ‘sock’ leaks here
#  123|           sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
#  124|           assert_se(sock >= 0);
#  125|->         safe_close(sock);
#  126|   
#  127|           assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_NET_RAW)) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-capability-util.c:142:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258.1/src/test/test-capability-util.c:140:16: acquire_resource: socket created here
systemd-258.1/src/test/test-capability-util.c:141:9: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
systemd-258.1/src/test/test-capability-util.c:142:9: branch_false: ...to here
systemd-258.1/src/test/test-capability-util.c:142:9: danger: ‘sock’ leaks here
#  140|           sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
#  141|           ASSERT_OK(sock);
#  142|->         safe_close(sock);
#  143|   
#  144|           assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0);

Error: CPPCHECK_WARNING (CWE-587):
systemd-258.1/src/test/test-cgroup.c:158: error[assignBoolToPointer]: Boolean value assigned to pointer.
#  156|                   ASSERT_EQ(id, id2);
#  157|   
#  158|->                 ASSERT_OK_EQ(inode_same_at(fd, NULL, fd2, NULL, AT_EMPTY_PATH), true);
#  159|           }
#  160|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress-benchmark.c:57:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
systemd-258.1/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258.1/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
#   55|                   size_t step = count / 10;
#   56|   
#   57|->                 random_bytes(buf, step);
#   58|                   memzero(buf + 1*step, step);
#   59|                   random_bytes(buf + 2*step, step);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress-benchmark.c:68:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
systemd-258.1/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258.1/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
#   66|                   memzero(buf + 9*step, step);
#   67|           } else
#   68|->                 assert_not_reached();
#   69|   
#   70|           return buf;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress-benchmark.c:100:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1048577, 1)’
systemd-258.1/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258.1/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
systemd-258.1/src/test/test-compress-benchmark.c:82:16: return_function: returning to ‘test_compress_decompress’ from ‘make_buf’
systemd-258.1/src/test/test-compress-benchmark.c:83:15: acquire_memory: allocated here
systemd-258.1/src/test/test-compress-benchmark.c:84:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress-benchmark.c:86:13: branch_false: ...to here
systemd-258.1/src/test/test-compress-benchmark.c:88:28: branch_true: following ‘true’ branch (when ‘i != 1048577’)...
systemd-258.1/src/test/test-compress-benchmark.c:89:24: branch_true: ...to here
systemd-258.1/src/test/test-compress-benchmark.c:92:24: call_function: calling ‘permute’ from ‘test_compress_decompress’
systemd-258.1/src/test/test-compress-benchmark.c:92:24: return_function: returning to ‘test_compress_decompress’ from ‘permute’
systemd-258.1/src/test/test-compress-benchmark.c:93:20: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress-benchmark.c:96:17: branch_false: ...to here
systemd-258.1/src/test/test-compress-benchmark.c:96:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress-benchmark.c:98:17: branch_false: ...to here
systemd-258.1/src/test/test-compress-benchmark.c:98:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress-benchmark.c:100:21: branch_false: ...to here
systemd-258.1/src/test/test-compress-benchmark.c:100:21: danger: ‘calloc(1048577, 1)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
#   98|                   memzero(buf, MIN(size + 1000, MAX_SIZE));
#   99|   
#  100|->                 r = compress(text, size, buf, size, &j, /* level = */ -1);
#  101|                   /* assume compression must be successful except for small or random inputs */
#  102|                   assert_se(r >= 0 || (size < 2048 && r == -ENOBUFS) || streq(type, "random"));

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress.c:113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(512)’
systemd-258.1/src/test/test-compress.c:111:36: acquire_memory: allocated here
systemd-258.1/src/test/test-compress.c:112:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:113:13: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:113:13: danger: ‘malloc(512)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  111|           compressed = compressed1 = malloc(BUFSIZE_1);
#  112|           assert_se(compressed1);
#  113|->         r = compress(data, data_len, compressed, BUFSIZE_1, &csize, /* level = */ -1);
#  114|           if (r == -ENOBUFS) {
#  115|                   log_info_errno(r, "compression failed: %m");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress.c:120:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(20000)’
systemd-258.1/src/test/test-compress.c:112:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:113:13: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:114:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-compress.c:115:17: branch_true: ...to here
systemd-258.1/src/test/test-compress.c:115:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:116:17: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:116:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:118:44: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:118:44: acquire_memory: allocated here
systemd-258.1/src/test/test-compress.c:119:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:120:21: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:120:21: danger: ‘malloc(20000)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  118|                   compressed = compressed2 = malloc(BUFSIZE_2);
#  119|                   assert_se(compressed2);
#  120|->                 r = compress(data, data_len, compressed, BUFSIZE_2, &csize, /* level = */ -1);
#  121|           }
#  122|           assert_se(r >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress.c:160:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2’
systemd-258.1/src/test/test-compress.c:153:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:155:28: branch_true: following ‘true’ branch (when ‘i != 125’)...
systemd-258.1/src/test/test-compress.c:158:17: branch_true: ...to here
systemd-258.1/src/test/test-compress.c:158:17: acquire_memory: allocated here
systemd-258.1/src/test/test-compress.c:158:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:160:17: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:160:17: danger: ‘buf2’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  158|                   assert_se(buf2 = malloc(i));
#  159|   
#  160|->                 assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, TEXT[i]) == 1);
#  161|                   assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, 'y') == 0);
#  162|           }

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-compress.c:196:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(srcfile, 524288)’
systemd-258.1/src/test/test-compress.c:181:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:186:9: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:190:9: acquire_resource: opened here
systemd-258.1/src/test/test-compress.c:190:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:192:9: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:194:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:196:9: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:196:9: danger: ‘open(srcfile, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  194|           assert_se((dst = mkostemp_safe(pattern)) >= 0);
#  195|   
#  196|->         ASSERT_OK(compress(src, dst, -1, &uncompressed_size));
#  197|   
#  198|           if (cat) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-compress.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4194304)’
systemd-258.1/src/test/test-compress.c:244:9: acquire_memory: allocated here
systemd-258.1/src/test/test-compress.c:244:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-compress.c:245:9: branch_false: ...to here
systemd-258.1/src/test/test-compress.c:249:13: danger: ‘malloc(4194304)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  247|           huge[HUGE_SIZE - 1] = '\0';
#  248|   
#  249|->         r = sym_LZ4_compress_default(huge, buf, HUGE_SIZE, buf_size);
#  250|           assert_se(r >= 0);
#  251|           compressed = r;

Error: CPPCHECK_WARNING (CWE-476):
systemd-258.1/src/test/test-copy.c:619: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: digest
#  617|           struct fsverity_digest *digest = malloc(sizeof (struct fsverity_digest) + digest_size);
#  618|           ASSERT_NOT_NULL(digest);
#  619|->         digest->digest_size = digest_size;
#  620|           return digest;
#  621|   }

Error: CPPCHECK_WARNING (CWE-587):
systemd-258.1/src/test/test-copy.c:645: error[assignBoolToPointer]: Boolean value assigned to pointer.
#  643|           bool enabled_a = measure_fsverity(dirfd_a, name, digest_a);
#  644|           bool enabled_b = measure_fsverity(dirfd_b, name, digest_b);
#  645|->         ASSERT_EQ(enabled_a, enabled_b);
#  646|           if (enabled_a) {
#  647|                   ASSERT_EQ(digest_a->digest_algorithm, digest_b->digest_algorithm);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-device-nodes.c:15:9: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
systemd-258.1/src/test/test-device-nodes.c:12:21: acquire_memory: allocated here
systemd-258.1/src/test/test-device-nodes.c:14:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-device-nodes.c:15:9: branch_false: ...to here
systemd-258.1/src/test/test-device-nodes.c:15:9: danger: ‘out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   13|   
#   14|           assert_se(out);
#   15|->         assert_se(encode_devnode_name(in, out, out_len) >= 0);
#   16|           puts(out);
#   17|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fd-util.c:150:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
systemd-258.1/src/test/test-fd-util.c:146:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:147:9: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:147:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:149:18: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:149:18: acquire_resource: opened here
systemd-258.1/src/test/test-fd-util.c:150:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  148|   
#  149|           new_fd = open("/dev/null", O_RDONLY);
#  150|->         assert_se(new_fd == 0);
#  151|   
#  152|           new_fd = fd_move_above_stdio(new_fd);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fd-util.c:155:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fcntl(0, 0, 3))’
systemd-258.1/src/test/test-fd-util.c:146:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:147:9: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:147:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:149:18: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:150:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:152:18: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:153:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:155:9: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:155:9: acquire_resource: opened here
systemd-258.1/src/test/test-fd-util.c:155:9: danger: ‘dup(fcntl(0, 0, 3))’ leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  153|           assert_se(new_fd >= 3);
#  154|   
#  155|->         assert_se(dup(original_stdin) == 0);
#  156|           assert_se(close_nointr(original_stdin) != EBADF);
#  157|           assert_se(close_nointr(new_fd) != EBADF);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fd-util.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524289)’
systemd-258.1/src/test/test-fd-util.c:165:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:167:12: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:167:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-fd-util.c:168:38: branch_true: ...to here
systemd-258.1/src/test/test-fd-util.c:176:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:179:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:182:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:183:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:183:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:184:24: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:186:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:187:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:187:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:188:24: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:190:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:191:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:191:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:192:24: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:198:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:199:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:199:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:200:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:200:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:201:32: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:202:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fd-util.c:204:17: branch_false: ...to here
systemd-258.1/src/test/test-fd-util.c:204:17: acquire_resource: opened here
systemd-258.1/src/test/test-fd-util.c:204:17: danger: ‘open("/dev/full", 524289)’ leaks here; was opened at [(28)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/27)
#  202|                   assert_se(pipe_read_fd >= 3);
#  203|   
#  204|->                 assert_se(open("/dev/full", O_WRONLY|O_CLOEXEC) == 0);
#  205|                   assert_se(memfd_new_and_seal_string("data", "foobar") == 2);
#  206|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fdset.c:18:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258.1/src/test/test-fdset.c:17:14: acquire_resource: opened here
systemd-258.1/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:18:9: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   16|   
#   17|           fd = open("/dev/null", O_CLOEXEC|O_RDONLY);
#   18|->         assert_se(fd >= 0);
#   19|   
#   20|           assert_se(fdset_new_fill(/* filter_cloexec= */ -1, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fdset.c:26:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258.1/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:20:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:21:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:21:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:22:17: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:25:14: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:25:14: acquire_resource: opened here
systemd-258.1/src/test/test-fdset.c:26:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:28:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:26:9: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#   24|   
#   25|           fd = open("/dev/null", O_CLOEXEC|O_RDONLY);
#   26|->         assert_se(fd >= 0);
#   27|   
#   28|           assert_se(fdset_new_fill(/* filter_cloexec= */ 0, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fdset.c:39:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
systemd-258.1/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:20:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:21:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:21:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:22:17: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:23:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:25:14: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:26:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:28:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:28:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:29:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:29:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:30:17: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:33:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:34:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:34:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:35:17: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:36:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:38:14: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:38:14: acquire_resource: opened here
systemd-258.1/src/test/test-fdset.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fdset.c:41:9: branch_false: ...to here
systemd-258.1/src/test/test-fdset.c:39:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
#   37|   
#   38|           fd = open("/dev/null", O_RDONLY);
#   39|->         assert_se(fd >= 0);
#   40|   
#   41|           assert_se(fdset_new_fill(/* filter_cloexec= */ 1, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-fileio.c:159:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(strextend_with_separator_internal(0, 0, ". ", file, " && /bin/echo -n \"$",  variable, "\"", 0), "re")’
systemd-258.1/src/test/test-fileio.c:153:13: enter_function: entry to ‘test_one_shell_var’
systemd-258.1/src/test/test-fileio.c:158:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fileio.c:159:9: branch_false: ...to here
systemd-258.1/src/test/test-fileio.c:159:9: acquire_memory: allocated here
systemd-258.1/src/test/test-fileio.c:159:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fileio.c:160:9: branch_false: ...to here
systemd-258.1/src/test/test-fileio.c:160:9: call_function: calling ‘read_full_stream’ from ‘test_one_shell_var’
systemd-258.1/src/test/test-fileio.c:155:32: call_function: inlined call to ‘pclosep’ from ‘test_one_shell_var’
systemd-258.1/src/test/test-fileio.c:159:9: danger: ‘popen(strextend_with_separator_internal(0, 0, ". ", file, " && /bin/echo -n \"$",  variable, "\"", 0), "re")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  157|   
#  158|           assert_se(cmd = strjoin(". ", file, " && /bin/echo -n \"$", variable, "\""));
#  159|->         assert_se(f = popen(cmd, "re"));
#  160|           assert_se(read_full_stream(f, &from_shell, &sz) >= 0);
#  161|           assert_se(sz == strlen(value));

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-fileio.c:907:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 524289, 0)’
systemd-258.1/src/test/test-fileio.c:896:1: enter_function: entry to ‘test_read_full_file_socket’
systemd-258.1/src/test/test-fileio.c:906:20: acquire_resource: socket created here
systemd-258.1/src/test/test-fileio.c:907:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-fileio.c:909:9: branch_false: ...to here
systemd-258.1/src/test/test-fileio.c:898:29: call_function: inlined call to ‘closep’ from ‘test_read_full_file_socket’
systemd-258.1/src/test/test-fileio.c:907:9: danger: ‘socket(1, 524289, 0)’ leaks here
#  905|   
#  906|           listener = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0);
#  907|->         assert_se(listener >= 0);
#  908|   
#  909|           assert_se(mkdtemp_malloc(NULL, &z) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(val1)’
systemd-258.1/src/test/test-hashmap-plain.c:169:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:170:16: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:171:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:172:16: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:173:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:174:16: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:175:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:177:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:180:33: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:180:9: danger: ‘strdup(val1)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/8)
#  178|           n = hashmap_new(&string_hash_ops_value_free);
#  179|   
#  180|->         hashmap_put(n, "key 1", strdup(val1));
#  181|           hashmap_put(m, "key 1", val1);
#  182|           hashmap_put(m, "key 2", val2);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:287:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key1)’
systemd-258.1/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:287:24: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:287:9: danger: ‘strdup(&key1)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/6)
#  285|           ASSERT_NULL(r);
#  286|   
#  287|->         hashmap_put(m, strdup(key1), strdup(val1));
#  288|           hashmap_put(m, strdup(key2), strdup(val2));
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:287:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val1)’
systemd-258.1/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:287:38: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:287:9: danger: ‘strdup(&val1)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/6)
#  285|           ASSERT_NULL(r);
#  286|   
#  287|->         hashmap_put(m, strdup(key1), strdup(val1));
#  288|           hashmap_put(m, strdup(key2), strdup(val2));
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key2)’
systemd-258.1/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:288:24: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:288:9: danger: ‘strdup(&key2)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/6)
#  286|   
#  287|           hashmap_put(m, strdup(key1), strdup(val1));
#  288|->         hashmap_put(m, strdup(key2), strdup(val2));
#  289|   
#  290|           r = hashmap_remove2(m, key1, &r2);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val2)’
systemd-258.1/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:287:24: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:288:38: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:288:9: danger: ‘strdup(&val2)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/7)
#  286|   
#  287|           hashmap_put(m, strdup(key1), strdup(val1));
#  288|->         hashmap_put(m, strdup(key2), strdup(val2));
#  289|   
#  290|           r = hashmap_remove2(m, key1, &r2);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:736:22: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:736:22: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/9)
#  734|   
#  735|           FOREACH_ELEMENT(test, tests) {
#  736|->                 ts = now(CLOCK_MONOTONIC);
#  737|                   assert_se(h = hashmap_new(test->ops));
#  738|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:737:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/9)
#  735|           FOREACH_ELEMENT(test, tests) {
#  736|                   ts = now(CLOCK_MONOTONIC);
#  737|->                 assert_se(h = hashmap_new(test->ops));
#  738|   
#  739|                   custom_counter = 0;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:744:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/8)
#  742|                           char *k, *v;
#  743|   
#  744|->                         xsprintf(s, "%u", i);
#  745|                           assert_se(k = strdup(s));
#  746|                           assert_se(v = strdup(s));

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:745:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/8)
#  743|   
#  744|                           xsprintf(s, "%u", i);
#  745|->                         assert_se(k = strdup(s));
#  746|                           assert_se(v = strdup(s));
#  747|                           custom_counter += 2;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:746:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/8)
#  744|                           xsprintf(s, "%u", i);
#  745|                           assert_se(k = strdup(s));
#  746|->                         assert_se(v = strdup(s));
#  747|                           custom_counter += 2;
#  748|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:749:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/8)
#  747|                           custom_counter += 2;
#  748|   
#  749|->                         assert_se(hashmap_put(h, k, v) >= 0);
#  750|                   }
#  751|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:749:25: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: danger: ‘v’ leaks here; was allocated at [(11)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/10)
#  747|                           custom_counter += 2;
#  748|   
#  749|->                         assert_se(hashmap_put(h, k, v) >= 0);
#  750|                   }
#  751|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:754:21: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:754:21: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/9)
#  752|                   hashmap_free(h);
#  753|   
#  754|->                 n = now(CLOCK_MONOTONIC);
#  755|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:755:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:755:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/9)
#  753|   
#  754|                   n = now(CLOCK_MONOTONIC);
#  755|->                 log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   
#  757|                   assert_se(custom_counter == test->expect_counter);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:757:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:757:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/9)
#  755|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   
#  757|->                 assert_se(custom_counter == test->expect_counter);
#  758|           }
#  759|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:759:1: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258.1/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258.1/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258.1/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258.1/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:735:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:759:1: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:759:1: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/9)
#  757|                   assert_se(custom_counter == test->expect_counter);
#  758|           }
#  759|-> }
#  760|   
#  761|   TEST(hashmap_first) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:837:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/2)
#  835|           assert_se(m);
#  836|   
#  837|->         assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:838:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/5)
#  836|   
#  837|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|->         assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  840|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:839:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/8)
#  837|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|->         assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  840|   
#  841|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:844:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/12)
#  842|           assert_se(hashmap_isempty(m));
#  843|   
#  844|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:844:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 1")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: danger: ‘strdup("value 1")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/15)
#  842|           assert_se(hashmap_isempty(m));
#  843|   
#  844|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:845:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/14)
#  843|   
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:845:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 2")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: danger: ‘strdup("value 2")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/15)
#  843|   
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:846:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/16)
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   
#  848|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:846:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 3")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: danger: ‘strdup("value 3")’ leaks here; was allocated at [(18)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/17)
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   
#  848|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:855:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(26)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/25)
#  853|           assert_se(m);
#  854|   
#  855|->         assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:856:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(29)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/28)
#  854|   
#  855|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|->         assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  858|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:857:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(32)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/31)
#  855|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|->         assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  858|   
#  859|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:866:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(37)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/36)
#  864|           assert_se(m);
#  865|   
#  866|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:866:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 1")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: danger: ‘strdup("value 1")’ leaks here; was allocated at [(41)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/40)
#  864|           assert_se(m);
#  865|   
#  866|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:867:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(39)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/38)
#  865|   
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:867:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 2")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: danger: ‘strdup("value 2")’ leaks here; was allocated at [(40)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/39)
#  865|   
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:868:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:868:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:868:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:868:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(41)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/40)
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   
#  870|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-hashmap-plain.c:868:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 3")’
systemd-258.1/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258.1/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:867:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-hashmap-plain.c:868:9: branch_false: ...to here
systemd-258.1/src/test/test-hashmap-plain.c:868:9: acquire_memory: allocated here
systemd-258.1/src/test/test-hashmap-plain.c:868:9: danger: ‘strdup("value 3")’ leaks here; was allocated at [(42)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/41)
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   
#  870|           hashmap_clear(m);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:41: error[unknownEvaluationOrder]: Expression 'id,((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}}),((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})' depends on order of evaluation of side effects
#   39|           ASSERT_FALSE(sd_id128_in_set(id));
#   40|           ASSERT_FALSE(sd_id128_in_set(id, ID128_WALDI));
#   41|->         ASSERT_FALSE(sd_id128_in_set(id, ID128_WALDI, ID128_WALDI));
#   42|   
#   43|           if (sd_booted() > 0 && sd_id128_get_machine(NULL) >= 0) {

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1]' depends on order of evaluation of side effects
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2]' depends on order of evaluation of side effects
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258.1/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1]' depends on order of evaluation of side effects
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2]' depends on order of evaluation of side effects
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258.1/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:183: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.bytes={0x51,0xdf,0x0b,0x4b,0xc3,0xb0,0x4c,0x97,0x80,0xe2,0x99,0xb9,0x8c,0xa3,0x73,0xb8}}),((const union sd_id128){.bytes={0xf0,0x3d,0xaa,0xeb,0x1c,0x33,0x4b,0x43,0xa7,0x32,0x17,0x29,0x44,0xbf,0x77,0x2e}})' depends on order of evaluation of side effects
#  181|   
#  182|           /* build/systemd-id128 -a f03daaeb1c334b43a732172944bf772e show 51df0b4bc3b04c9780e299b98ca373b8 */
#  183|->         ASSERT_OK(sd_id128_get_app_specific(SD_ID128_MAKE(51,df,0b,4b,c3,b0,4c,97,80,e2,99,b9,8c,a3,73,b8),
#  184|                                               SD_ID128_MAKE(f0,3d,aa,eb,1c,33,4b,43,a7,32,17,29,44,bf,77,2e), &id));
#  185|           ASSERT_EQ_ID128(id, SD_ID128_MAKE(1d,ee,59,54,e7,5c,4d,6f,b9,6c,c6,c0,4c,a1,8a,86));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:196: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.qwords={UINT64_C(0xFFFFFFFFFFFFFFFF),UINT64_C(0xFFFFFFFFFFFFFFFF)}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  194|   
#  195|           /* Check return values */
#  196|->         ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_ALLF, SD_ID128_NULL, &id) == -ENXIO);
#  197|           ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_NULL, SD_ID128_ALLF, &id) == 0);
#  198|   }

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-id128.c:197: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={UINT64_C(0xFFFFFFFFFFFFFFFF),UINT64_C(0xFFFFFFFFFFFFFFFF)}})' depends on order of evaluation of side effects
#  195|           /* Check return values */
#  196|           ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_ALLF, SD_ID128_NULL, &id) == -ENXIO);
#  197|->         ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_NULL, SD_ID128_ALLF, &id) == 0);
#  198|   }
#  199|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:423: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  421|   
#  422|           _cleanup_set_free_ Set *ss = NULL;
#  423|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:424: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  422|           _cleanup_set_free_ Set *ss = NULL;
#  423|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  426|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:425: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  423|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  426|   
#  427|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *ssv = NULL;

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:437: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  435|   
#  436|           _cleanup_ordered_set_free_ OrderedSet *oss = NULL;
#  437|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:438: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  436|           _cleanup_ordered_set_free_ OrderedSet *oss = NULL;
#  437|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  440|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-json.c:439: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  437|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  440|   
#  441|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *ossv = NULL;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/test/test-json.c:860: error[uninitvar]: Uninitialized variable: i
#  858|           sd_json_variant *i;
#  859|           JSON_VARIANT_ARRAY_FOREACH(i, l) {
#  860|->                 assert_se(sd_json_variant_append_array(&wd, i) >= 0);
#  861|                   assert_se(sd_json_variant_append_array_nodup(&nd, i) >= 0);
#  862|           }

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/test/test-list.c:30:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*_j.item_list_prev’
systemd-258.1/src/test/test-list.c:23:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-list.c:30:9: danger: use of uninitialized value ‘*_j.item_list_prev’ here
#   28|   
#   29|           i = 0;
#   30|->         LIST_FOREACH_OTHERS(item_list, cursor, &items[2]) {
#   31|                   i++;
#   32|                   assert_se(cursor != &items[2]);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1]' depends on order of evaluation of side effects
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2]' depends on order of evaluation of side effe [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258.1/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:881: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  879|           /* Then, test dynamic expressions, and if they are side-effect free */
#  880|           i = -2;
#  881|->         assert_se(!ISPOWEROF2(i++));
#  882|           assert_se(i == -1);
#  883|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:883: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  881|           assert_se(!ISPOWEROF2(i++));
#  882|           assert_se(i == -1);
#  883|->         assert_se(!ISPOWEROF2(i++));
#  884|           assert_se(i == 0);
#  885|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:885: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  883|           assert_se(!ISPOWEROF2(i++));
#  884|           assert_se(i == 0);
#  885|->         assert_se(!ISPOWEROF2(i++));
#  886|           assert_se(i == 1);
#  887|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:887: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  885|           assert_se(!ISPOWEROF2(i++));
#  886|           assert_se(i == 1);
#  887|->         assert_se(ISPOWEROF2(i++));
#  888|           assert_se(i == 2);
#  889|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:889: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  887|           assert_se(ISPOWEROF2(i++));
#  888|           assert_se(i == 2);
#  889|->         assert_se(ISPOWEROF2(i++));
#  890|           assert_se(i == 3);
#  891|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:891: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  889|           assert_se(ISPOWEROF2(i++));
#  890|           assert_se(i == 3);
#  891|->         assert_se(!ISPOWEROF2(i++));
#  892|           assert_se(i == 4);
#  893|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:893: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  891|           assert_se(!ISPOWEROF2(i++));
#  892|           assert_se(i == 4);
#  893|->         assert_se(ISPOWEROF2(i++));
#  894|           assert_se(i == 5);
#  895|           assert_se(!ISPOWEROF2(i));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:898: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  896|   
#  897|           u = 0;
#  898|->         assert_se(!ISPOWEROF2(u++));
#  899|           assert_se(u == 1);
#  900|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:900: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  898|           assert_se(!ISPOWEROF2(u++));
#  899|           assert_se(u == 1);
#  900|->         assert_se(ISPOWEROF2(u++));
#  901|           assert_se(u == 2);
#  902|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:902: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  900|           assert_se(ISPOWEROF2(u++));
#  901|           assert_se(u == 2);
#  902|->         assert_se(ISPOWEROF2(u++));
#  903|           assert_se(u == 3);
#  904|           assert_se(!ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:904: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  902|           assert_se(ISPOWEROF2(u++));
#  903|           assert_se(u == 3);
#  904|->         assert_se(!ISPOWEROF2(u++));
#  905|           assert_se(u == 4);
#  906|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/test/test-macro.c:906: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  904|           assert_se(!ISPOWEROF2(u++));
#  905|           assert_se(u == 4);
#  906|->         assert_se(ISPOWEROF2(u++));
#  907|           assert_se(u == 5);
#  908|           assert_se(!ISPOWEROF2(u));

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-memory-util.c:39:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iov’
systemd-258.1/src/test/test-memory-util.c:25:1: enter_function: entry to ‘test_cleanup_array’
systemd-258.1/src/test/test-memory-util.c:30:15: call_function: calling ‘malloc_multiply’ from ‘test_cleanup_array’
systemd-258.1/src/test/test-memory-util.c:30:15: return_function: returning to ‘test_cleanup_array’ from ‘malloc_multiply’
systemd-258.1/src/test/test-memory-util.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:39:17: danger: ‘iov’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   37|   
#   38|           {
#   39|->                 assert_se(memeqbyte('x', saved_iov, sizeof(struct iovec) * saved_n));
#   40|                   assert_se(iov);
#   41|                   assert_se(n > 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-memory-util.c:50:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_iov’
systemd-258.1/src/test/test-memory-util.c:25:1: enter_function: entry to ‘test_cleanup_array’
systemd-258.1/src/test/test-memory-util.c:30:15: call_function: calling ‘malloc_multiply’ from ‘test_cleanup_array’
systemd-258.1/src/test/test-memory-util.c:30:15: return_function: returning to ‘test_cleanup_array’ from ‘malloc_multiply’
systemd-258.1/src/test/test-memory-util.c:31:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:39:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:40:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:40:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:41:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:41:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:43:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:45:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:46:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:46:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:47:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:47:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-memory-util.c:43:17: branch_false: ...to here
systemd-258.1/src/test/test-memory-util.c:43:17: call_function: calling ‘array_cleanup’ from ‘test_cleanup_array’
systemd-258.1/src/test/test-memory-util.c:43:17: return_function: returning to ‘test_cleanup_array’ from ‘array_cleanup’
systemd-258.1/src/test/test-memory-util.c:50:9: danger: ‘saved_iov’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#   48|           }
#   49|   
#   50|->         assert_se(memeqbyte('y', saved_iov, sizeof(struct iovec) * saved_n));
#   51|           assert_se(!iov);
#   52|           assert_se(n == 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/test/test-mempress.c:287:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8192)’
systemd-258.1/src/test/test-mempress.c:190:1: enter_function: entry to ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:204:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:207:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:209:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:210:9: call_function: inlined call to ‘random_u64’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:210:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:211:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:212:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:213:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:213:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:214:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:215:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:215:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:216:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:216:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:218:13: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:222:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:222:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:224:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:226:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:228:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:230:13: call_function: inlined call to ‘safe_fork’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:232:12: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:232:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:237:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:238:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:238:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:239:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:241:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:241:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:242:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:244:38: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:249:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:252:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:253:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:254:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:254:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:255:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:256:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:257:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:257:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:258:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:259:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:259:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:260:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:263:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:263:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:265:18: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:268:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:269:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:272:13: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:274:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:275:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:275:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:276:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:277:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:278:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:279:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:281:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:285:23: call_function: inlined call to ‘malloc_multiply’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:286:25: branch_true: following ‘true’ branch (when ‘i != 1024’)...
systemd-258.1/src/test/test-mempress.c:287:18: branch_true: ...to here
systemd-258.1/src/test/test-mempress.c:287:17: danger: ‘malloc(8192) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(90)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/89)
#  285|           Hashmap **h = new(Hashmap*, NN);
#  286|           for (int i = 0; i < NN; i++)
#  287|->                 h[i] = hashmap_new(NULL);
#  288|           for (int i = 0; i < NN; i++)
#  289|                   hashmap_free(h[i]);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-mempress.c:287:18: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8192)’
systemd-258.1/src/test/test-mempress.c:190:1: enter_function: entry to ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:204:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:207:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:207:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:209:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:209:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:210:9: call_function: inlined call to ‘random_u64’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:210:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:211:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:211:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:212:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:212:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:213:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:213:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:214:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:214:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:215:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:215:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:216:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:216:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:218:13: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:219:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:222:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:222:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:224:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:226:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:226:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:228:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:228:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:230:13: call_function: inlined call to ‘safe_fork’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:231:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:232:12: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:232:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:237:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:238:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:238:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:239:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:239:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:241:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:241:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:242:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:242:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:244:38: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:249:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:252:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:252:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:253:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:253:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:254:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:254:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:255:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:255:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:256:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:256:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:257:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:257:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:258:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:258:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:259:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:259:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:260:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:260:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:263:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:263:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:265:18: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:268:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:269:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:272:13: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:274:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:275:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:275:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:276:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:276:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:277:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:277:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:278:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:278:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:279:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:279:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:281:9: branch_false: ...to here
systemd-258.1/src/test/test-mempress.c:281:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-mempress.c:285:23: call_function: inlined call to ‘malloc_multiply’ from ‘test_real_pressure’
systemd-258.1/src/test/test-mempress.c:286:25: branch_true: following ‘true’ branch (when ‘i != 1024’)...
systemd-258.1/src/test/test-mempress.c:287:18: branch_true: ...to here
systemd-258.1/src/test/test-mempress.c:287:18: danger: ‘malloc(8192)’ leaks here; was allocated at [(90)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/89)
#  285|           Hashmap **h = new(Hashmap*, NN);
#  286|           for (int i = 0; i < NN; i++)
#  287|->                 h[i] = hashmap_new(NULL);
#  288|           for (int i = 0; i < NN; i++)
#  289|                   hashmap_free(h[i]);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-namespace.c:229:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/kmsg", 524288)’
systemd-258.1/src/test/test-namespace.c:211:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:217:13: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:217:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:222:15: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:223:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:225:12: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
systemd-258.1/src/test/test-namespace.c:228:22: branch_true: ...to here
systemd-258.1/src/test/test-namespace.c:228:22: acquire_resource: opened here
systemd-258.1/src/test/test-namespace.c:229:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:231:21: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:232:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:234:17: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:234:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:235:17: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:235:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:236:17: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:229:17: danger: ‘open("/dev/kmsg", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  227|   
#  228|                   fd = open("/dev/kmsg", O_RDONLY | O_CLOEXEC);
#  229|->                 assert_se(fd > 0);
#  230|   
#  231|                   r = setup_namespace(&p, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-namespace.c:235:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/kmsg", 524288)’
systemd-258.1/src/test/test-namespace.c:211:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:217:13: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:217:12: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:222:15: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:223:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:225:12: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
systemd-258.1/src/test/test-namespace.c:228:22: branch_true: ...to here
systemd-258.1/src/test/test-namespace.c:229:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:231:21: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:232:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:234:17: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:234:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-namespace.c:235:17: branch_false: ...to here
systemd-258.1/src/test/test-namespace.c:235:17: acquire_resource: opened here
systemd-258.1/src/test/test-namespace.c:235:17: danger: ‘open("/dev/kmsg", 524288)’ leaks here; was opened at [(15)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/14)
#  233|   
#  234|                   assert_se(setresuid(UID_NOBODY, UID_NOBODY, UID_NOBODY) >= 0);
#  235|->                 assert_se(open("/dev/kmsg", O_RDONLY | O_CLOEXEC) < 0);
#  236|                   assert_se(errno == EACCES);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/test/test-nulstr-util.c:100:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
systemd-258.1/src/test/test-nulstr-util.c:104:1: enter_function: entry to ‘test_strv_make_nulstr’
systemd-258.1/src/test/test-nulstr-util.c:105:9: call_function: calling ‘test_strv_make_nulstr_one’ from ‘test_strv_make_nulstr’
#   98|   
#   99|           NULSTR_FOREACH(s, b)
#  100|->                 ASSERT_STREQ(s, l[i++]);
#  101|           assert_se(i == strv_length(l));
#  102|   }

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-parse-helpers.c:95: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#   93|   
#   94|   static int test_path_simplify_and_warn_one(const char *p, const char *q, PathSimplifyWarnFlags f) {
#   95|->         _cleanup_free_ char *s = ASSERT_PTR(strdup(p));
#   96|           int a, b;
#   97|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/test/test-parse-helpers.c:102: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  100|   
#  101|           free(s);
#  102|->         s = ASSERT_PTR(strdup(p));
#  103|   
#  104|           b = path_simplify_and_warn(s, f|PATH_CHECK_FATAL, /* unit= */ NULL, /* filename= */ NULL, /* line= */ 0, "Foobar=");

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/test/test-path-util.c:705:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘absolute_dirs’
systemd-258.1/src/test/test-path-util.c:692:36: release_memory: ‘search_dirs’ is NULL
systemd-258.1/src/test/test-path-util.c:693:36: release_memory: ‘search_dirs’ is NULL
systemd-258.1/src/test/test-path-util.c:695:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258.1/src/test/test-path-util.c:697:23: branch_false: ...to here
systemd-258.1/src/test/test-path-util.c:698:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/test/test-path-util.c:699:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-path-util.c:705:9: branch_false: ...to here
systemd-258.1/src/test/test-path-util.c:705:9: release_memory: ‘absolute_dirs’ is NULL
systemd-258.1/src/test/test-path-util.c:705:9: danger: dereference of NULL ‘absolute_dirs’
#  703|           }
#  704|   
#  705|->         assert_se(mkdir(absolute_dirs[0], 0700) == 0);
#  706|           assert_se(mkdir(absolute_dirs[1], 0700) == 0);
#  707|           assert_se(symlink("dir2", absolute_dirs[2]) == 0);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/test/test-path-util.c:859:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expected’
systemd-258.1/src/test/test-path-util.c:873:1: enter_function: entry to ‘test_path_find_first_component’
systemd-258.1/src/test/test-path-util.c:877:9: call_function: calling ‘test_path_find_first_component_one’ from ‘test_path_find_first_component’
#  857|                   assert_se(e);
#  858|                   assert_se(strcspn(e, "/") == (size_t) r);
#  859|->                 assert_se(strlen_ptr(*expected) == (size_t) r);
#  860|                   assert_se(strneq(e, *expected++, r));
#  861|   

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/test/test-path-util.c:947:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expected’
systemd-258.1/src/test/test-path-util.c:961:1: enter_function: entry to ‘test_path_find_last_component’
systemd-258.1/src/test/test-path-util.c:965:9: call_function: calling ‘test_path_find_last_component_one’ from ‘test_path_find_last_component’
#  945|                   assert_se(e);
#  946|                   assert_se(strcspn(e, "/") == (size_t) r);
#  947|->                 assert_se(strlen_ptr(*expected) == (size_t) r);
#  948|                   assert_se(strneq(e, *expected++, r));
#  949|   

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/test/test-sd-hwdb.c:69: warning[uninitvar]: Uninitialized variable: r
#   67|           }
#   68|   
#   69|->         assert_se(r >= 0);
#   70|   }
#   71|   

Error: COMPILER_WARNING:
systemd-258.1/src/test/test-seccomp.c:1017:24: error[-Wimplicit-function-declaration]: implicit declaration of function ‘fchmodat2’; did you mean ‘fchmodat’?
# 1015|           assert_se(!FLAGS_SET(flags, AT_EMPTY_PATH));
# 1016|   
# 1017|->         r = RET_NERRNO(fchmodat2(dirfd, path, mode, flags));
# 1018|           if (r != -ENOSYS)
# 1019|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:234:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile, 0)’
systemd-258.1/src/test/test-socket-util.c:216:1: enter_function: entry to ‘test_passfd_read’
systemd-258.1/src/test/test-socket-util.c:221:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:223:13: call_function: inlined call to ‘safe_fork’ from ‘test_passfd_read’
systemd-258.1/src/test/test-socket-util.c:224:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:226:12: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:226:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:228:27: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:231:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:233:45: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:233:45: acquire_resource: opened here
systemd-258.1/src/test/test-socket-util.c:234:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:235:17: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:235:17: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:235:17: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:233:37: call_function: inlined call to ‘closep’ from ‘test_passfd_read’
systemd-258.1/src/test/test-socket-util.c:234:17: danger: ‘open(&tmpfile, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
#  232|   
#  233|                   _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY);
#  234|->                 assert_se(tmpfd >= 0);
#  235|                   assert_se(unlink(tmpfile) == 0);
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:278:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile, 0)’
systemd-258.1/src/test/test-socket-util.c:257:1: enter_function: entry to ‘test_passfd_contents_read’
systemd-258.1/src/test/test-socket-util.c:263:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:265:13: call_function: inlined call to ‘safe_fork’ from ‘test_passfd_contents_read’
systemd-258.1/src/test/test-socket-util.c:266:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:268:12: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:268:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:270:36: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:275:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:277:45: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:277:45: acquire_resource: opened here
systemd-258.1/src/test/test-socket-util.c:278:17: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:279:17: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:279:17: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:279:17: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:277:37: call_function: inlined call to ‘closep’ from ‘test_passfd_contents_read’
systemd-258.1/src/test/test-socket-util.c:278:17: danger: ‘open(&tmpfile, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  276|   
#  277|                   _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY);
#  278|->                 assert_se(tmpfd >= 0);
#  279|                   assert_se(unlink(tmpfile) == 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:334:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile[i], 0)’
systemd-258.1/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258.1/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:334:37: danger: ‘open(&tmpfile[i], 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  332|                   for (size_t i = 0; i < 3; ++i) {
#  333|                           assert_se(write_tmpfile(tmpfile[i], file_contents[i]) == 0);
#  334|->                         tmpfds[i] = open(tmpfile[i], O_RDONLY);
#  335|                           assert_se(tmpfds[i] >= 0);
#  336|                           assert_se(unlink(tmpfile[i]) == 0);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:368:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
systemd-258.1/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258.1/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:368:1: danger: leaks here; was opened at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
#  366|                   safe_close(fds[i]);
#  367|           }
#  368|-> }
#  369|   
#  370|   TEST(receive_nopassfd) {

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:368:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmpfds[0]’
systemd-258.1/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258.1/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258.1/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258.1/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258.1/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258.1/src/test/test-socket-util.c:368:1: danger: ‘tmpfds[0]’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  366|                   safe_close(fds[i]);
#  367|           }
#  368|-> }
#  369|   
#  370|   TEST(receive_nopassfd) {

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/test/test-socket-util.c:561:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 524289, 0)’
systemd-258.1/src/test/test-socket-util.c:540:1: enter_function: entry to ‘test_sockaddr_un_set_path’
systemd-258.1/src/test/test-socket-util.c:547:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:548:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:548:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:550:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:550:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:551:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:551:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:553:9: call_function: inlined call to ‘random_u64’ from ‘test_sockaddr_un_set_path’
systemd-258.1/src/test/test-socket-util.c:553:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:554:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:554:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:556:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:557:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:558:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:558:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:560:15: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:560:15: acquire_resource: socket created here
systemd-258.1/src/test/test-socket-util.c:561:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:562:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:562:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:563:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:563:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:565:14: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:568:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:569:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:569:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:570:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:570:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:572:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:573:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:575:15: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:576:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:577:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:577:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:579:9: branch_false: ...to here
systemd-258.1/src/test/test-socket-util.c:579:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-socket-util.c:545:39: call_function: inlined call to ‘closep’ from ‘test_sockaddr_un_set_path’
systemd-258.1/src/test/test-socket-util.c:545:29: call_function: inlined call to ‘closep’ from ‘test_sockaddr_un_set_path’
systemd-258.1/src/test/test-socket-util.c:561:9: danger: ‘socket(1, 524289, 0)’ leaks here
#  559|   
#  560|           fd1 = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0);
#  561|->         assert_se(fd1 >= 0);
#  562|           assert_se(bind(fd1, &sa.sa, sockaddr_len(&sa)) >= 0);
#  563|           assert_se(listen(fd1, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strip-tab-ansi.c:79:1: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
systemd-258.1/src/test/test-strip-tab-ansi.c:15:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:16:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:16:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:17:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:18:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:19:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:21:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:22:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:22:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:23:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:24:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:25:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:27:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:28:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:28:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:29:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:29:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:30:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:32:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:33:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:33:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:34:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:34:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:35:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:37:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:38:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:38:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:39:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:39:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:40:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:42:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:43:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:43:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:44:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:44:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:45:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:47:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:48:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:48:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:49:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:50:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:52:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:53:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:53:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:54:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:54:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strip-tab-ansi.c:54:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:55:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:56:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:57:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:58:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:59:13: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:64:12: branch_false: following ‘false’ branch (when ‘z’ is NULL)...
systemd-258.1/src/test/test-strip-tab-ansi.c:72:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:72:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:76:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:76:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:77:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:77:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strip-tab-ansi.c:78:9: branch_false: ...to here
systemd-258.1/src/test/test-strip-tab-ansi.c:79:1: danger: ‘q’ leaks here; was allocated at [(47)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/46)
#   77|           ASSERT_STREQ(p, "beforebetween1between2after");
#   78|           free(p);
#   79|-> }
#   80|   
#   81|   DEFINE_TEST_MAIN(LOG_INFO);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strv.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("first")’
systemd-258.1/src/test/test-strv.c:799:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strv.c:799:9: danger: ‘strdup("first")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  797|           _cleanup_strv_free_ char **a = NULL;
#  798|   
#  799|->         assert_se(strv_insert(&a, 0, strdup("first")) == 0);
#  800|           ASSERT_STREQ(a[0], "first");
#  801|           assert_se(!a[1]);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strv.c:807:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("two")’
systemd-258.1/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:807:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strv.c:807:9: danger: ‘strdup("two")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  805|           assert_se(!a[1]);
#  806|   
#  807|->         assert_se(strv_insert(&a, 1, strdup("two")) == 0);
#  808|           ASSERT_STREQ(a[0], "first");
#  809|           ASSERT_STREQ(a[1], "two");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strv.c:812:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("tri")’
systemd-258.1/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:807:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:808:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:808:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:809:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:809:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:810:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:810:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:812:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:812:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strv.c:812:9: danger: ‘strdup("tri")’ leaks here; was allocated at [(21)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/20)
#  810|           assert_se(!a[2]);
#  811|   
#  812|->         assert_se(strv_insert(&a, 4, strdup("tri")) == 0);
#  813|           ASSERT_STREQ(a[0], "first");
#  814|           ASSERT_STREQ(a[1], "two");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strv.c:818:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("duo")’
systemd-258.1/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:807:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:808:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:808:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:809:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:809:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:810:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:810:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:812:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:812:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:813:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:813:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:814:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:814:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:815:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:815:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:816:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:816:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:818:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:818:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strv.c:818:9: danger: ‘strdup("duo")’ leaks here; was allocated at [(31)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/30)
#  816|           assert_se(!a[3]);
#  817|   
#  818|->         assert_se(strv_insert(&a, 1, strdup("duo")) == 0);
#  819|           ASSERT_STREQ(a[0], "first");
#  820|           ASSERT_STREQ(a[1], "duo");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/test/test-strv.c:838:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("first2")’
systemd-258.1/src/test/test-strv.c:829:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:831:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:831:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:832:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:832:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:833:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:833:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:834:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:834:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:835:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:835:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:836:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:836:9: branch_false: following ‘false’ branch...
systemd-258.1/src/test/test-strv.c:838:9: branch_false: ...to here
systemd-258.1/src/test/test-strv.c:838:9: acquire_memory: allocated here
systemd-258.1/src/test/test-strv.c:838:9: danger: ‘strdup("first2")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
#  836|           assert_se(!a[4]);
#  837|   
#  838|->         assert_se(strv_consume_prepend(&a, strdup("first2")) >= 0);
#  839|           ASSERT_STREQ(a[0], "first2");
#  840|           ASSERT_STREQ(a[1], "first");

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/timesync/timesyncd-server.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/timesync/timesyncd-server.c:80:5: enter_function: entry to ‘server_name_new’
systemd-258.1/src/timesync/timesyncd-server.c:88:9: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:89:9: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:91:13: call_function: inlined call to ‘malloc_multiply’ from ‘server_name_new’
systemd-258.1/src/timesync/timesyncd-server.c:92:12: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:98:27: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:98:27: acquire_memory: allocated here
systemd-258.1/src/timesync/timesyncd-server.c:101:12: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:106:9: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:106:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  104|           }
#  105|   
#  106|->         switch (type) {
#  107|           case SERVER_SYSTEM:
#  108|                   LIST_APPEND(names, m->system_servers, n);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/timesync/timesyncd-server.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258.1/src/timesync/timesyncd-server.c:80:5: enter_function: entry to ‘server_name_new’
systemd-258.1/src/timesync/timesyncd-server.c:88:9: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:89:9: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:91:13: call_function: inlined call to ‘malloc_multiply’ from ‘server_name_new’
systemd-258.1/src/timesync/timesyncd-server.c:92:12: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:98:27: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:101:12: branch_false: following ‘false’ branch...
systemd-258.1/src/timesync/timesyncd-server.c:106:9: branch_false: ...to here
systemd-258.1/src/timesync/timesyncd-server.c:106:9: danger: ‘malloc(48)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  104|           }
#  105|   
#  106|->         switch (type) {
#  107|           case SERVER_SYSTEM:
#  108|                   LIST_APPEND(names, m->system_servers, n);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:299:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wall_tty_block()’
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:352:12: enter_function: entry to ‘process_and_watch_password_files’
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:366:24: call_function: calling ‘wall_tty_block’ from ‘process_and_watch_password_files’
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:366:24: return_function: returning to ‘process_and_watch_password_files’ from ‘wall_tty_block’
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:360:38: call_function: inlined call to ‘closep’ from ‘process_and_watch_password_files’
systemd-258.1/src/tty-ask-password-agent/tty-ask-password-agent.c:299:13: danger: ‘wall_tty_block()’ leaks here; was opened at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  297|                   return log_error_errno(r, "Failed to get controlling TTY: %m");
#  298|   
#  299|->         if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0)
#  300|                   return log_oom();
#  301|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:756:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(arg_node, 526592)’
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:743:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:744:9: branch_false: ...to here
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:744:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:747:22: acquire_resource: opened here
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:756:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:756:9: branch_true: ...to here
systemd-258.1/src/udev/cdrom_id/cdrom_id.c:756:9: danger: ‘open(arg_node, 526592)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  754|           }
#  755|   
#  756|->         log_debug("probing: '%s'", arg_node);
#  757|           c->fd = fd;
#  758|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/udev/iocost/iocost.c:264:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘selected_solution’
systemd-258.1/src/udev/iocost/iocost.c:240:12: enter_function: entry to ‘query_solutions_for_path’
systemd-258.1/src/udev/iocost/iocost.c:247:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/iocost/iocost.c:250:13: branch_false: ...to here
systemd-258.1/src/udev/iocost/iocost.c:251:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/iocost/iocost.c:255:12: branch_false: ...to here
systemd-258.1/src/udev/iocost/iocost.c:255:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/iocost/iocost.c:258:13: branch_false: ...to here
systemd-258.1/src/udev/iocost/iocost.c:258:13: call_function: calling ‘get_known_solutions’ from ‘query_solutions_for_path’
systemd-258.1/src/udev/iocost/iocost.c:258:13: return_function: returning to ‘query_solutions_for_path’ from ‘get_known_solutions’
systemd-258.1/src/udev/iocost/iocost.c:259:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/iocost/iocost.c:261:12: branch_false: ...to here
systemd-258.1/src/udev/iocost/iocost.c:261:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/iocost/iocost.c:264:9: branch_false: ...to here
systemd-258.1/src/udev/iocost/iocost.c:264:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/iocost/iocost.c:264:9: branch_true: ...to here
systemd-258.1/src/udev/iocost/iocost.c:264:9: danger: use of uninitialized value ‘selected_solution’ here
#  262|                   return r;
#  263|   
#  264|->         log_info("Known solutions for %s model name: \"%s\"\n"
#  265|                    "Preferred solution: %s\n"
#  266|                    "Solution that would be applied: %s",

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/udev/mtd_probe/probe_smartmedia.c:48: error[memleak]: Memory leak: cis_buffer
#   46|   
#   47|           if (info->type != MTD_NANDFLASH)
#   48|->                 return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#   49|                                          "Not marked MTD_NANDFLASH.");
#   50|   

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/udev/mtd_probe/probe_smartmedia.c:56: error[memleak]: Memory leak: cis_buffer
#   54|   
#   55|           if (!IN_SET(sector_size, SM_SECTOR_SIZE, SM_SMALL_PAGE))
#   56|->                 return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#   57|                                          "Unexpected sector size: %i", sector_size);
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/net/link-config.c:64:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
systemd-258.1/src/udev/net/link-config.c:229:5: enter_function: entry to ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:237:9: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:239:13: call_function: inlined call to ‘null_or_empty_path’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:240:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:242:12: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:242:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:247:16: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:248:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:251:18: call_function: inlined call to ‘malloc_multiply’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:252:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:255:9: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:231:41: call_function: calling ‘hashmap_freep’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:231:41: return_function: returning to ‘link_load_one’ from ‘hashmap_freep’
systemd-258.1/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
<unknown>: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
#   62|   
#   63|           free(config->filename);
#   64|->         strv_free(config->dropins);
#   65|   
#   66|           net_match_clear(&config->match);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/net/link-config.c:66:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
systemd-258.1/src/udev/net/link-config.c:229:5: enter_function: entry to ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:236:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:237:9: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:237:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:239:13: call_function: inlined call to ‘null_or_empty_path’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:240:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:242:12: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:242:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:247:16: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:248:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:251:18: call_function: inlined call to ‘malloc_multiply’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:252:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:255:9: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:231:41: call_function: calling ‘hashmap_freep’ from ‘link_load_one’
systemd-258.1/src/udev/net/link-config.c:231:41: return_function: returning to ‘link_load_one’ from ‘hashmap_freep’
systemd-258.1/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
<unknown>: branch_true: ...to here
systemd-258.1/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
#   64|           strv_free(config->dropins);
#   65|   
#   66|->         net_match_clear(&config->match);
#   67|           condition_free_list(config->conditions);
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/udev/net/link-config.c:374:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*link.event’
systemd-258.1/src/udev/net/link-config.c:379:5: enter_function: entry to ‘link_new’
systemd-258.1/src/udev/net/link-config.c:380:26: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:384:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:386:9: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:386:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:388:16: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258.1/src/udev/net/link-config.c:389:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/net/link-config.c:393:26: branch_false: ...to here
systemd-258.1/src/udev/net/link-config.c:381:37: call_function: inlined call to ‘link_freep’ from ‘link_new’
#  372|                   return NULL;
#  373|   
#  374|->         udev_event_unref(link->event);
#  375|           free(link->kind);
#  376|           return mfree(link);

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:144:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  142|   
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|->         return sg_err_category_new(hp->device_status, 0,
#  145|                                      hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:145:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|           return sg_err_category_new(hp->device_status, 0,
#  145|->                                    hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|                                      hp->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:145:58: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|           return sg_err_category_new(hp->device_status, 0,
#  145|->                                    hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|                                      hp->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:147:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  145|                                      hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|->                                    hp->response_len);
#  148|   }
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:248:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  246|   
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|->         if (!io->device_status && !io->transport_status &&
#  249|               !io->driver_status)
#  250|                   /*

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:248:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  246|   
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|->         if (!io->device_status && !io->transport_status &&
#  249|               !io->driver_status)
#  250|                   /*

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:249:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|           if (!io->device_status && !io->transport_status &&
#  249|->             !io->driver_status)
#  250|                   /*
#  251|                    * Impossible, should not be called.

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:257:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  255|                                          __func__);
#  256|   
#  257|->         log_debug("%s: sg_io failed status 0x%x 0x%x 0x%x",
#  258|                     dev_scsi->kernel, io->driver_status, io->transport_status, io->device_status);
#  259|           if (io->device_status == SCSI_CHECK_CONDITION)

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:259:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  257|           log_debug("%s: sg_io failed status 0x%x 0x%x 0x%x",
#  258|                     dev_scsi->kernel, io->driver_status, io->transport_status, io->device_status);
#  259|->         if (io->device_status == SCSI_CHECK_CONDITION)
#  260|                   return scsi_dump_sense(dev_scsi, (unsigned char *)(uintptr_t)io->response,
#  261|                                          io->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126):
systemd-258.1/src/udev/scsi_id/scsi_serial.c:261:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258.1/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258.1/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258.1/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  259|           if (io->device_status == SCSI_CHECK_CONDITION)
#  260|                   return scsi_dump_sense(dev_scsi, (unsigned char *)(uintptr_t)io->response,
#  261|->                                        io->response_len);
#  262|           else
#  263|                   return -1;

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/udev/udev-builtin-blkid.c:276: error[unknownEvaluationOrder]: Expression 'type,((const union sd_id128){.bytes={0xc1,0x2a,0x73,0x28,0xf8,0x1f,0x11,0xd2,0xba,0x4b,0x00,0xa0,0xc9,0x3e,0xc9,0x3b}}),((const union sd_id128){.bytes={0xbc,0x13,0xc2,0xff,0x59,0xe6,0x42,0x62,0xa3,0x52,0xb2,0x75,0xfd,0x6f,0x71,0x72}})' depends on order of evaluation of side effects
#  274|                           label = blkid_partition_get_name(pp); /* returns NULL if empty */
#  275|   
#  276|->                         if (need_esp_or_xbootldr && sd_id128_in_set(type, SD_GPT_ESP, SD_GPT_XBOOTLDR)) {
#  277|   
#  278|                                   /* We found an ESP or XBOOTLDR, let's see if it matches the ESP/XBOOTLDR we booted from. */

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-builtin-net_id.c:727:1: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258.1/src/udev/udev-builtin-net_id.c:684:12: enter_function: entry to ‘names_vio’
systemd-258.1/src/udev/udev-builtin-net_id.c:685:26: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:690:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:695:38: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:695:13: call_function: calling ‘get_matching_parent’ from ‘names_vio’
systemd-258.1/src/udev/udev-builtin-net_id.c:695:13: return_function: returning to ‘names_vio’ from ‘get_matching_parent’
systemd-258.1/src/udev/udev-builtin-net_id.c:695:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:698:9: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:698:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:704:13: call_function: calling ‘get_first_syspath_component’ from ‘names_vio’
systemd-258.1/src/udev/udev-builtin-net_id.c:704:13: return_function: returning to ‘names_vio’ from ‘get_first_syspath_component’
systemd-258.1/src/udev/udev-builtin-net_id.c:705:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:708:12: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:708:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:712:14: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:712:14: call_function: calling ‘in_charset’ from ‘names_vio’
systemd-258.1/src/udev/udev-builtin-net_id.c:712:14: return_function: returning to ‘names_vio’ from ‘in_charset’
systemd-258.1/src/udev/udev-builtin-net_id.c:712:12: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:717:28: branch_true: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:718:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:721:14: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:722:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:724:9: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:724:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:727:1: danger: ‘s’ leaks here; was allocated at [(33)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/32)
#  725|                            slotid, glyph(GLYPH_ARROW_RIGHT), str + strlen(prefix));
#  726|           return 0;
#  727|-> }
#  728|   
#  729|   static int names_platform(UdevEvent *event, const char *prefix) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-builtin-net_id.c:789:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258.1/src/udev/udev-builtin-net_id.c:729:12: enter_function: entry to ‘names_platform’
systemd-258.1/src/udev/udev-builtin-net_id.c:730:26: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:737:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:742:38: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:742:13: call_function: calling ‘get_matching_parent’ from ‘names_platform’
systemd-258.1/src/udev/udev-builtin-net_id.c:742:13: return_function: returning to ‘names_platform’ from ‘get_matching_parent’
systemd-258.1/src/udev/udev-builtin-net_id.c:742:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:745:9: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:745:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:747:13: call_function: calling ‘get_first_syspath_component’ from ‘names_platform’
systemd-258.1/src/udev/udev-builtin-net_id.c:747:13: return_function: returning to ‘names_platform’ from ‘get_first_syspath_component’
systemd-258.1/src/udev/udev-builtin-net_id.c:748:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-builtin-net_id.c:754:12: branch_false: ...to here
systemd-258.1/src/udev/udev-builtin-net_id.c:789:1: danger: ‘p’ leaks here; was allocated at [(33)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/32)
#  787|                            vendor, model, instance, glyph(GLYPH_ARROW_RIGHT), str + strlen(prefix));
#  788|           return 0;
#  789|-> }
#  790|   
#  791|   static int names_devicetree(UdevEvent *event, const char *prefix) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-ctrl.c:74:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(192)’
systemd-258.1/src/udev/udev-ctrl.c:44:5: enter_function: entry to ‘udev_ctrl_new_from_fd’
systemd-258.1/src/udev/udev-ctrl.c:49:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:51:12: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:66:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_ctrl_new_from_fd’
systemd-258.1/src/udev/udev-ctrl.c:67:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:72:25: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:74:17: danger: ‘malloc(192)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   72|                   .sock = fd >= 0 ? fd : TAKE_FD(sock),
#   73|                   .sock_connect = -EBADF,
#   74|->                 .bound = fd >= 0,
#   75|           };
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/udev/udev-ctrl.c:98:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*uctrl.sock’
systemd-258.1/src/udev/udev-ctrl.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:91:13: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:91:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:94:35: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:98:13: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:98:12: danger: ‘*uctrl.sock’ leaks here
#   96|                   return log_error_errno(errno, "Failed to bind udev control socket: %m");
#   97|   
#   98|->         if (listen(uctrl->sock, 0) < 0)
#   99|                   return log_error_errno(errno, "Failed to listen udev control socket: %m");
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/udev/udev-ctrl.c:101:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*uctrl.sock’
systemd-258.1/src/udev/udev-ctrl.c:89:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:91:13: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:91:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:94:35: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:95:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:98:13: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:98:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-ctrl.c:101:9: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:101:9: danger: ‘*uctrl.sock’ leaks here
#   99|                   return log_error_errno(errno, "Failed to listen udev control socket: %m");
#  100|   
#  101|->         uctrl->bound = true;
#  102|           return 0;
#  103|   }

Error: GCC_ANALYZER_WARNING (CWE-416):
systemd-258.1/src/udev/udev-ctrl.c:153:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘uctrl’
systemd-258.1/src/udev/udev-ctrl.c:150:13: enter_function: entry to ‘udev_ctrl_disconnect_and_listen_again’
systemd-258.1/src/udev/udev-ctrl.c:151:9: call_function: inlined call to ‘udev_ctrl_disconnect’ from ‘udev_ctrl_disconnect_and_listen_again’
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-ctrl.c:152:9: call_function: calling ‘udev_ctrl_unref’ from ‘udev_ctrl_disconnect_and_listen_again’
systemd-258.1/src/udev/udev-ctrl.c:152:9: return_function: returning to ‘udev_ctrl_disconnect_and_listen_again’ from ‘udev_ctrl_unref’
systemd-258.1/src/udev/udev-ctrl.c:153:16: danger: use after ‘free’ of ‘uctrl’; freed at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  151|           udev_ctrl_disconnect(uctrl);
#  152|           udev_ctrl_unref(uctrl);
#  153|->         (void) sd_event_source_set_enabled(uctrl->event_source, SD_EVENT_ON);
#  154|           /* We don't return NULL here because uctrl is not freed */
#  155|   }

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-event.c:38:34: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258.1/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258.1/src/udev/udev-event.c:38:25: branch_true: following ‘true’ branch (when ‘worker’ is non-NULL)...
systemd-258.1/src/udev/udev-event.c:38:34: branch_true: ...to here
systemd-258.1/src/udev/udev-event.c:38:34: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   36|                   .n_ref = 1,
#   37|                   .worker = worker,
#   38|->                 .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|                   .dev = sd_device_ref(dev),
#   40|                   .birth_usec = now(CLOCK_MONOTONIC),

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-event.c:39:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258.1/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258.1/src/udev/udev-event.c:38:25: branch_false: following ‘false’ branch (when ‘worker’ is NULL)...
systemd-258.1/src/udev/udev-event.c:39:24: branch_false: ...to here
systemd-258.1/src/udev/udev-event.c:39:24: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   37|                   .worker = worker,
#   38|                   .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|->                 .dev = sd_device_ref(dev),
#   40|                   .birth_usec = now(CLOCK_MONOTONIC),
#   41|                   .uid = UID_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-event.c:40:31: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258.1/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258.1/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258.1/src/udev/udev-event.c:38:25: branch_false: following ‘false’ branch (when ‘worker’ is NULL)...
systemd-258.1/src/udev/udev-event.c:39:24: branch_false: ...to here
systemd-258.1/src/udev/udev-event.c:40:31: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   38|                   .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|                   .dev = sd_device_ref(dev),
#   40|->                 .birth_usec = now(CLOCK_MONOTONIC),
#   41|                   .uid = UID_INVALID,
#   42|                   .gid = GID_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/udev/udev-format.c:244:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258.1/src/udev/udev-format.c:157:16: enter_function: entry to ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:165:35: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:224:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:227:22: call_function: inlined call to ‘isempty’ from ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:228:29: call_function: calling ‘safe_atou_optional_plus’ from ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:228:29: return_function: returning to ‘udev_event_subst_format’ from ‘safe_atou_optional_plus’
systemd-258.1/src/udev/udev-format.c:229:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:232:25: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:235:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:241:48: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:241:29: call_function: inlined call to ‘skip_leading_chars’ from ‘udev_event_subst_format’
<unknown>: branch_true: ...to here
systemd-258.1/src/udev/udev-format.c:243:37: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/udev/udev-format.c:244:40: danger: dereference of NULL ‘p’
#  242|   
#  243|                           for (i = 1; i < index; i++) {
#  244|->                                 while (*p && !strchr(WHITESPACE, *p))
#  245|                                           p++;
#  246|                                   p = skip_leading_chars(p, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/udev/udev-format.c:260:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258.1/src/udev/udev-format.c:157:16: enter_function: entry to ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:165:35: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:224:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:227:22: call_function: inlined call to ‘isempty’ from ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:228:29: call_function: calling ‘safe_atou_optional_plus’ from ‘udev_event_subst_format’
systemd-258.1/src/udev/udev-format.c:228:29: return_function: returning to ‘udev_event_subst_format’ from ‘safe_atou_optional_plus’
systemd-258.1/src/udev/udev-format.c:229:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:232:25: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:235:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:241:48: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:241:29: call_function: inlined call to ‘skip_leading_chars’ from ‘udev_event_subst_format’
<unknown>: branch_true: ...to here
systemd-258.1/src/udev/udev-format.c:243:37: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:250:28: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:250:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-format.c:257:28: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:257:28: branch_false: following ‘false’ branch (when ‘has_plus == 0’)...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-format.c:260:40: danger: dereference of NULL ‘p’
#  258|                                   strpcpy_full(&s, l, start, &truncated);
#  259|                           else {
#  260|->                                 while (*p && !strchr(WHITESPACE, *p))
#  261|                                           p++;
#  262|                                   strnpcpy_full(&s, l, start, p - start, &truncated);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/udev/udev-manager.c:147:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*event.manager’
systemd-258.1/src/udev/udev-manager.c:889:12: enter_function: entry to ‘event_queue_insert’
systemd-258.1/src/udev/udev-manager.c:895:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:896:9: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:896:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:899:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:900:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:903:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:904:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:907:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:908:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:911:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:912:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:915:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:916:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:919:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:920:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:923:47: call_function: inlined call to ‘malloc_multiply’ from ‘event_queue_insert’
systemd-258.1/src/udev/udev-manager.c:924:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:928:24: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:923:39: call_function: inlined call to ‘event_freep’ from ‘event_queue_insert’
#  145|                   return NULL;
#  146|   
#  147|->         if (event->manager) {
#  148|                   event_unset_whole_disk(event);
#  149|                   prioq_remove(event->manager->locked_events_by_time, event, &event->locked_event_prioq_index);

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-manager.c:881:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*event.whole_disk’
systemd-258.1/src/udev/udev-manager.c:1147:12: enter_function: entry to ‘on_worker_notify’
systemd-258.1/src/udev/udev-manager.c:1148:28: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1151:9: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1151:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1153:39: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1156:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1158:12: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1158:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1162:26: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1163:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1168:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1168:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1190:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1190:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:1210:47: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:1210:47: call_function: calling ‘worker_detach_event’ from ‘on_worker_notify’
systemd-258.1/src/udev/udev-manager.c:1210:47: return_function: returning to ‘on_worker_notify’ from ‘worker_detach_event’
systemd-258.1/src/udev/udev-manager.c:1212:12: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/udev-manager.c:1214:47: branch_true: ...to here
systemd-258.1/src/udev/udev-manager.c:1214:21: call_function: calling ‘event_enter_locked’ from ‘on_worker_notify’
#  879|           event->whole_disk = TAKE_PTR(whole_disk_copy);
#  880|   
#  881|->         r = prioq_ensure_put(&manager->locked_events_by_time, locked_event_compare, event, &event->locked_event_prioq_index);
#  882|           if (r < 0)
#  883|                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udev-manager.c:927:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(168)’
systemd-258.1/src/udev/udev-manager.c:889:12: enter_function: entry to ‘event_queue_insert’
systemd-258.1/src/udev/udev-manager.c:895:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:896:9: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:896:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:899:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:900:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:903:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:904:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:907:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:908:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:911:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:912:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:915:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:916:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:919:13: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:920:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:923:47: call_function: inlined call to ‘malloc_multiply’ from ‘event_queue_insert’
systemd-258.1/src/udev/udev-manager.c:924:12: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:928:24: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:940:9: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
systemd-258.1/src/udev/udev-manager.c:940:9: branch_true: ...to here
systemd-258.1/src/udev/udev-manager.c:941:20: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-manager.c:945:20: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:945:20: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/udev-manager.c:946:32: branch_true: ...to here
systemd-258.1/src/udev/udev-manager.c:946:32: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-manager.c:923:39: call_function: inlined call to ‘event_freep’ from ‘event_queue_insert’
#  925|                   return -ENOMEM;
#  926|   
#  927|->         *event = (Event) {
#  928|                   .dev = sd_device_ref(dev),
#  929|                   .seqnum = seqnum,

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/udev/udev-rules.c:3154: warning[uninitvar]: Uninitialized variable: r
# 3152|                                   break;
# 3153|                   }
# 3154|->                 if (r > 0) {
# 3155|                           if (event->trace) {
# 3156|                                   const char *s = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476):
systemd-258.1/src/udev/udev-spawn.c:247:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
systemd-258.1/src/udev/udev-spawn.c:360:6: enter_function: entry to ‘udev_event_execute_run’
systemd-258.1/src/udev/udev-spawn.c:365:9: branch_false: following ‘false’ branch...
systemd-258.1/src/udev/udev-spawn.c:367:9: branch_false: ...to here
systemd-258.1/src/udev/udev-spawn.c:367:9: branch_true: following ‘true’ branch...
systemd-258.1/src/udev/udev-spawn.c:368:50: branch_true: ...to here
systemd-258.1/src/udev/udev-spawn.c:392:25: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udev-spawn.c:394:29: call_function: calling ‘udev_event_spawn’ from ‘udev_event_execute_run’
#  245|               !STARTSWITH_SET(cmd, "ata_id", "cdrom_id", "dmi_memory_id", "fido_id", "mtd_probe", "scsi_id")) {
#  246|                   log_device_debug(event->dev, "Running in test mode, skipping execution of '%s'.", cmd);
#  247|->                 result[0] = '\0';
#  248|                   if (ret_truncated)
#  249|                           *ret_truncated = false;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:128:17: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  126|   
#  127|           while ((c = getopt_long(argc, argv, "pekus:t:Vh", options, NULL)) >= 0)
#  128|->                 switch (c) {
#  129|                   case 'p':
#  130|                   case 'e':

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: danger: ‘<unknown>’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  151|                                   subsystem = strdup(optarg);
#  152|   
#  153|->                         if (!subsystem)
#  154|                                   return log_oom();
#  155|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:165:29: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:165:29: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
#  163|                   }
#  164|                   case 't':
#  165|->                         r = set_put_strdup(&arg_tag_filter, optarg);
#  166|                           if (r < 0)
#  167|                                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:167:40: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:167:40: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
#  165|                           r = set_put_strdup(&arg_tag_filter, optarg);
#  166|                           if (r < 0)
#  167|->                                 return log_oom();
#  168|                           break;
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:171:32: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:171:32: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
#  169|   
#  170|                   case 'V':
#  171|->                         return print_version();
#  172|                   case 'h':
#  173|                           return help();

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/udev/udevadm-monitor.c:177:25: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258.1/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258.1/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258.1/src/udev/udevadm-monitor.c:177:25: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  175|                           return -EINVAL;
#  176|                   default:
#  177|->                         assert_not_reached();
#  178|                   }
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/userdb/userdbd-manager.c:170:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258.1/src/userdb/userdbd-manager.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userdbd-manager.c:150:26: branch_false: ...to here
systemd-258.1/src/userdb/userdbd-manager.c:158:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userdbd-manager.c:160:12: branch_false: ...to here
systemd-258.1/src/userdb/userdbd-manager.c:160:12: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userdbd-manager.c:163:21: branch_true: ...to here
systemd-258.1/src/userdb/userdbd-manager.c:163:20: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userdbd-manager.c:170:29: branch_false: ...to here
systemd-258.1/src/userdb/userdbd-manager.c:170:29: acquire_resource: opened here
systemd-258.1/src/userdb/userdbd-manager.c:170:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  168|                           }
#  169|                   } else {
#  170|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  171|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  172|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:176:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:175:12: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:176:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:176:21: danger: use of uninitialized value ‘userdb_flags’ here
#  174|   
#  175|           if (uid_is_valid(p.uid))
#  176|->                 r = userdb_by_uid(p.uid, &p.match, userdb_flags, &hr);
#  177|           else if (p.name)
#  178|                   r = userdb_by_name(p.name, &p.match, userdb_flags, &hr);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:178:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:175:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:177:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:177:17: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:178:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:178:21: danger: use of uninitialized value ‘userdb_flags’ here
#  176|                   r = userdb_by_uid(p.uid, &p.match, userdb_flags, &hr);
#  177|           else if (p.name)
#  178|->                 r = userdb_by_name(p.name, &p.match, userdb_flags, &hr);
#  179|           else {
#  180|                   _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:183:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258.1/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:175:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:177:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:177:17: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:180:66: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:183:21: danger: use of uninitialized value ‘userdb_flags’ here
#  181|                   _cleanup_(sd_json_variant_unrefp) sd_json_variant *last = NULL;
#  182|   
#  183|->                 r = userdb_all(&p.match, userdb_flags, &iterator);
#  184|                   if (IN_SET(r, -ESRCH, -ENOLINK))
#  185|                           /* We turn off Varlink lookups in various cases (e.g. in case we only enable DropIn

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:319:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:318:12: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:319:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:319:21: danger: use of uninitialized value ‘userdb_flags’ here
#  317|   
#  318|           if (gid_is_valid(p.gid))
#  319|->                 r = groupdb_by_gid(p.gid, &p.match, userdb_flags, &g);
#  320|           else if (p.name)
#  321|                   r = groupdb_by_name(p.name, &p.match, userdb_flags, &g);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:321:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:320:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:320:17: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:321:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:321:21: danger: use of uninitialized value ‘userdb_flags’ here
#  319|                   r = groupdb_by_gid(p.gid, &p.match, userdb_flags, &g);
#  320|           else if (p.name)
#  321|->                 r = groupdb_by_name(p.name, &p.match, userdb_flags, &g);
#  322|           else {
#  323|                   _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL;

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:326:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258.1/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:318:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:320:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:320:17: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:323:66: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:326:21: danger: use of uninitialized value ‘userdb_flags’ here
#  324|                   _cleanup_(sd_json_variant_unrefp) sd_json_variant *last = NULL;
#  325|   
#  326|->                 r = groupdb_all(&p.match, userdb_flags, &iterator);
#  327|                   if (IN_SET(r, -ESRCH, -ENOLINK))
#  328|                           return sd_varlink_error(link, "io.systemd.UserDatabase.NoRecordFound", NULL);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:410:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:409:12: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:410:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:410:21: danger: use of uninitialized value ‘userdb_flags’ here
#  408|   
#  409|           if (p.group_name)
#  410|->                 r = membershipdb_by_group(p.group_name, userdb_flags, &iterator);
#  411|           else if (p.user_name)
#  412|                   r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:412:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:409:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:411:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:411:17: branch_true: following ‘true’ branch...
systemd-258.1/src/userdb/userwork.c:412:21: branch_true: ...to here
systemd-258.1/src/userdb/userwork.c:412:21: danger: use of uninitialized value ‘userdb_flags’ here
#  410|                   r = membershipdb_by_group(p.group_name, userdb_flags, &iterator);
#  411|           else if (p.user_name)
#  412|->                 r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);
#  413|           else
#  414|                   r = membershipdb_all(userdb_flags, &iterator);

Error: GCC_ANALYZER_WARNING (CWE-457):
systemd-258.1/src/userdb/userwork.c:414:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258.1/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258.1/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258.1/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:409:12: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:411:18: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:411:17: branch_false: following ‘false’ branch...
systemd-258.1/src/userdb/userwork.c:414:21: branch_false: ...to here
systemd-258.1/src/userdb/userwork.c:414:21: danger: use of uninitialized value ‘userdb_flags’ here
#  412|                   r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);
#  413|           else
#  414|->                 r = membershipdb_all(userdb_flags, &iterator);
#  415|           if (IN_SET(r, -ESRCH, -ENOLINK))
#  416|                   return sd_varlink_error(link, "io.systemd.UserDatabase.NoRecordFound", NULL);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  151|           while ((c = getopt_long(argc, argv, "hjqE", options, NULL)) >= 0)
#  152|   
#  153|->                 switch (c) {
#  154|   
#  155|                   case 'h':

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:159:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:159:32: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  157|   
#  158|                   case ARG_VERSION:
#  159|->                         return version();
#  160|   
#  161|                   case ARG_NO_PAGER:

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:182:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:182:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  180|   
#  181|                   case ARG_JSON:
#  182|->                         r = parse_json_argument(optarg, &arg_json_format_flags);
#  183|                           if (r <= 0)
#  184|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:197:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:197:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  195|   
#  196|                   case ARG_GRACEFUL:
#  197|->                         r = varlink_idl_qualified_symbol_name_is_valid(optarg);
#  198|                           if (r < 0)
#  199|                                   return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:199:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:199:40: branch_true: following ‘true’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:199:40: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:199:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  197|                           r = varlink_idl_qualified_symbol_name_is_valid(optarg);
#  198|                           if (r < 0)
#  199|->                                 return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);
#  200|                           if (r == 0)
#  201|                                   return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Not a valid Varlink error name: %s", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:201:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:198:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:200:28: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:201:40: branch_true: following ‘true’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:201:40: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:201:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  199|                                   return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);
#  200|                           if (r == 0)
#  201|->                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Not a valid Varlink error name: %s", optarg);
#  202|   
#  203|                           if (strv_extend(&arg_graceful, optarg) < 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:204:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:198:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:200:28: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:200:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:203:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:204:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  202|   
#  203|                           if (strv_extend(&arg_graceful, optarg) < 0)
#  204|->                                 return log_oom();
#  205|   
#  206|                           break;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:214:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:214:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  212|                           }
#  213|   
#  214|->                         r = parse_sec(optarg, &arg_timeout);
#  215|                           if (r < 0)
#  216|                                   return log_error_errno(r, "Failed to parse --timeout= parameter '%s': %m", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:216:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:216:40: branch_true: following ‘true’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:216:40: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:216:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  214|                           r = parse_sec(optarg, &arg_timeout);
#  215|                           if (r < 0)
#  216|->                                 return log_error_errno(r, "Failed to parse --timeout= parameter '%s': %m", optarg);
#  217|   
#  218|                           if (arg_timeout == 0)

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:219:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:215:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:218:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:219:40: branch_true: following ‘true’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:219:40: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:219:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  217|   
#  218|                           if (arg_timeout == 0)
#  219|->                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Timeout cannot be zero.");
#  220|   
#  221|                           break;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:228:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:30: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  226|   
#  227|                   case ARG_PUSH_FD: {
#  228|->                         if (!GREEDY_REALLOC(arg_push_fds.fds, arg_push_fds.n_fds + 1))
#  229|                                   return log_oom();
#  230|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:229:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:229:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  227|                   case ARG_PUSH_FD: {
#  228|                           if (!GREEDY_REALLOC(arg_push_fds.fds, arg_push_fds.n_fds + 1))
#  229|->                                 return log_oom();
#  230|   
#  231|                           _cleanup_close_ int add_fd = -EBADF;

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:259:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:259:25: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  257|   
#  258|                   default:
#  259|->                         assert_not_reached();
#  260|                   }
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258.1/src/varlinkctl/varlinkctl.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258.1/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258.1/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258.1/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:263:12: branch_false: following ‘false’ branch...
systemd-258.1/src/varlinkctl/varlinkctl.c:266:9: branch_false: ...to here
systemd-258.1/src/varlinkctl/varlinkctl.c:266:9: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  264|                   arg_json_format_flags |= SD_JSON_FORMAT_SEQ|SD_JSON_FORMAT_FLUSH;
#  265|   
#  266|->         strv_sort_uniq(arg_graceful);
#  267|   
#  268|           return 1;

Error: CPPCHECK_WARNING (CWE-457):
systemd-258.1/src/vmspawn/vmspawn-util.c:186: error[uninitvar]: Uninitialized variable: e
#  184|                   _cleanup_free_ char *arch = NULL;
#  185|   
#  186|->                 r = sd_json_dispatch(e, table, flags, &arch);
#  187|                   if (r < 0)
#  188|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/vmspawn/vmspawn-util.c:278:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
systemd-258.1/src/vmspawn/vmspawn-util.c:246:12: enter_function: entry to ‘load_firmware_data’
systemd-258.1/src/vmspawn/vmspawn-util.c:249:9: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn-util.c:250:9: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn-util.c:250:9: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn-util.c:252:60: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn-util.c:260:12: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn-util.c:274:15: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn-util.c:274:15: acquire_memory: allocated here
systemd-258.1/src/vmspawn/vmspawn-util.c:275:12: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn-util.c:278:13: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn-util.c:273:54: call_function: inlined call to ‘firmware_data_freep’ from ‘load_firmware_data’
#  276|                   return -ENOMEM;
#  277|   
#  278|->         r = sd_json_dispatch(json, table, SD_JSON_ALLOW_EXTENSIONS, fwd);
#  279|           if (r < 0)
#  280|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/vmspawn/vmspawn.c:1402:1: warning[-Wanalyzer-malloc-leak]: leak of ‘virtiofsd’
systemd-258.1/src/vmspawn/vmspawn.c:1335:12: enter_function: entry to ‘start_virtiofsd’
systemd-258.1/src/vmspawn/vmspawn.c:1346:9: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn.c:1347:9: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn.c:1347:9: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn.c:1348:9: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn.c:1348:9: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn.c:1350:30: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn.c:1351:13: call_function: calling ‘find_virtiofsd’ from ‘start_virtiofsd’
systemd-258.1/src/vmspawn/vmspawn.c:1351:13: return_function: returning to ‘start_virtiofsd’ from ‘find_virtiofsd’
systemd-258.1/src/vmspawn/vmspawn.c:1352:12: branch_false: following ‘false’ branch...
systemd-258.1/src/vmspawn/vmspawn.c:1355:30: branch_false: ...to here
systemd-258.1/src/vmspawn/vmspawn.c:1357:12: branch_true: following ‘true’ branch...
systemd-258.1/src/vmspawn/vmspawn.c:1358:24: branch_true: ...to here
systemd-258.1/src/vmspawn/vmspawn.c:1402:1: danger: ‘virtiofsd’ leaks here; was allocated at [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19)
# 1400|   
# 1401|           return 0;
# 1402|-> }
# 1403|   
# 1404|   static int kernel_cmdline_maybe_append_root(void) {

Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:27:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:306:22: enter_function: entry to ‘xdg_autostart_service_parse_desktop’
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:310:19: acquire_memory: allocated here
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:311:12: branch_false: following ‘false’ branch...
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:314:25: branch_false: ...to here
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:315:12: branch_true: following ‘true’ branch...
<unknown>: branch_true: ...to here
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:307:69: call_function: inlined call to ‘xdg_autostart_service_freep’ from ‘xdg_autostart_service_parse_desktop’
#   25|                   return NULL;
#   26|   
#   27|->         free(s->name);
#   28|           free(s->path);
#   29|           free(s->description);

Error: CPPCHECK_WARNING (CWE-401):
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:316: error[memleak]: Memory leak: service
#  314|           service->path = strdup(path);
#  315|           if (!service->path)
#  316|->                 return NULL;
#  317|   
#  318|           const ConfigTableItem items[] = {

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:413: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  411|                                   return log_info_errno(r, "Exec binary '%s' does not exist: %m", c);
#  412|   
#  413|->                         free_and_replace(exec_split[n++], executable);
#  414|                           continue;
#  415|                   }

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:462: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  460|                           if (!tilde_expanded)
#  461|                                   return log_oom();
#  462|->                         free_and_replace(exec_split[n++], tilde_expanded);
#  463|                   } else
#  464|                           free_and_replace(exec_split[n++], percent);

Error: CPPCHECK_WARNING (CWE-768):
systemd-258.1/src/xdg-autostart-generator/xdg-autostart-service.c:464: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  462|                           free_and_replace(exec_split[n++], tilde_expanded);
#  463|                   } else
#  464|->                         free_and_replace(exec_split[n++], percent);
#  465|           }
#  466|           for (; exec_split[n]; n++)