vms-alpha gas segfault

* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
	processing on "size error in section".
This commit is contained in:
Alan Modra 2019-05-22 18:00:16 +09:30
parent 4decd602d8
commit 9ec2f606ce
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-05-22 Alan Modra <amodra@gmail.com>
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
processing on "size error in section".
2019-05-22 Alan Modra <amodra@gmail.com>
* som.c (som_bfd_free_cached_info): Call

View File

@ -4094,7 +4094,10 @@ _bfd_vms_write_etir (bfd * abfd, int objtype ATTRIBUTE_UNUSED)
{
/* Output rest of section. */
if (curr_addr > section->size)
_bfd_error_handler (_("size error in section %pA"), section);
{
_bfd_error_handler (_("size error in section %pA"), section);
return FALSE;
}
size = section->size - curr_addr;
sto_imm (abfd, section, size, curr_data, curr_addr);
curr_data += size;