Skip to content

fix(string-table)!: prevent mutation of interned strings - #130

Draft
BridgeAR wants to merge 1 commit into
mainfrom
BridgeAR/2026-11-19-pprof-string-table-view
Draft

BridgeAR wants to merge 1 commit into
mainfrom
BridgeAR/2026-11-19-pprof-string-table-view

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

Editing the public array leaves cached byte lengths and indices unchanged. The encoder can then write different bytes from the ones it measured.

BREAKING CHANGE: StringTable.strings returns a frozen snapshot. Read it again after adding strings with dedup().

Editing the public array leaves cached byte lengths and indices
unchanged. The encoder can then write different bytes from the ones it
measured.

BREAKING CHANGE: StringTable.strings returns a frozen snapshot.
Read it again after adding strings with dedup().

This branch has not been deployed

No deployments
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.

1 participant