| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a5bf93c6-306f-21a0-ebf2-1d6a1a6d5df9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B9A6:140A20:63767D:85AAB1:6969B4DE |
| html-safe-nonce | 868d688bafa97fccd1f2ab6d6f3bf72c40ada0096f3cba6201e48444374e4586 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUE2OjE0MEEyMDo2Mzc2N0Q6ODVBQUIxOjY5NjlCNERFIiwidmlzaXRvcl9pZCI6Ijg2MjMxOTA2Mjg2MjA2NzgzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8e3283af1b1cbfa7ef99723c341cd45a4aba69f4cc26d15ec8c6625d6ec8b34a |
| hovercard-subject-tag | pull_request:1045512590 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/96537/files |
| twitter:image | https://avatars.githubusercontent.com/u/662003?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/662003?s=400&v=4 |
| og:image:alt | On current main, converting a large enough int to a decimal string raises ValueError as expected. However, the raise comes after the quadratic-time base-conversion algorithm has run to completion. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b23b8fcc855cd29bb04d6c94aafa62d336bf44eefa8229444eecc968cad03aee |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 0672399d88424758731ec07fe24509e23bb17fb5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/96537/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F96537%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2Fpython%2Fcpython%2Fpull%2F96537%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=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/96537/files |
| Reload | https://github.com/python/cpython/pull/96537/files |
| Reload | https://github.com/python/cpython/pull/96537/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/96537/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/96537/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| gpshead | https://github.com/gpshead |
| python:main | https://github.com/python/cpython/tree/main |
| mdickinson:fix/int-to-str-dos | https://github.com/mdickinson/cpython/tree/fix/int-to-str-dos |
|
Conversation
17
| https://github.com/python/cpython/pull/96537 |
|
Commits
14
| https://github.com/python/cpython/pull/96537/commits |
|
Checks
0
| https://github.com/python/cpython/pull/96537/checks |
|
Files changed
| https://github.com/python/cpython/pull/96537/files |
| Please reload this page | https://github.com/python/cpython/pull/96537/files |
|
gh-95778: Add pre-check for int-to-str conversion
| https://github.com/python/cpython/pull/96537/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/96537/files |
|
2fbc9ce
Add pre-check for int-to-str conversion
mdickinson Sep 3, 2022
| https://github.com/python/cpython/pull/96537/commits/2fbc9cea2eece673ad3288518bd1129008182742 |
|
d16db91
Avoid potential undefined behaviour from overflow
mdickinson Sep 3, 2022
| https://github.com/python/cpython/pull/96537/commits/d16db91dcccc7b0e5fb8b7c0f339190132b7c042 |
|
66a07ac
Reworked, even cruder bound, that avoids potential issues with intege…
mdickinson Sep 3, 2022
| https://github.com/python/cpython/pull/96537/commits/66a07ac000546ea6e5ead8498ccfeb32b6b76f13 |
|
6eadbda
Rename the error message constants.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/6eadbdaef34212b47b729bf77d59ad83bb387611 |
|
195686c
Add a DoS prevention success timed regression test.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/195686ca965a5097e4b22d4682e6938ad6baa7c1 |
|
87bd23d
Improve the test to check close to the limit.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/87bd23d3df3aca81b88a5f245e70fded7055ab92 |
|
de9ed4d
Use fewer digits in the test to speed it up on slow hosts.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/de9ed4d81b40f2080110a8ca13994e29caacec9f |
|
dbd8da9
Misc: Fix a typo in the header comment.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/dbd8da99c2d77dac9bf8379035fc39c9761636d5 |
|
c49a737
Change timers if process_time() returns 0. #wasm
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/c49a737eaa4a780b2bf604d06a52ef7eb0258758 |
|
35c5ea7
Merge branch 'main' into fix/int-to-str-dos
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/35c5ea76279a99a8661a9f5acc5b8017a69048bd |
|
730915d
Update comment to suggest reading the PR for detail
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/730915df6b236d1937466c724cc53c79009ef532 |
|
56f08c2
Minor comment typo fix (restart CI).
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/56f08c28c33bfa035ccb1b76599b262b6150cc0e |
|
4dae3e0
cleanup the test.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/4dae3e0494bc45b386b243f53b8d19bfb9e29d47 |
|
adb1784
Add Mark's name to the NEWS entry.
gpshead Sep 4, 2022
| https://github.com/python/cpython/pull/96537/commits/adb17840c496a0497fff5d07688d26d60cbfe629 |
|
Clear filters
| https://github.com/python/cpython/pull/96537/files |
| Please reload this page | https://github.com/python/cpython/pull/96537/files |
| Please reload this page | https://github.com/python/cpython/pull/96537/files |
|
pycore_long.h
| https://github.com/python/cpython/pull/96537/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
test_int.py
| https://github.com/python/cpython/pull/96537/files#diff-18ccbdfd8076e3f5b7f84f250e7f312799c3db073d3c8e351f5ce4ad18d3c304 |
|
2022-08-07-16-53-38.gh-issue-95778.ch010gps.rst
| https://github.com/python/cpython/pull/96537/files#diff-b43b52d1cb3cc2776e975eb3e4fdf44450f93ea09002ea3ef6ce4c982c8e9ac4 |
|
longobject.c
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Include/internal/pycore_long.h | https://github.com/python/cpython/pull/96537/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
View file
| https://github.com/mdickinson/cpython/blob/adb17840c496a0497fff5d07688d26d60cbfe629/Include/internal/pycore_long.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96537/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96537/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
|
| https://github.com/python/cpython/pull/96537/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511 |
| Lib/test/test_int.py | https://github.com/python/cpython/pull/96537/files#diff-18ccbdfd8076e3f5b7f84f250e7f312799c3db073d3c8e351f5ce4ad18d3c304 |
|
View file
| https://github.com/mdickinson/cpython/blob/adb17840c496a0497fff5d07688d26d60cbfe629/Lib/test/test_int.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96537/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96537/files#diff-18ccbdfd8076e3f5b7f84f250e7f312799c3db073d3c8e351f5ce4ad18d3c304 |
|
| https://github.com/python/cpython/pull/96537/files#diff-18ccbdfd8076e3f5b7f84f250e7f312799c3db073d3c8e351f5ce4ad18d3c304 |
|
| https://github.com/python/cpython/pull/96537/files#diff-18ccbdfd8076e3f5b7f84f250e7f312799c3db073d3c8e351f5ce4ad18d3c304 |
| Misc/NEWS.d/next/Security/2022-08-07-16-53-38.gh-issue-95778.ch010gps.rst | https://github.com/python/cpython/pull/96537/files#diff-b43b52d1cb3cc2776e975eb3e4fdf44450f93ea09002ea3ef6ce4c982c8e9ac4 |
|
View file
| https://github.com/mdickinson/cpython/blob/adb17840c496a0497fff5d07688d26d60cbfe629/Misc/NEWS.d/next/Security/2022-08-07-16-53-38.gh-issue-95778.ch010gps.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96537/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96537/files#diff-b43b52d1cb3cc2776e975eb3e4fdf44450f93ea09002ea3ef6ce4c982c8e9ac4 |
| Objects/longobject.c | https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
View file
| https://github.com/mdickinson/cpython/blob/adb17840c496a0497fff5d07688d26d60cbfe629/Objects/longobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96537/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/96537/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |