Skip to content

[System.Formats.Tar] Consider adding fuzzing for TarReader #136371

Description

@svick

Description

System.Formats.Tar parses a complex archive format with several variants and extensions. Adding a TarReader target to the existing DotnetFuzzing infrastructure could improve coverage of malformed, truncated, and unusual archives.

Suggested coverage

The target should pass arbitrary archive data through both synchronous and asynchronous TarReader paths and exercise:

  • V7, Ustar, Pax, and GNU formats
  • Pax extended attributes
  • GNU sparse maps
  • Numeric fields and alternative numeric encodings
  • Header checksums
  • Long names and link names
  • Entry sizes and block alignment
  • Truncated headers and entry data
  • Invalid UTF-8 and unusual field contents
  • Multiple entries and end-of-archive markers
  • Seekable and non-seekable streams
  • copyData enabled and disabled

For successfully parsed entries, the target should access entry metadata and consume entry data streams so that fuzzing proceeds beyond the initial header.

A small corpus of valid archives covering the supported formats would help the fuzzer reach deeper parsing paths.

Note

This issue was drafted with GitHub Copilot.

Activity

  1. added
    untriaged
    on Oct 23, 2026
  2. changed the title [-][System.Formats.Tar] Add continuous fuzzing for TarReader[/-] [+][System.Formats.Tar] Consider adding continuous fuzzing for TarReader[/+] on Oct 23, 2026
  3. changed the title [-][System.Formats.Tar] Consider adding continuous fuzzing for TarReader[/-] [+][System.Formats.Tar] Consider adding fuzzing for TarReader[/+] on Oct 23, 2026
  4. removed
    untriaged
    on Oct 29, 2026
  5. added this to the 12.0.0 milestone on Oct 29, 2026
  6. added a commit that references this issue on Oct 29, 2026
    20c87de
  7. added theissue type on Nov 12, 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

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions