3 changed files with 29 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||||||
|
package com.jayway.jsonpath; |
||||||
|
|
||||||
|
import org.junit.Test; |
||||||
|
|
||||||
|
import static org.assertj.core.api.Assertions.assertThatNoException; |
||||||
|
|
||||||
|
public class Issue_970 { |
||||||
|
@Test |
||||||
|
public void shouldNotCauseStackOverflow() { |
||||||
|
assertThatNoException().isThrownBy(() -> Criteria.where("[']',")); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
package com.jayway.jsonpath; |
||||||
|
|
||||||
|
import org.junit.Test; |
||||||
|
|
||||||
|
import static org.assertj.core.api.Assertions.*; |
||||||
|
|
||||||
|
public class Issue_973 { |
||||||
|
@Test |
||||||
|
public void shouldNotCauseStackOverflow() { |
||||||
|
assertThatNoException().isThrownBy(() -> Criteria.parse("@[\"\",/\\")); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue