www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - general iasm(FPU) argument checking

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There are 2 very common bugs in the argument parsing of FPU iasm instructions:

1) FPU opcode accepts superflow argument:

#	int i;
#	asm {
#		fnop i;
#	}

2) FPU opcode accepts illegal 1-byte sized argument

#	byte b;
#	asm {
#		fstcw b;
#	}

Thomas

-----BEGIN PGP SIGNATURE-----

iD8DBQFDYa703w+/yD4P9tIRAsKqAKCYY9gGPv0snoZmrDEIhgXIueiyKwCgyoZB
2lgmjCAEkyBWfpHwrFil+/Y=
=NSnD
-----END PGP SIGNATURE-----
Oct 28 2005