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
{{ message }}
Repository navigation
fix(schema): a SchemaField reads its declared span but packs only the bytes its nested schema consumed #1292
Describe the bug
Unpack hands the nested schema the whole declared span (schema.py:955-958, data.read(length)), but the nested schema reads less, and pack emits only what it consumed. The enclosing length field still says the old size, so the output is internally inconsistent and the unread octets are gone.
Activity
JarryShaw commentedon Oct 7, 2026
Blocked until the core schema PR for #1274/#1275/#1265/#1285 merges, because both edit
protocols/schema/schema.py.JarryShaw commentedon Oct 7, 2026
Unblocked: #1331 merged at 20:41Z. Back to
pending.JarryShaw commentedon Oct 7, 2026
Partly fixed by #1374 (parse → pack byte-exact). The parse →
from_datahalf is filed as #1380; close this once both have merged.fix(schema): Schema.pack keeps option padding, SchemaField spans and …
fix(schema): Schema.pack keeps option padding, SchemaField spans and …
JarryShaw commentedon Oct 8, 2026
Both halves have merged: parse → pack in #1374, parse →
from_datain #1397 (which closed #1380). Closing.