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.
This commit is contained in:
Alan Modra
2022-12-06 08:37:52 +10:30
parent 60d2606411
commit 5830876a0c

View File

@@ -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,