Skip to content

Fix panic in Oid::from_str with large second component. - #103

Merged
partim merged 3 commits into
mainfrom
oid-from-str-large-second-component
Jul 13, 2026
Merged

partim merged 3 commits into
mainfrom
oid-from-str-large-second-component

Conversation

@partim

@partim partim commented Jul 13, 2026

Copy link
Copy Markdown
Member

This PR fixes a panic in Oid::from_str when the first component is 2 and the second component is just too large to have 80 added to it and still fit.

Reported by @xc01.

Fixes #101.

@partim
partim requested a review from tertsdiepraam July 13, 2026 09:52
@partim
partim merged commit d5d5655 into main Jul 13, 2026
12 checks passed
@partim
partim deleted the oid-from-str-large-second-component branch July 13, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several public APIs can panic on malformed/oversized inputs or recoverable encoder errors

2 participants