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(corekit): a NumberField whose bit_length is narrower than its octets drops the high bits #1488
Expected behavior 'ffff'. EnumField(length=1, bit_length=3) behaves the same way.
System information
Linux, CPython 3.14.7, main at 00d232890.
Additional context
Both pack and unpack mask with _bit_mask (pcapkit/corekit/fields/numbers.py:318, :322). The only shipped use is vlan.TCI (pcapkit/protocols/schema/link/vlan.py:47-51), which no protocol parses with.
Activity
test(corekit): field, schema and Info round trips (#1202)
JarryShaw commentedon Oct 9, 2026
Blocked until #1492 merges. #1492 adds the
Gaprow for this defect totests/corekit/_roundtrip.py, and the fix must delete that row in the same PR.test(corekit): field, schema and Info round trips (#1202) (#1492)
JarryShaw commentedon Oct 9, 2026
Unblocked: #1492 merged (
d9e12e82e). A worker is starting on this against currentmain; the fix PR deletes this defect'sGaprow.fix(corekit): keep a NumberField's bits outside bit_length as captured (
fix(corekit): keep a NumberField's bits outside bit_length as captured (
fix(corekit): keep a NumberField's bits outside bit_length as captured (
fix(corekit): keep a NumberField's bits outside bit_length as captured (
fix(corekit): keep a NumberField's bits outside bit_length as captured (
fix(corekit): keep a NumberField's bits outside bit_length as captured (