[gcjx] FYI: Minor correction to array access bounds-checking
Ranjit Mathew
rmathew@gmail.com
Sun Oct 16 06:14:00 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I committed the following patch to the gcjx-branch
after an offline discussion with Tom. This makes the
call to Jv_ThrowBadArrayIndex have TREE_SIDE_EFFECTS
and adds in the missing INDEX parameter. It also
explains why converting to unsigned and comparing
INDEX v/s LENGTH takes care of the INDEX < 0 check
as well.
Verified by inspecting the GENERIC and GIMPLE dumps.
Thanks,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDUe+TYb1hx2wRS48RAhbmAJ9/2Q76n/eFmz7EWwMCAUt5zTiMKwCgoNXv
uzUyuSfmbtEraCQTyN+MBDs=
=zXhV
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p1.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20051016/e5c25850/attachment.txt>
More information about the Java-patches
mailing list