Skip to content

fix(hip): a HIP packet with no parameters cannot be rebuilt with from_data #1314

Closed

Description

@JarryShaw

Describe the bug
read sets parameters only when some exist (hip.py:591-595), but _make_data reads data.parameters unconditionally (hip.py:764).

To Reproduce
HIP(io.BytesIO(b), len(b), extension=True) then HIP.from_data(p.info) with b = 3b040121 + 36 x 00 (Header Length 4, no parameters): AttributeError: 'HIP' object has no attribute 'parameters'.

Expected behavior
A parameterless packet round-trips (empty parameters).

Found by the internet-v4 round-trip audit (#1202); reproduced on main at 11ae68ebf (repro check D3).

Found by the internet-v4 round-trip audit (#1202). The repro was re-checked by an independent verifier, and I re-ran it on main at 11ae68ebf.

Activity

  1. added
    fixPull requests that fix a defect (fix: subject prefix)
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    wipWork in flight - a covering PR is open or an agent is actively on it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  2. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 7, 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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions