René's URL Explorer Experiment


Title: Add missing autoreset in Packer.pack_ext_type by bysiber · Pull Request #663 · msgpack/msgpack-python · GitHub

Open Graph Title: Add missing autoreset in Packer.pack_ext_type by bysiber · Pull Request #663 · msgpack/msgpack-python

X Title: Add missing autoreset in Packer.pack_ext_type by bysiber · Pull Request #663 · msgpack/msgpack-python

Description: Packer.pack_ext_type() writes to the internal buffer but never checks self._autoreset. Every other public pack method (pack, pack_map_pairs, pack_array_header, pack_map_header) has this pattern: if self._autoreset: ret = self._buffer.getvalue() self._buffer = BytesIO() return ret Without it, pack_ext_type() always returns None, and the packed ext data stays in the buffer. The next call to pack() then returns both the extension data and the new value concatenated together, corrupting the serialized stream. packer = msgpack.Packer() result = packer.pack_ext_type(5, b'\x01\x02\x03') # result is None, expected bytes packer.pack(99) # Returns 7 bytes (ext header + ext data + int) instead of 1 byte

Open Graph Description: Packer.pack_ext_type() writes to the internal buffer but never checks self._autoreset. Every other public pack method (pack, pack_map_pairs, pack_array_header, pack_map_header) has this pattern: if...

X Description: Packer.pack_ext_type() writes to the internal buffer but never checks self._autoreset. Every other public pack method (pack, pack_map_pairs, pack_array_header, pack_map_header) has this pattern: if...

