mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
2011-03-05 Michael Snyder <msnyder@vmware.com>
* compress.c (bfd_compress_section_contents): Check for out of mem.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2011-03-06 Michael Snyder <msnyder@vmware.com>
|
2011-03-06 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* compress.c (bfd_compress_section_contents): Check for out of mem.
|
||||||
|
|
||||||
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
|
||||||
that case statement falls through intentionally.
|
that case statement falls through intentionally.
|
||||||
|
|
||||||
|
@ -100,6 +100,9 @@ bfd_compress_section_contents (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
compressed_size = compressBound (uncompressed_size) + 12;
|
compressed_size = compressBound (uncompressed_size) + 12;
|
||||||
compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size);
|
compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size);
|
||||||
|
|
||||||
|
if (compressed_buffer == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (compress ((Bytef*) compressed_buffer + 12,
|
if (compress ((Bytef*) compressed_buffer + 12,
|
||||||
&compressed_size,
|
&compressed_size,
|
||||||
(const Bytef*) uncompressed_buffer,
|
(const Bytef*) uncompressed_buffer,
|
||||||
|
Reference in New Issue
Block a user