public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: PR29855, ch_type in bfd_init_section_decompress_status can be uninitialized
Date: Tue, 6 Dec 2022 10:30:04 +1030	[thread overview]
Message-ID: <Y46GBCcdb5NKqOgS@squeak.grove.modra.org> (raw)

	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

                 reply	other threads:[~2022-12-06  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y46GBCcdb5NKqOgS@squeak.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).