alpha-vms: large memory allocation
authorAlan Modra <amodra@gmail.com>
Fri, 28 Feb 2020 02:05:44 +0000 (12:35 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Feb 2020 02:56:30 +0000 (13:26 +1030)
This patch simplifies reading of image headers.  It's really not worth
trying to avoid re-reading a 12 byte buffer and then read in
VMS_BLOCK_SIZE chunks, better just to throw the buffer away and use
_bfd_malloc_and_read which does checks against file size.

* vms-alpha.c (alpha_vms_object_p): Use _bfd_malloc_and_read.
Remove duplicate undersize check.


No differences found
This page took 0.031173 seconds and 4 git commands to generate.