Title: Preventing stack overflow exceptions via limiting the depth of the parser rules by bbakerman · Pull Request #3112 · graphql-java/graphql-java · GitHub
Open Graph Title: Preventing stack overflow exceptions via limiting the depth of the parser rules by bbakerman · Pull Request #3112 · graphql-java/graphql-java
X Title: Preventing stack overflow exceptions via limiting the depth of the parser rules by bbakerman · Pull Request #3112 · graphql-java/graphql-java
Description: This puts in a limit on how deep grammar rules can get. As ANLTR is a recursive-descent parser it will build up a call stack as it moves along. This stack is limited and can blow up with just the wrong input. Even if the max tokens checking is in place, it can still blow the JVM stack before the max tokens are reached. Right now it's 500 deep as presented here. Is this the right value? More?? Less ?? I changed it from 1000
Open Graph Description: This puts in a limit on how deep grammar rules can get. As ANLTR is a recursive-descent parser it will build up a call stack as it moves along. This stack is limited and can blow up with just the ...
X Description: This puts in a limit on how deep grammar rules can get. As ANLTR is a recursive-descent parser it will build up a call stack as it moves along. This stack is limited and can blow up with just the ...
Opengraph URL: https://github.com/graphql-java/graphql-java/pull/3112
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c958ef34-55a7-2516-425b-1d952960bc71 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8C2:3B3DD1:4E1732:6A9DF5:6A62D55F |
| html-safe-nonce | 456e17f77ab85f2da640baa49f34471dfd332c9400d5d77ab500a79aea499bd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEMyOjNCM0REMTo0RTE3MzI6NkE5REY1OjZBNjJENTVGIiwidmlzaXRvcl9pZCI6IjY0MDc3ODM0OTQ0ODQ5NDAxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 215c76b69dcc115f0fb7f3cf0a36fbaf4a5e38e1c49ae9d494d6f51cd5e072af |
| hovercard-subject-tag | pull_request:1272627801 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/3112/files |
| twitter:image | https://avatars.githubusercontent.com/u/1661769?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1661769?s=400&v=4 |
| og:image:alt | This puts in a limit on how deep grammar rules can get. As ANLTR is a recursive-descent parser it will build up a call stack as it moves along. This stack is limited and can blow up with just the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width