diff options
| author | MoonEyes <14891700+MoonEyes@users.noreply.github.com> | 2026-12-02 11:11:41 +0100 |
|---|---|---|
| committer | MoonEyes <14891700+MoonEyes@users.noreply.github.com> | 2026-12-02 11:11:41 +0100 |
| commit | b56408e2d79ac1e048c0f53f7d06e80dcf450ecf (patch) | |
| tree | a0f04cae5b66aeaf017a30c6393b941777f00a13 /runtime/test/queue_proxy_test.cpp | |
| parent | 8a95eac1ca3de8385524411df096f489f872716c (diff) | |
rbf0_encode: check record shapes before reading offsets
The short-count change read the offset of every attribute and content
record before the shape checks, so a malformed record (None, a number or
a string in attributes/content) raised TypeError or AttributeError
instead of the documented EncodeError "value". This broke four
subtests of test_bool_recorded_lengths_and_malformed_element_children on
current main, as reported by reviewers (CHANGES_REQUESTED on #2386).
Move the attributes/content shape checks ahead of the offset lists, and
add a regression subtest with a flagged element and malformed records.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions