cppgraphqlgen: Invalid escaped character in string will crash the parser.
Hi,
It is possible to crash the parser (client/query/subscription) by having an invalid escaped character.
For example using a directive:
@something( s : "\." )
This looks like it causes an infinite recursion
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (12 by maintainers)
Commits related to this issue
- Add a unit test for #222 — committed to wravery/cppgraphqlgen by wravery 2 years ago
- Add a unit test for #222 — committed to wravery/cppgraphqlgen by wravery 2 years ago
Here is a patch for 3.7.1 with my fix using PEGTL
limit_depth
on theselection_set
rule, note that the depth of 18 I have used here is the maximum safe limit when using a 4MB stack, it is much smaller when using the default 1MB stack.