From: Alan Modra Date: Mon, 6 Oct 2025 02:54:31 +0000 (+1030) Subject: vms-alpha: integer overflow X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b05d1d896058c41d49e44951a02dd74238ce2e4e;p=thirdparty%2Fbinutils-gdb.git vms-alpha: integer overflow image_offset takes values from section vma then increments when filling out section data. Avoid signed integer overflow. * vms-alpha.c (struct vms_private_data_struct): Make image_offset unsigned. --- diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 36cdac68994..277cba0107e 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -304,7 +304,7 @@ struct vms_private_data_struct /* Content reading. */ asection *image_section; /* section for image_ptr */ - file_ptr image_offset; /* Offset for image_ptr. */ + ufile_ptr image_offset; /* Offset for image_ptr. */ struct module *modules; /* list of all compilation units */