harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1373) [DRLVM] fix for crash on negative array size in multianewarray
Date Fri, 01 Sep 2006 17:02:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1373?page=all ]

Ivan Volosyuk updated HARMONY-1373:
-----------------------------------

    Attachment: drlvm_multianewarray_fix.diff

Removed wrong assertions.
Added corresponding parameters check.
Used the same algorithm as in interpreter: 
 * It also fixes huge number of handles consumed by the function if called with many dimensions.
 * Get rid of recursion.

> [DRLVM] fix for crash on negative array size in multianewarray
> --------------------------------------------------------------
>
>                 Key: HARMONY-1373
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1373
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Attachments: drlvm_multianewarray_fix.diff
>
>
> Here is the small failing test:
> public class aaa {
>     public static void main(String[] args) {
>         try {
>             int i[][] = new int [10][-10];
>             System.out.println("Test failed");
>         } catch (NegativeArraySizeException ex) {
>             System.out.println("Test passed: " + ex);
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message