diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-13 13:02:14 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-13 13:15:12 -0500 |
| commit | b0a2ea0caa2ac501ceb96c46df4fc0d4eb6ec891 (patch) | |
| tree | f96938384523824adce47c422479198e5e8c6b3b /lib/simple_file.c | |
| parent | 94ad063e94a4378917f57720d618ce17d08e587d (diff) | |
| download | efi-boot-shim-b0a2ea0caa2ac501ceb96c46df4fc0d4eb6ec891.tar.gz efi-boot-shim-b0a2ea0caa2ac501ceb96c46df4fc0d4eb6ec891.zip | |
get_variable: always allocate a NUL character at the end.
Sometimes we're loading structures that are parsed in string-like ways,
but can't necessarily be trusted to be zero-terminated. Solve that by
making sure we always have enough aligned, trailing zero bytes to always
have at least one NUL character, no matter which character type is being
parsed.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/simple_file.c')
0 files changed, 0 insertions, 0 deletions
