commit | 4182a14424c1e27b943187e230948ee31d6d66ba | [log] [tgz] |
---|---|---|
author | Laslo Hunhold <dev@frign.de> | Sat Oct 08 13:14:48 2022 +0200 |
committer | Laslo Hunhold <dev@frign.de> | Sat Oct 08 13:14:48 2022 +0200 |
tree | 3b567dabeb36eae445a454055d2dc37e74dc46a7 | |
parent | 004bdcf210baf1a63772bb7eca452bb0aeba010b [diff] |
Avoid undefined behaviour and memory leaks in case-data-generator This was found using the clang-sanitizers and was pretty tough to spot. The first part does not influence program-operation as is, but checking first if tmp2 is NULL avoids undefined behaviour of adding a non-zero offset to NULL. Signed-off-by: Laslo Hunhold <dev@frign.de>