Skip to content

Commit

Permalink
PR29855, ch_type in bfd_init_section_decompress_status can be uniniti…
Browse files Browse the repository at this point in the history
…alized

	PR 29855
	* compress.c (bfd_init_section_decompress_status): Set ch_type
	to zero for zlib-gnu case.
  • Loading branch information
amodra committed Dec 6, 2022
1 parent 60d2606 commit 5830876
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bfd/compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5830876

Please sign in to comment.