You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pack_array_header() and pack_map_header() accept negative sizes. The C extension wraps them to unsigned lengths, while the Python fallback can write a different MessagePack type entirely.
Reject negative sizes before writing to the buffer in both implementations. Regression tests also check that a rejected header leaves previously buffered data unchanged.
Validation: both complete test suites pass on Python 3.10, 3.13, and 3.15rc2; Ruff checks and package validation pass.
pack_array_header()andpack_map_header()accept negative sizes. The C extension wraps them to unsigned lengths, while the Python fallback can write a different MessagePack type entirely.Reject negative sizes before writing to the buffer in both implementations. Regression tests also check that a rejected header leaves previously buffered data unchanged.
Validation: both complete test suites pass on Python 3.10, 3.13, and 3.15rc2; Ruff checks and package validation pass.