Repository navigation
docs(security): verify the object-representation page - #320
Merged
Merged
Conversation
This was referenced Nov 3, 2026
homer6
force-pushed
the
security/293-object-representation
branch
from
November 3, 2026 12:23
11ecf8f to
b8810a8
Compare
Owner
Author
|
Merged into
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verifies
docs/security/object-representation.md(#293). Stacked on #319.What the page now says
badsession whoseauthenticatedflag is indeterminate, and the fixed version with deny-by-default member initializers.-ftrivial-auto-var-init=zero(both our compilers accept it) and C++26 erroneous behaviour are defence in depth, not the fix.badmemcpyof a padded header.std::has_unique_object_representations_vdetects the padding (static_assertin the example). An explicit little-endian wire encoding. Decode field by field with range checks.bad runstatic_castdowncast to the wrong message type, caught by ASan as stack-buffer-overflow, and thedynamic_castfix.bit_cast,endianandbyteswapfor representation work.Tests:
tests/security/object-representation_test.cpp, 5 tests:dynamic_castrejects the wrong message type;bit_castcopies bits.Tested
securityarea: gcc-15 31/31, clang-22 31/31.bad runblock was caught.Status: verified. README.md and CLAUDE.md need no change.
Related to #293, #286