René's URL Explorer Experiment


Title: Modules/cjkcodecs/_codecs_iso2022.c - read out of bounds · Issue #101180 · python/cpython · GitHub

Open Graph Title: Modules/cjkcodecs/_codecs_iso2022.c - read out of bounds · Issue #101180 · python/cpython

X Title: Modules/cjkcodecs/_codecs_iso2022.c - read out of bounds · Issue #101180 · python/cpython

Description: Bug report ==2729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef35c8f14 at pc 0x7f3e0254c47c bp 0x7ffef35c8e50 sp 0x7ffef35c8e48 READ of size 4 at 0x7ffef35c8f14 thread T0 #0 0x7f3e0254c47b in jisx0213_encoder Modules...

Open Graph Description: Bug report ==2729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef35c8f14 at pc 0x7f3e0254c47c bp 0x7ffef35c8e50 sp 0x7ffef35c8e48 READ of size 4 at 0x7ffef35c8f14 thread T0 #0 0x...

X Description: Bug report ==2729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef35c8f14 at pc 0x7f3e0254c47c bp 0x7ffef35c8e50 sp 0x7ffef35c8e48 READ of size 4 at 0x7ffef35c8f14 thread T0 #0 0x...

Opengraph URL: https://github.com/python/cpython/issues/101180

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modules/cjkcodecs/_codecs_iso2022.c - read out of bounds","articleBody":"# Bug report\r\n```\r\n==2729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef35c8f14 at pc 0x7f3e0254c47c bp 0x7ffef35c8e50 sp 0x7ffef35c8e48\r\nREAD of size 4 at 0x7ffef35c8f14 thread T0\r\n    #0 0x7f3e0254c47b in jisx0213_encoder Modules/cjkcodecs/_codecs_iso2022.c:808\r\n    #1 0x7f3e0254c47b in jisx0213_2004_1_encoder_paironly Modules/cjkcodecs/_codecs_iso2022.c:894\r\n    #2 0x7f3e025469a9 in iso2022_encode Modules/cjkcodecs/_codecs_iso2022.c:196\r\n    #3 0x7f3e02536457 in multibytecodec_encode Modules/cjkcodecs/multibytecodec.c:523\r\n    #4 0x7f3e0253829e in _multibytecodec_MultibyteCodec_encode_impl Modules/cjkcodecs/multibytecodec.c:620\r\n    #5 0x7f3e0253829e in _multibytecodec_MultibyteCodec_encode Modules/cjkcodecs/clinic/multibytecodec.c.h:91\r\n    #6 0x55e4cc690361 in cfunction_vectorcall_FASTCALL_KEYWORDS Objects/methodobject.c:438\r\n    #7 0x55e4cc5b029e in PyObject_Call (/home/kali/Downloads/cpython/python+0x3e629e)\r\n    #8 0x55e4cc841026 in _PyCodec_EncodeInternal Python/codecs.c:419\r\n    #9 0x55e4cc9cb18f in _codecs_encode_impl Modules/_codecsmodule.c:132\r\n    #10 0x55e4cc9cb18f in _codecs_encode Modules/clinic/_codecsmodule.c.h:166\r\n    #11 0x55e4cc690361 in cfunction_vectorcall_FASTCALL_KEYWORDS Objects/methodobject.c:438\r\n    #12 0x55e4cc5af6bf in _PyObject_VectorcallTstate Include/internal/pycore_call.h:92\r\n    #13 0x55e4cc5af6bf in PyObject_Vectorcall Objects/call.c:301\r\n    #14 0x55e4cc4753f6 in _PyEval_EvalFrameDefault Python/generated_cases.c.h:2982\r\n    #15 0x55e4cc83c811 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:88\r\n    #16 0x55e4cc83c811 in _PyEval_Vector Python/ceval.c:1716\r\n    #17 0x55e4cc83c811 in PyEval_EvalCode Python/ceval.c:578\r\n    #18 0x55e4cc91aebd in run_eval_code_obj Python/pythonrun.c:1702\r\n    #19 0x55e4cc91aebd in run_mod Python/pythonrun.c:1723\r\n    #20 0x55e4cc91e6ca in pyrun_file Python/pythonrun.c:1617\r\n    #21 0x55e4cc91e6ca in _PyRun_SimpleFileObject Python/pythonrun.c:439\r\n    #22 0x55e4cc91f17a in _PyRun_AnyFileObject Python/pythonrun.c:78\r\n    #23 0x55e4cc976719 in pymain_run_file_obj Modules/main.c:360\r\n    #24 0x55e4cc976719 in pymain_run_file Modules/main.c:379\r\n    #25 0x55e4cc976719 in pymain_run_python Modules/main.c:610\r\n    #26 0x55e4cc977ebc in Py_RunMain Modules/main.c:689\r\n    #27 0x55e4cc977ebc in pymain_main Modules/main.c:719\r\n    #28 0x55e4cc977ebc in Py_BytesMain Modules/main.c:743\r\n    #29 0x7f3e052d6209 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58\r\n    #30 0x7f3e052d62bb in __libc_start_main_impl ../csu/libc-start.c:389\r\n    #31 0x55e4cc49c3f0 in _start (/home/kali/Downloads/cpython/python+0x2d23f0)\r\n\r\nAddress 0x7ffef35c8f14 is located in stack of thread T0 at offset 52 in frame\r\n    #0 0x7f3e0254644f in iso2022_encode Modules/cjkcodecs/_codecs_iso2022.c:157\r\n\r\n  This frame has 2 object(s):\r\n    [48, 52) 'c' (line 161) \u003c== Memory access at offset 52 overflows this variable\r\n    [64, 72) 'length' (line 184)\r\nHINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork\r\n      (longjmp and C++ exceptions *are* supported)\r\nSUMMARY: AddressSanitizer: stack-buffer-overflow Modules/cjkcodecs/_codecs_iso2022.c:808 in jisx0213_encoder\r\nShadow bytes around the buggy address:\r\n  0x10005e6b1190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b11a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b11b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b11c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b11d0: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1\r\n=\u003e0x10005e6b11e0: f1 f1[04]f2 00 f3 f3 f3 00 00 00 00 00 00 00 00\r\n  0x10005e6b11f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b1200: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f3\r\n  0x10005e6b1210: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00\r\n  0x10005e6b1220: 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 00 f2 f2 f2\r\n  0x10005e6b1230: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00\r\nShadow byte legend (one shadow byte represents 8 application bytes):\r\n  Addressable:           00\r\n  Partially addressable: 01 02 03 04 05 06 07 \r\n  Heap left redzone:       fa\r\n  Freed heap region:       fd\r\n  Stack left redzone:      f1\r\n  Stack mid redzone:       f2\r\n  Stack right redzone:     f3\r\n  Stack after return:      f5\r\n  Stack use after scope:   f8\r\n  Global redzone:          f9\r\n  Global init order:       f6\r\n  Poisoned by user:        f7\r\n  Container overflow:      fc\r\n  Array cookie:            ac\r\n  Intra object redzone:    bb\r\n  ASan internal:           fe\r\n  Left alloca redzone:     ca\r\n  Right alloca redzone:    cb\r\n  Shadow gap:              cc\r\n==2729==ABORTING\r\n```\r\n\r\n# Your environment\r\n\r\n\r\n- CPython versions tested on: 3.12, 3.11, 3.10\r\n- Operating system and architecture: x86_x64 NAME=\"Kali GNU/Linux\" \"2022.3\" (Reproduced also on other debian OS)\r\n\r\n# Steps to reproduce\r\n\r\n- CFLAGS=\"-fsanitize=address\" CXXFLAGS=\"-fsanitize=address\" LDFLAGS=\"-fsanitize=address\" ./configure\r\n- make\r\n- copy test.py and crashfile to /cpython directory\r\n- run ./python test.py\r\n# Prerequisites\r\n[crashfile.txt](https://github.com/python/cpython/files/10464270/crashfile.txt)\r\ntest.py\r\n```\r\nimport codecs\r\nf=open('crashfile.txt', 'r')\r\ntext=f.read()\r\nprint(text)\r\ncodecs.encode(text, encoding='iso2022_jp_2004', errors='ignore')\r\n```\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-101720\n* gh-111695\n* gh-111769\n* gh-111771\n* gh-111779\n* gh-111780\n* gh-111781\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/stasos24","@type":"Person","name":"stasos24"},"datePublished":"2023-01-20T07:58:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/101180/cpython/issues/101180"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:584d3432-54e1-6acc-260c-6fa01279b09d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBC6:1F9980:10C5554:16719E2:69699275
html-safe-nonce32e846f3c3e53897e0999dc54fc9e1d2a76b1040523eb94c4f088b45ff2f2390
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkM2OjFGOTk4MDoxMEM1NTU0OjE2NzE5RTI6Njk2OTkyNzUiLCJ2aXNpdG9yX2lkIjoiODQxMjMyMzU5NTcwMTI5MzY4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf01ba7eda4bca691ce8365726abb25876b58e942cadf6b90bfd4ff7bc900a272
hovercard-subject-tagissue:1550444646
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/101180/issue_layout
twitter:imagehttps://opengraph.githubassets.com/908a8dcb418a028ad2884d31d60dd619e654979fd6df500bf3c4ba316138a825/python/cpython/issues/101180
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/908a8dcb418a028ad2884d31d60dd619e654979fd6df500bf3c4ba316138a825/python/cpython/issues/101180
og:image:altBug report ==2729==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffef35c8f14 at pc 0x7f3e0254c47c bp 0x7ffef35c8e50 sp 0x7ffef35c8e48 READ of size 4 at 0x7ffef35c8f14 thread T0 #0 0x...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestasos24
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/101180#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F101180
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fpython%2Fcpython%2Fissues%2F101180
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/101180
Reloadhttps://github.com/python/cpython/issues/101180
Reloadhttps://github.com/python/cpython/issues/101180
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/101180
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 pagehttps://github.com/python/cpython/issues/101180
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/101180
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/101180
Modules/cjkcodecs/_codecs_iso2022.c - read out of boundshttps://github.com/python/cpython/issues/101180#top
https://github.com/gpshead
https://github.com/vstinner
https://github.com/hyeshik
https://github.com/serhiy-storchaka
https://github.com/corona10
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
https://github.com/stasos24
https://github.com/stasos24
stasos24https://github.com/stasos24
on Jan 20, 2023https://github.com/python/cpython/issues/101180#issue-1550444646
crashfile.txthttps://github.com/python/cpython/files/10464270/crashfile.txt
gh-101180: PR demonstrating the ASAN failure #101720https://github.com/python/cpython/pull/101720
gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds #111695https://github.com/python/cpython/pull/111695
[3.12] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) #111769https://github.com/python/cpython/pull/111769
[3.11] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 co… #111771https://github.com/python/cpython/pull/111771
[3.10] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) #111779https://github.com/python/cpython/pull/111779
[3.9] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) #111780https://github.com/python/cpython/pull/111780
[3.8] gh-101180: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds (gh-111695) #111781https://github.com/python/cpython/pull/111781
corona10https://github.com/corona10
gpsheadhttps://github.com/gpshead
hyeshikhttps://github.com/hyeshik
serhiy-storchakahttps://github.com/serhiy-storchaka
vstinnerhttps://github.com/vstinner
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
type-securityA security issuehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-security%22
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.