diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-06 08:37:52 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-06 10:31:50 +1030 |
commit | 5830876a0cca17bef3b2d54908928e72cca53502 (patch) | |
tree | 1a89d4d1836566af89d6a6979c77f5457aff2d71 /bfd | |
parent | 60d2606411775a2946700ed740f54a4bc7d63d0a (diff) | |
download | fsf-binutils-gdb-5830876a0cca17bef3b2d54908928e72cca53502.zip fsf-binutils-gdb-5830876a0cca17bef3b2d54908928e72cca53502.tar.gz fsf-binutils-gdb-5830876a0cca17bef3b2d54908928e72cca53502.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/compress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/compress.c b/bfd/compress.c index 3d8c1d7..6b08346 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, |