From b05d1d896058c41d49e44951a02dd74238ce2e4e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 6 Oct 2025 13:24:31 +1030 Subject: [PATCH] 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. --- bfd/vms-alpha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3