commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (MATH-679) Integer overflow in OpenMapRealMatrix
Date Mon, 10 Oct 2011 19:58:29 GMT


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:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Christopher Berner
>            Priority: Minor
>             Fix For: 3.0
>         Attachments:
> 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:!default.jspa
For more information on JIRA, see:


View raw message