Initialize *uncompressed_align_pow_p to 0
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Nov 2018 14:02:36 +0000 (06:02 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Nov 2018 14:02:36 +0000 (06:02 -0800)
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.

bfd/ChangeLog
bfd/compress.c

index 4ee769520b7f757b3636eacd44390af4c56ebe37..272ae0e1076276e110dd0bf4ae3ca1405bd47eab 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/23919
+       * compress.c (bfd_is_section_compressed_with_header): Initialize
+       *uncompressed_align_pow_p to 0.
+
 2018-11-27  Tamar Christina  <tamar.christina@arm.com>
 
        PR ld/23904
index 97ea624eb877085d1fc927855c0c7666ca2c2498..18a7597f70aaf8f4c24461f29a92aa800e2bdba9 100644 (file)
@@ -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 ();