]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 32721, internal error in tc-i386.c:parse_register
authorAlan Modra <amodra@gmail.com>
Thu, 20 Feb 2025 01:19:25 +0000 (11:49 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 20 Feb 2025 01:32:10 +0000 (12:02 +1030)
commit46b9f07dfe79d8c6857dbfada485a3b9c0e3ffdb
tree01fce0d5b9caf3110ba54d28f01c4b241a9d04e1
parentd08ab84d89035ed1ef489fc230756fa7779255a7
PR 32721, internal error in tc-i386.c:parse_register

pr30117 showed one of the assertions added by 4d1bb7955a8b was too
strict.  oss-fuzz also found the second assertion to be too strict,
with this testcase distilled from 7k of garbage source:

 A=%eax%%!
 Y=A
 Z=A
 or $6,Z

PR 32721
* config/tc-i386.c (parse_register): Move "know" into
condition.  Simplify.
gas/config/tc-i386.c