RFR: 6708: Add santiy check when allocating Object arrays in parser

Mario Torre neugens at redhat.com
Wed Feb 26 13:11:24 UTC 2020


Hi Henrik,

The patch looks good to me.

Cheers,
Mario

On Wed, Feb 26, 2020 at 2:00 PM Henrik Dafgård
<hdafgard at openjdk.java.net> wrote:
>
> Checking the size of an array before allocating it is a decent sanity check so the parser doesn't end up reading massive arrays and causing OoMs due to incorrectly written recordings.
>
> -------------
>
> Commits:
>  - 3e15030f: Add santiy check when allocating Object arrays in parser
>
> Changes: https://git.openjdk.java.net/jmc/pull/59/files
>  Webrev: https://webrevs.openjdk.java.net/jmc/59/webrev.00
>   Issue: https://bugs.openjdk.java.net/browse/JMC-6708
>   Stats: 20 lines in 6 files changed: 12 ins; 0 del; 8 mod
>   Patch: https://git.openjdk.java.net/jmc/pull/59.diff
>   Fetch: git fetch https://git.openjdk.java.net/jmc pull/59/head:pull/59
>
> PR: https://git.openjdk.java.net/jmc/pull/59
>


-- 
Mario Torre
Associate Manager, Software Engineering
Red Hat GmbH <https://www.redhat.com>
9704 A60C B4BE A8B8 0F30  9205 5D7E 4952 3F65 7898



More information about the jmc-dev mailing list