Skip to content

fix(pcapng): NRB record names and ns_dnsname are decoded with a guessed encoding #1277

Closed

Description

@JarryShaw

Describe the bug
The StringFields have no encoding (pcapkit/protocols/schema/misc/pcapng.py:1464, :1495, :1533), while the spec says UTF-8, so chardet's guess can pick UTF-16.

To Reproduce
NRB 040000002c000000 01001800 0a000001 612e6578616d706c6500 622e6578616d706c6500 00000000 2c000000 gives records=('愮數慭灬攀戮數慭灬攀',).

Expected behavior
('a.example', 'b.example').

Found by the misc 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
    on Oct 7, 2026
  2. moved this to Pending in PyPCAPKiton Oct 7, 2026
  3. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Blocked until the PCAP-NG K1-K5 PR (#1267-#1271) merges.

  4. added
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    and removed
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  5. JarryShaw commented on Oct 7, 2026

    @JarryShaw
    OwnerAuthor

    Unblocked: #1339 merged at 20:42Z. Back to pending.

  6. added
    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
    blockedDeferred pending another issue or decision; see the last comment for what unblocks it
    pendingAccepted and unstarted - nobody is on it and nothing blocks it
    on Oct 7, 2026
  7. moved this from Blocked to WIP in PyPCAPKiton Oct 7, 2026
  8. removed
    wipWork in flight - a covering PR is open or an agent is actively on it
    on Oct 8, 2026
  9. added this to the PyPCAPKit v1.5 milestone on Oct 25, 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