diff options
Diffstat (limited to 'bfd/compress.c')
-rw-r--r-- | bfd/compress.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/compress.c b/bfd/compress.c index a526ea9..669033c 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -100,6 +100,9 @@ bfd_compress_section_contents (bfd *abfd ATTRIBUTE_UNUSED, compressed_size = compressBound (uncompressed_size) + 12; compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size); + if (compressed_buffer == NULL) + return FALSE; + if (compress ((Bytef*) compressed_buffer + 12, &compressed_size, (const Bytef*) uncompressed_buffer, |