diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-02-16 09:40:08 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-02-16 09:40:08 +0100 |
commit | 0ccade1ae2c00337d2b0bba2a175a060b93728a8 (patch) | |
tree | 8f217dc8f76b2c23d8d0697428f0645338d5b34e /gdb/compile/compile-loc2c.c | |
parent | 42dcffb469863cafa6d669c1763aabd5b0fadc7e (diff) | |
download | gdb-0ccade1ae2c00337d2b0bba2a175a060b93728a8.zip gdb-0ccade1ae2c00337d2b0bba2a175a060b93728a8.tar.gz gdb-0ccade1ae2c00337d2b0bba2a175a060b93728a8.tar.bz2 |
x86/gas: replace inappropriate assertion when parsing registers
PR gas/30117
Once a symbol had its expression evaluated, the "segment" of the symbol
may be reg_section if a register is merely involved in the expression,
not just when the expression references a "plain" register. Therefore
the first of the assertions put in place by 4d1bb7955a8b was too strict.
Convert it to an if() to deal with situations like this one found by
fuzzing:
x=s
s=%eax+0
y=s
or $6,x
In non-debug builds this also avoids potentially silently generating bad
code.
Diffstat (limited to 'gdb/compile/compile-loc2c.c')
0 files changed, 0 insertions, 0 deletions