2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 13:05:49 +00:00
confluent/confluent_osdeploy
Jarrod Johnson 2d5a016ad4 Tweak various issues for static analysis.
For autocons, though it's copying from a static source, use strncpy anyway,
despite the length being hardcoded already.  This makes static analysis happier.

Terminate the buff with a NULL.  This is superfluous as the strcpies that preceed
are guaranteed to null terminate, or exit the program.

In clortho, free(tmps), which is a valid leak, though clortho isn't long running.
Also, explicitly return 0, which is ultimately returned by main().

Static analysis could not figure out that padneeded implies that keylen is short of
chunk size, so change the check to be expressly the scenario that static analysis
was worried about directly, rather than indirectly.

Hint to static analysis that we don't care about the time as a time value by masking the
lower 32 bit explicitly.  This was already happening, but static analysis was afraid
that we wanted this as time instead of just some mutating value.
2022-12-06 15:35:49 -05:00
..
common
coreos
debian
el7
el7-diskless
el8
el8-diskless Add DHCP bringup to confluent= el8diskless 2022-11-30 11:09:39 -05:00
el9-diskless Pull EL8 IPv6 diskless to EL8 2022-11-08 16:37:00 -05:00
esxi7
genesis
rhvh4
suse15 Change timezone substitution strategy 2022-11-10 08:57:04 -05:00
suse15-diskless
ubuntu20.04
ubuntu20.04-diskless
ubuntu22.04
utils Tweak various issues for static analysis. 2022-12-06 15:35:49 -05:00
buildrpm
confluent_osdeploy.spec.tmpl