You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/10 21:58:29 UTC

[jira] [Resolved] (MATH-679) Integer overflow in OpenMapRealMatrix

     [ https://issues.apache.org/jira/browse/MATH-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luc Maisonobe resolved MATH-679.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Fixed in subversion repository as of r1181181.

Thanks for the report and the workaround.
                
> Integer overflow in OpenMapRealMatrix
> -------------------------------------
>
>                 Key: MATH-679
>                 URL: https://issues.apache.org/jira/browse/MATH-679
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Christopher Berner
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: Flaw.java
>
>
> computeKey() has an integer overflow. Since it is a sparse matrix, this is quite easily encountered long before heap space is exhausted. The attached code demonstrates the problem, which could potentially be a security vulnerability (for example, if one was to use this matrix to store access control information).
> Workaround: never create an OpenMapRealMatrix with more cells than are addressable with an int.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira