diff options
-rw-r--r-- | bfd/version.h | 2 | ||||
-rw-r--r-- | binutils/resbin.c | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/pr25618a.h | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/pr25618b.h | 1 | ||||
-rw-r--r-- | opcodes/s390-dis.c | 2 |
5 files changed, 7 insertions, 4 deletions
diff --git a/bfd/version.h b/bfd/version.h index a28cdf3..ae6f7c7 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -16,7 +16,7 @@ In releases, the date is not included in either version strings or sonames. */ -#define BFD_VERSION_DATE 20250506 +#define BFD_VERSION_DATE 20250508 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/binutils/resbin.c b/binutils/resbin.c index 01046ec..3bce84f 100644 --- a/binutils/resbin.c +++ b/binutils/resbin.c @@ -433,6 +433,11 @@ bin_to_res_menuexitems (windres_bfd *wrbfd, const bfd_byte *data, itemlen = 14 + slen * 2 + 2; itemlen = (itemlen + 3) &~ 3; + /* Don't allow rounding up of itemlen to exceed length. This + is an anti-fuzzer measure to cope with unexpected offsets and + lengths. */ + if (itemlen > length) + itemlen = length; if ((flags & 1) == 0) { diff --git a/ld/testsuite/ld-plugin/pr25618a.h b/ld/testsuite/ld-plugin/pr25618a.h index 9bf857c..04be194 100644 --- a/ld/testsuite/ld-plugin/pr25618a.h +++ b/ld/testsuite/ld-plugin/pr25618a.h @@ -1,2 +1 @@ -#pragma once __attribute__((visibility("default"))) int bar(); diff --git a/ld/testsuite/ld-plugin/pr25618b.h b/ld/testsuite/ld-plugin/pr25618b.h index cd80074..65e72a0 100644 --- a/ld/testsuite/ld-plugin/pr25618b.h +++ b/ld/testsuite/ld-plugin/pr25618b.h @@ -1,2 +1 @@ -#pragma once __attribute__((visibility("default"))) int foo(); diff --git a/opcodes/s390-dis.c b/opcodes/s390-dis.c index 9838365..0d32d05 100644 --- a/opcodes/s390-dis.c +++ b/opcodes/s390-dis.c @@ -312,7 +312,7 @@ s390_print_insn_with_opcode (bfd_vma memaddr, info->fprintf_styled_func (info->stream, dis_style_text, "%c", separator); info->fprintf_styled_func (info->stream, dis_style_register, - "%%v%i", val.u); + "%%v%u", val.u); } else if (flags & S390_OPERAND_AR) { |