Skip to content

fix: Ensure capacity doesn't excede length #110

Merged
epage merged 3 commits into
cobalt-org:masterfrom
epage:len
Jul 14, 2026
Merged

fix: Ensure capacity doesn't excede length #110
epage merged 3 commits into
cobalt-org:masterfrom
epage:len

Conversation

@epage

@epage epage commented Jul 14, 2026

Copy link
Copy Markdown
Member

I'm assuming this will get compiled away unless it actually will assert.

Fixes #109

epage added 3 commits July 14, 2026 08:22
I'm assuming this will get compiled away unless it actually will assert.

Fixes cobalt-org#109
Not considering this a breaking change because use of a non-u8 capavity
is too broken.
@epage
epage merged commit 7627dcb into cobalt-org:master Jul 14, 2026
16 checks passed
@epage
epage deleted the len branch July 14, 2026 13:47
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.

Integer truncation in StackString<CAPACITY> length allows invalid UTF-8 UB

1 participant