Skip to content

Return length of 1 for continuation bytes#705

Open
Vekhir wants to merge 1 commit into
haskell:masterfrom
Vekhir:patch-1
Open

Return length of 1 for continuation bytes#705
Vekhir wants to merge 1 commit into
haskell:masterfrom
Vekhir:patch-1

Conversation

@Vekhir

@Vekhir Vekhir commented Jul 12, 2026

Copy link
Copy Markdown

A continuation byte is always at least one byte long; returning a length of two makes accidental out of bound reads more likely. This reverts a change in behaviour in 2.1.3+ due to 1373ce3

Fixes #704

A continuation byte is always at least one byte long; returning a length of two makes accidental out of bound reads more likely.

Fixes haskell#704
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsafe iter can lead to out of bounds memory access on invalid values

2 participants