maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamás Cservenák (JIRA) <>
Subject [jira] Closed: (MINDEXER-28) OOME when fed garbage
Date Wed, 08 Jun 2011 15:16:22 GMT


Tamás Cservenák closed MINDEXER-28.

       Resolution: Fixed
    Fix Version/s: 4.1.1

> OOME when fed garbage
> ---------------------
>                 Key: MINDEXER-28
>                 URL:
>             Project: Maven Indexer
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>         Environment: JDK 6u24 on Ubuntu x86
>            Reporter: Jesse Glick
>            Priority: Minor
>             Fix For: 4.1.1
> See for background. Without the
fix of MINDEXER-20 in place, the indexer will throw an {{OutOfMemoryError}} when given
since that site serves junk HTML with a 200 HTTP status.
> Since the code allocates an array whose length is a 32-bit int taken from an unverified
source, it would be best to somehow handle the case that a random large number is read and
an OOME is thrown - perhaps rethrowing as an {{IOException}}.
> MINDEXER-20 should prevent the bug precondition from being triggered nearly as often,
but the input could randomly happen to begin with 0x01.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message