Opengraph URL: https://github.com/msgpack/msgpack-python/pull/663

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:795a73ff-fbb3-6059-9b63-45d5787b134c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4BE:1A86C7:222C52:2D9FCD:6A52C68D
html-safe-nonce9420ccb38a0760c6f861df6c4585041b96f81db7399ee8a6225190ca82ac6016
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEJFOjFBODZDNzoyMjJDNTI6MkQ5RkNEOjZBNTJDNjhEIiwidmlzaXRvcl9pZCI6IjMxNDEwMTU2ODM5MjU3MjI3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8e58d5b2464de5b321e99fcd9987f825096aaf6a8e58f4c7abd5187073532bc9
hovercard-subject-tagpull_request:3307604098
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/msgpack/msgpack-python/pull/663/files
twitter:imagehttps://avatars.githubusercontent.com/u/101993364?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/101993364?s=400&v=4
og:image:altPacker.pack_ext_type() writes to the internal buffer but never checks self._autoreset. Every other public pack method (pack, pack_map_pairs, pack_array_header, pack_map_header) has this pattern: if...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git
octolytics-dimension-user_id198264
octolytics-dimension-user_loginmsgpack
octolytics-dimension-repository_id2242705
octolytics-dimension-repository_nwomsgpack/msgpack-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2242705
octolytics-dimension-repository_network_root_nwomsgpack/msgpack-python
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/msgpack/msgpack-python/pull/663/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmsgpack%2Fmsgpack-python%2Fpull%2F663%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
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%2Fmsgpack%2Fmsgpack-python%2Fpull%2F663%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=msgpack%2Fmsgpack-python
Reloadhttps://github.com/msgpack/msgpack-python/pull/663/files
Reloadhttps://github.com/msgpack/msgpack-python/pull/663/files
Reloadhttps://github.com/msgpack/msgpack-python/pull/663/files
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
msgpack https://github.com/msgpack
msgpack-pythonhttps://github.com/msgpack/msgpack-python
Notifications https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Fork 249 https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Star 2.1k https://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python
Code https://github.com/msgpack/msgpack-python
Issues 3 https://github.com/msgpack/msgpack-python/issues
Pull requests 5 https://github.com/msgpack/msgpack-python/pulls
Discussions https://github.com/msgpack/msgpack-python/discussions
Actions https://github.com/msgpack/msgpack-python/actions
Security and quality 1 https://github.com/msgpack/msgpack-python/security
Insights https://github.com/msgpack/msgpack-python/pulse
Code https://github.com/msgpack/msgpack-python
Issues https://github.com/msgpack/msgpack-python/issues
Pull requests https://github.com/msgpack/msgpack-python/pulls
Discussions https://github.com/msgpack/msgpack-python/discussions
Actions https://github.com/msgpack/msgpack-python/actions
Security and quality https://github.com/msgpack/msgpack-python/security
Insights https://github.com/msgpack/msgpack-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmsgpack%2Fmsgpack-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmsgpack%2Fmsgpack-python%2Fissues%2Fnew%2Fchoose
methanehttps://github.com/methane
msgpack:mainhttps://github.com/msgpack/msgpack-python/tree/main
bysiber:fix/pack-ext-type-autoresethttps://github.com/bysiber/msgpack-python/tree/fix/pack-ext-type-autoreset
Conversation 5 https://github.com/msgpack/msgpack-python/pull/663
Commits 3 https://github.com/msgpack/msgpack-python/pull/663/commits
Checks 25 https://github.com/msgpack/msgpack-python/pull/663/checks
Files changed 4 https://github.com/msgpack/msgpack-python/pull/663/files
Add missing autoreset in Packer.pack_ext_type https://github.com/msgpack/msgpack-python/pull/663/files#top
Show all changes 3 commits https://github.com/msgpack/msgpack-python/pull/663/files
b691a8e Add missing autoreset in Packer.pack_ext_type bysiber Feb 20, 2026 https://github.com/msgpack/msgpack-python/pull/663/commits/b691a8e52cf418408a541af6adc05c51849c8f59
1406cd4 add autoreset support to Packer.pack_ext_type() methane Jun 1, 2026 https://github.com/msgpack/msgpack-python/pull/663/commits/1406cd49ccc275ec15b8e42130fa5ed46e5f81ef
907a1c5 add test methane Jun 1, 2026 https://github.com/msgpack/msgpack-python/pull/663/commits/907a1c5e8d5c950817727717ff8c6759febf25ab
Clear filters https://github.com/msgpack/msgpack-python/pull/663/files
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
_packer.pyx https://github.com/msgpack/msgpack-python/pull/663/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
fallback.py https://github.com/msgpack/msgpack-python/pull/663/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
pyproject.toml https://github.com/msgpack/msgpack-python/pull/663/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_extension.py https://github.com/msgpack/msgpack-python/pull/663/files#diff-d5df3c16717ab6f78501a9ee04799262d161e45ea600599cbc6ada2e7506373f
msgpack/_packer.pyxhttps://github.com/msgpack/msgpack-python/pull/663/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
View file https://github.com/bysiber/msgpack-python/blob/907a1c5e8d5c950817727717ff8c6759febf25ab/msgpack/_packer.pyx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-python/pull/663/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-python/pull/663/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
https://github.com/msgpack/msgpack-python/pull/663/files#diff-7cc44ebbdabe0581aecc8e519e34b721b2be1dbf2f07eb53160ef8e6073dec3a
msgpack/fallback.pyhttps://github.com/msgpack/msgpack-python/pull/663/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
View file https://github.com/bysiber/msgpack-python/blob/907a1c5e8d5c950817727717ff8c6759febf25ab/msgpack/fallback.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-python/pull/663/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-python/pull/663/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Apr 21, 2026https://github.com/msgpack/msgpack-python/pull/663/files#r3116601454
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
methanehttps://github.com/methane
Apr 21, 2026https://github.com/msgpack/msgpack-python/pull/663/files#r3118425078
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@copilothttps://gh.io/copilot-coding-agent-docs
this feedbackhttps://github.com/msgpack/msgpack-python/pull/663#discussion_r3116601454
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Apr 21, 2026https://github.com/msgpack/msgpack-python/pull/663/files#r3116601491
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/files
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
https://github.com/msgpack/msgpack-python/pull/663/files#diff-f0ef50c152a99b4bcd7326e0dd398927ac285ee234ec697b7544594b8d457a1d
pyproject.tomlhttps://github.com/msgpack/msgpack-python/pull/663/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/bysiber/msgpack-python/blob/907a1c5e8d5c950817727717ff8c6759febf25ab/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-python/pull/663/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-python/pull/663/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/msgpack/msgpack-python/pull/663/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test/test_extension.pyhttps://github.com/msgpack/msgpack-python/pull/663/files#diff-d5df3c16717ab6f78501a9ee04799262d161e45ea600599cbc6ada2e7506373f
View file https://github.com/bysiber/msgpack-python/blob/907a1c5e8d5c950817727717ff8c6759febf25ab/test/test_extension.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/msgpack/msgpack-python/pull/663/{{ revealButtonHref }}
https://github.com/msgpack/msgpack-python/pull/663/files#diff-d5df3c16717ab6f78501a9ee04799262d161e45ea600599cbc6ada2e7506373f
https://github.com/msgpack/msgpack-python/pull/663/files#diff-d5df3c16717ab6f78501a9ee04799262d161e45ea600599cbc6ada2e7506373f
https://github.com/msgpack/msgpack-python/pull/663/files#diff-d5df3c16717ab6f78501a9ee04799262d161e45ea600599cbc6ada2e7506373f
Please reload this pagehttps://github.com/msgpack/msgpack-python/pull/663/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.