8144246: adding lots of directives via jcmd may produce OOM crash

Add a limit to the number of directives

Reviewed-by: kvn
This commit is contained in:
Nils Eliasson 2015-12-16 15:38:28 +01:00
parent e699dcb655
commit 8c0ad215bc
9 changed files with 46 additions and 10 deletions

View file

@ -750,7 +750,6 @@ bool JSONTest::test() {
JSONTest::test("{ key : 1 }", true);
JSONTest::test("{ key : 1, }", true);
JSONTest::test("{ key : 1.2 }", true);
JSONTest::test("{ key : true }", true);
JSONTest::test("{ key : true, }", true);
JSONTest::test("{ key : false }", true);