* compress.c (bfd_get_full_section_contents): Remember to reduce
compressed size by the sizeof the compression header when
decompressing the contents.
+2017-02-17 Nick Clifton <nickc@redhat.com>
+
+ * compress.c (bfd_get_full_section_contents): Remember to reduce
+ compressed size by the sizeof the compression header when
+ decompressing the contents.
+
2017-02-17 Pedro Alves <palves@redhat.com>
* srec.c (Chunk): Rename to ...
SHF_COMPRESSED section. */
compression_header_size = 12;
if (!decompress_contents (compressed_buffer + compression_header_size,
- sec->compressed_size, p, sz))
+ sec->compressed_size - compression_header_size, p, sz))
{
bfd_set_error (bfd_error_bad_value);
if (p != *ptr)