X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=bfd%2Felf-properties.c;h=76ddad603711112dcac702aaa3fe16eb9dd3d89d;hb=7a0fb7be96e0ce79e1ae429bc1ba913e5244d537;hp=a42abc44dd5f4b0e1cb8cf1205b6a3e1466439ae;hpb=a2322019f5669e80444cdf6a8222f94a45301b3a;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf-properties.c b/bfd/elf-properties.c index a42abc44dd..76ddad6037 100644 --- a/bfd/elf-properties.c +++ b/bfd/elf-properties.c @@ -703,6 +703,8 @@ _bfd_elf_convert_gnu_properties (bfd *ibfd, asection *isec, if (size > bfd_section_size (isec)) { contents = (bfd_byte *) bfd_malloc (size); + if (contents == NULL) + return FALSE; free (*ptr); *ptr = contents; }