]> git.ipfire.org Git - thirdparty/grub.git/commit
io/gzio: Fix possible use of uninitialized variable in huft_build()
authorDarren Kenny <darren.kenny@oracle.com>
Tue, 26 Oct 2021 15:02:40 +0000 (15:02 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Nov 2021 15:53:12 +0000 (16:53 +0100)
commit29d44a236a5e939b8ff24e6c31141d5b1e48f693
treede875ffb5ee359a6dba6fa030e9885b183e84047
parentbb9ff31641b00a8abd79feb37a845a1d4066b9bb
io/gzio: Fix possible use of uninitialized variable in huft_build()

In huft_build() it is possible to reach the for loop where "r" is being
assigned to "q[j]" without "r.v" ever being initialized.

Fixes: CID 314024
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/io/gzio.c