@@ -0,0 +1,938 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.core.BaseTest;%0Aimport com.fasterxml.jackson.core.JsonPointer;%0A%0A// For https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51806%0A// (via databind, but we don't need that)%0Apublic class Fuzz51806JsonPointerParseTest extends BaseTest%0A%7B%0A    // Before fix, looks like this is enough to cause StackOverflowError%0A    private final static int TOO_DEEP_PATH = 6000;%0A%0A    // Verify that very deep/long (by number of segments) JsonPointer%0A    // may still be parsed ok%0A    public void testJsonPointerParseTail() throws Exception%0A    %7B%0A        JsonPointer p = JsonPointer.compile(_generatePath(TOO_DEEP_PATH));%0A        assertNotNull(p);%0A    %7D%0A%0A    private String _generatePath(int depth) %7B%0A        StringBuilder sb = new StringBuilder(4 * depth);%0A        for (int i = 0; i %3C depth; ++i) %7B%0A            sb.append(%22/a%22).append(depth);%0A        %7D%0A        return sb.toString();%0A    %7D%0A%7D%0A

Add a failing test for JsonParser.compile() and Very Deeply Nested expressions