Skip to content

Fix a bug in the parsing of UTF-8 policies leading to a panic. - #169

Merged
tbrezot merged 1 commit into
developfrom
tbz/fix-policy-parsing
Sep 30, 2026
Merged

tbrezot merged 1 commit into
developfrom
tbz/fix-policy-parsing

Conversation

@tbrezot

@tbrezot tbrezot commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Direct indexation of the input string cases panic when indexing in the middle of a multi-byte UTF-8 character. For now properly handle non-ASCII strings by returning an error instead of panicking. Supporting the full UTF-8 character set seems to be adding much complexity and is deferred to later, if and when the need will be raised.

@tbrezot
tbrezot changed the base branch from main to develop September 29, 2026 14:53
@tbrezot
tbrezot merged commit b4a260c into develop Sep 30, 2026
3 checks passed
@tbrezot
tbrezot deleted the tbz/fix-policy-parsing branch September 30, 2026 07:43
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.

3 participants