forked from Imagelibrary/binutils-gdb
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user