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.
This commit is contained in:
Andreas Krebbel 2015-03-10 12:41:57 +01:00
parent 5e0d7f77b2
commit c683726541
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/tc-s390.c (md_gather_operands): Check for valid
length field operands.
2015-03-10 Michael Perkins <perkinsmg75@yahoo.co.uk>
* config/tc-arm.c (parse_operands): Fix bug setting writeback

View File

@ -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)