mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-18 06:44:02 +08:00
bf1b388d0e
* prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't overflow a jint. (_Jv_NewPrimArray): Check for overflowing a jint, replacing a check for overflowing size_t, since the lower level functions take a jint. * testsuite/libjava.lang/newarray_overflow.java: New file. * testsuite/libjava.lang/newarray_overflow.out: New file. From-SVN: r72577
2 lines
3 B
Plaintext
2 lines
3 B
Plaintext
ok
|