Skip to content

Commit

Permalink
refactor(codegen): add CodeBuffer to fix soundness hole (#6148)
Browse files Browse the repository at this point in the history
# What This PR Does

Adds `CodeBuffer`, a simple wrapper over a `Vec<u8>` with a protective and reduced API for upholding UTF-8 validity guarantees. Closes #6147.

Note that this struct is actually quite small. Most of the added lines are doc comments.
  • Loading branch information
DonIsaac committed Oct 13, 2024
1 parent 8fe1b0a commit 204bf55
Show file tree
Hide file tree
Showing 4 changed files with 449 additions and 20 deletions.
Loading

0 comments on commit 204bf55

Please sign in to comment.