Skip to content

Harden payload buffer bounds handling - #25

Open
dallison wants to merge 1 commit into
mainfrom
payload_buffer_hardening
Open

Harden payload buffer bounds handling#25
dallison wants to merge 1 commit into
mainfrom
payload_buffer_hardening

Conversation

@dallison

Copy link
Copy Markdown
Owner

Summary

  • Validate payload buffer offsets and typed access extents before forming pointers.
  • Harden string readers/writers, vector growth, and bitmap allocator initialization so allocation failures preserve or roll back state.
  • Add regression coverage for forged offsets, string bounds, vector allocation failures, and bitmap allocator cleanup paths.

Test plan

  • bazelisk test --lockfile_mode=off //toolbelt:payload_buffer_test

Validate forged offsets and preserve buffer state on allocation failures so malformed payload data cannot trigger out-of-bounds accesses or stranded allocations.
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