Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty filter operand with negation operator within expression causes segfault #156

Closed
mk6i opened this issue Jan 15, 2022 · 0 comments
Closed
Assignees

Comments

@mk6i
Copy link
Collaborator

mk6i commented Jan 15, 2022

Found this problem with fuzz testing. The following causes a segfault:

$expr = "$.test[?(![])]";

(new \JsonPath\JsonPath())->find(["test" => [["id" => 1,"val" => 10,"val_str" => "table"]]], $expr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant