René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c958ef34-55a7-2516-425b-1d952960bc71
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8C2:3B3DD1:4E1732:6A9DF5:6A62D55F
html-safe-nonce456e17f77ab85f2da640baa49f34471dfd332c9400d5d77ab500a79aea499bd4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEMyOjNCM0REMTo0RTE3MzI6NkE5REY1OjZBNjJENTVGIiwidmlzaXRvcl9pZCI6IjY0MDc3ODM0OTQ0ODQ5NDAxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac215c76b69dcc115f0fb7f3cf0a36fbaf4a5e38e1c49ae9d494d6f51cd5e072af
hovercard-subject-tagpull_request:1272627801
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/3112/files
twitter:imagehttps://avatars.githubusercontent.com/u/1661769?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1661769?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedf33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released41cd1bdb290013455c0ac430fa755621733f5eb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/3112/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F3112%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F3112%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/3112/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/3112/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/3112/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 11 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
bbakermanhttps://github.com/bbakerman
masterhttps://github.com/graphql-java/graphql-java/tree/master
prevent-stackoverflow-in-parserhttps://github.com/graphql-java/graphql-java/tree/prevent-stackoverflow-in-parser
Conversation 7 https://github.com/graphql-java/graphql-java/pull/3112
Commits 2 https://github.com/graphql-java/graphql-java/pull/3112/commits
Checks 0 https://github.com/graphql-java/graphql-java/pull/3112/checks
Files changed https://github.com/graphql-java/graphql-java/pull/3112/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
Preventing stack overflow exceptions via limiting the depth of the parser rules https://github.com/graphql-java/graphql-java/pull/3112/files#top
Show all changes 2 commits https://github.com/graphql-java/graphql-java/pull/3112/files
8a1c884 Preventing stack overflow exceptions via limiting the depth of the pa… bbakerman Mar 13, 2023 https://github.com/graphql-java/graphql-java/pull/3112/commits/8a1c884c81c0b656db201cfd95881feb0f430a55
dcd9cf9 Preventing stack overflow exceptions via limiting the depth of the pa… bbakerman Mar 13, 2023 https://github.com/graphql-java/graphql-java/pull/3112/commits/dcd9cf98e24e0297b61331cc812577c8793565a4
Clear filters https://github.com/graphql-java/graphql-java/pull/3112/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
Parser.java https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
ParserOptions.java https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
ParseCancelledTooDeepException.java https://github.com/graphql-java/graphql-java/pull/3112/files#diff-c0b4cb34ddd074a5f1832be7d385c86bebf80d9b97b279bb4ce94dceb2d66d12
Parsing.properties https://github.com/graphql-java/graphql-java/pull/3112/files#diff-931683f0079d8901452825c45bf65474f894f634635d7b5ad629e78651bdf8e7
ParserStressTest.groovy https://github.com/graphql-java/graphql-java/pull/3112/files#diff-4043a7e78c088aeef9a19fc11ca6875fdf79fb86ef4b77c21f3d6a74a031333f
ParserTest.groovy https://github.com/graphql-java/graphql-java/pull/3112/files#diff-1e99797c8854c50d5995fb32cd36c6c0d3cee97c1f5fb4350d2a0e7e1053a67b
src/main/java/graphql/parser/Parser.javahttps://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
View file https://github.com/graphql-java/graphql-java/blob/dcd9cf98e24e0297b61331cc812577c8793565a4/src/main/java/graphql/parser/Parser.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/3112/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-24ba77f7c181cfd66deb300610d9d36d8ad43a42defd2d8d899da88a8c77f989
src/main/java/graphql/parser/ParserOptions.javahttps://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
View file https://github.com/graphql-java/graphql-java/blob/dcd9cf98e24e0297b61331cc812577c8793565a4/src/main/java/graphql/parser/ParserOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/3112/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-cc1fab9887f0cf77d8caf9afdf45a006206cf0a572a09b1c4992af7c06ce53f6
src/main/java/graphql/parser/exceptions/ParseCancelledTooDeepException.javahttps://github.com/graphql-java/graphql-java/pull/3112/files#diff-c0b4cb34ddd074a5f1832be7d385c86bebf80d9b97b279bb4ce94dceb2d66d12
View file https://github.com/graphql-java/graphql-java/blob/dcd9cf98e24e0297b61331cc812577c8793565a4/src/main/java/graphql/parser/exceptions/ParseCancelledTooDeepException.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/3112/{{ revealButtonHref }}
andimarekhttps://github.com/andimarek
Mar 20, 2023https://github.com/graphql-java/graphql-java/pull/3112/files#r1141522522
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
bbakermanhttps://github.com/bbakerman
Mar 20, 2023https://github.com/graphql-java/graphql-java/pull/3112/files#r1141549209
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
src/main/resources/i18n/Parsing.propertieshttps://github.com/graphql-java/graphql-java/pull/3112/files#diff-931683f0079d8901452825c45bf65474f894f634635d7b5ad629e78651bdf8e7
View file https://github.com/graphql-java/graphql-java/blob/dcd9cf98e24e0297b61331cc812577c8793565a4/src/main/resources/i18n/Parsing.properties
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/3112/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-931683f0079d8901452825c45bf65474f894f634635d7b5ad629e78651bdf8e7
https://github.com/graphql-java/graphql-java/pull/3112/files#diff-931683f0079d8901452825c45bf65474f894f634635d7b5ad629e78651bdf8e7
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/3112/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.