]> git.ipfire.org Git - thirdparty/grub.git/commit
io/gzio: Properly init a table
authorDaniel Axtens <dja@axtens.net>
Sun, 12 May 2024 14:32:09 +0000 (00:32 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 6 Jun 2024 14:55:15 +0000 (16:55 +0200)
commitc806e4dc8895ec9ed110480034344cce25994816
treee7fb01e7083411ae0ecf63f7fe4035db8ff593bf
parent243682baaa31b760d110acd20fa397d2e8616ebc
io/gzio: Properly init a table

ARRAY_SIZE() is the count of elements, but the element size is 4 bytes, so
this was only initing the first 1/4th of the table. Detected with valgrind.

This should only matter in error paths, and I've not been able to identify
any actual misbehaviour that results from reading in-bounds but uninited data.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/io/gzio.c