Skip to content

fix(pcapng): an EPB whose captured length runs past the block does not rebuild byte-exactly #1405

Closed

Description

@JarryShaw

Describe the bug
A PCAP-NG Enhanced Packet Block whose captured_len runs far past the block does not rebuild byte-exactly: 36 octets in, 41 out. bounded_area and nonnegative (pcapkit/protocols/schema/misc/pcapng.py) bound block-level spans, and the rebuild does not reproduce the captured octets.

To Reproduce
An EPB with captured_len greater than the block's remaining length, parsed and rebuilt through from_data. Found by the #1398 cross-review's PCAP-NG fuzz. It is identical on main, so #1398 does not cause it.

Expected behavior
Byte-exact, or a rejection that keeps the block as captured, per the every-round-trip ruling.

Blocked until #1398 merges, because it edits the same schema file.

Activity

  1. added
    fixPull requests that fix a defect (fix: subject prefix)
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 8, 2026
  2. moved this to Blocked in PyPCAPKiton Oct 8, 2026
  3. JarryShaw commented on Oct 8, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #1398 (and #1400) have merged. One worker is taking all the PCAP-NG follow-ups together, #1382–#1384, #1401, #1405 and #1406, because they edit the same pcapng.py files.

  4. added
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    on Oct 8, 2026
  5. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 8, 2026
  6. added this to the PyPCAPKit v1.5 milestone on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixPull requests that fix a defect (fix: subject prefix)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions