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

Henrik Dafgård hdafgard at openjdk.java.net
Wed Feb 26 12:59:22 UTC 2020


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


More information about the jmc-dev mailing list