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)
commit1b088c829ee812003d7601c7cf458dd394598719
treee93c2827d0998074c7250f7f7de39ecda3340f65
parente5da11393a16416afc0c0a1da9914b6424f37fa8
alpha-vms: large memory allocation

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.
bfd/ChangeLog
bfd/vms-alpha.c
This page took 0.023446 seconds and 4 git commands to generate.