From: H.J. Lu Date: Tue, 27 Nov 2018 14:02:36 +0000 (-0800) Subject: Initialize *uncompressed_align_pow_p to 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=131a5a648d314cd15811158150573cb40eb3abd0;p=binutils-gdb.git Initialize *uncompressed_align_pow_p to 0 Initialize *uncompressed_align_pow_p to 0 since *uncompressed_align_pow_p is passed to bfd_is_section_compressed_with_header as uninitialized, PR binutils/23919 * compress.c (bfd_is_section_compressed_with_header): Initialize *uncompressed_align_pow_p to 0. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4ee769520b7..272ae0e1076 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2018-11-27 H.J. Lu + + PR binutils/23919 + * compress.c (bfd_is_section_compressed_with_header): Initialize + *uncompressed_align_pow_p to 0. + 2018-11-27 Tamar Christina PR ld/23904 diff --git a/bfd/compress.c b/bfd/compress.c index 97ea624eb87..18a7597f70a 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -394,6 +394,8 @@ bfd_is_section_compressed_with_header (bfd *abfd, sec_ptr sec, unsigned int saved = sec->compress_status; bfd_boolean compressed; + *uncompressed_align_pow_p = 0; + compression_header_size = bfd_get_compression_header_size (abfd, sec); if (compression_header_size > MAX_COMPRESSION_HEADER_SIZE) abort ();