diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2015-03-10 12:41:57 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2015-03-10 12:49:34 +0100 |
commit | c683726541cb8d3ff769f803fd7fae65db5c6f5c (patch) | |
tree | 178e3f0c34ac0e5ffc9d377e53ade10b5987ed19 /gas/config | |
parent | 5e0d7f77b20d74d2866e41b72697581c39f3197b (diff) | |
download | binutils-gdb-c683726541cb8d3ff769f803fd7fae65db5c6f5c.tar.gz |
S/390: Add check for length field operand
gas/
2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gas/config/tc-s390.c (md_gather_operands): Check for valid
length field operands.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-s390.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index 9102c609b4a..5051baf0137 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -1216,6 +1216,9 @@ md_gather_operands (char *str, } else { + if ((operand->flags & S390_OPERAND_LENGTH) + && ex.X_op != O_constant) + as_fatal (_("invalid length field specified")); if ((operand->flags & S390_OPERAND_INDEX) && ex.X_add_number == 0 && warn_areg_zero) |