From: Alan Modra Date: Mon, 5 Dec 2022 22:07:52 +0000 (+1030) Subject: PR29855, ch_type in bfd_init_section_decompress_status can be uninitialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5830876a0cca17bef3b2d54908928e72cca53502;p=binutils-gdb.git PR29855, ch_type in bfd_init_section_decompress_status can be uninitialized PR 29855 * compress.c (bfd_init_section_decompress_status): Set ch_type to zero for zlib-gnu case. --- diff --git a/bfd/compress.c b/bfd/compress.c index 3d8c1d769f1..6b083468ca8 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -564,6 +564,7 @@ bfd_init_section_decompress_status (bfd *abfd, sec_ptr sec) return false; } uncompressed_size = bfd_getb64 (header + 4); + ch_type = 0; } else if (!bfd_check_compression_header (abfd, header, sec, &ch_type,