summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a0cff45)
We should not leak any data from the stack into the
database and this makes debugging easier, too.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
for (unsigned int i = 0; i < sizeof(header.signature); i++)
header.signature[i] = '\0';
for (unsigned int i = 0; i < sizeof(header.signature); i++)
header.signature[i] = '\0';
+ // Clear the padding
+ for (unsigned int i = 0; i < sizeof(header.padding); i++)
+ header.padding[i] = '\0';
+