vms-alpha gas segfault
authorAlan Modra <amodra@gmail.com>
Wed, 22 May 2019 08:30:16 +0000 (18:00 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 22 May 2019 09:03:39 +0000 (18:33 +0930)
* vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
processing on "size error in section".

bfd/ChangeLog
bfd/vms-alpha.c

index af7ae75..4f523fa 100644 (file)
@@ -1,5 +1,10 @@
 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
        _bfd_generic_close_and_cleanup.
 
index d8b3082..4e6f9c1 100644 (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;