public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR29855, ch_type in bfd_init_section_decompress_status can be uninitialized
@ 2022-12-06  0:00 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-12-06  0:00 UTC (permalink / raw)
  To: binutils

	PR 29855
	* compress.c (bfd_init_section_decompress_status): Set ch_type
	to zero for zlib-gnu case.

diff --git a/bfd/compress.c b/bfd/compress.c
index 3d8c1d769f1..6b083468ca8 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,

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-06  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06  0:00 PR29855, ch_type in bfd_init_section_decompress_status can be uninitialized Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).