Skip to content

[ZipArchiveFuzzer]: ArgumentOutOfRangeException in ReadEncryptionSaltIfNeeded #131228

Closed

Description

@MihaZupan
System.ArgumentOutOfRangeException: Stream length must be non-negative and less than the maximum array length 2147483591 - origin. (Parameter 'offset')
   at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc)
   at System.IO.Compression.ZipArchiveEntry.GetOffsetOfCompressedData()
   at System.IO.Compression.ZipArchiveEntry.ReadEncryptionSaltIfNeeded()
   at System.IO.Compression.ZipArchive.ReadCentralDirectory()
   at System.IO.Compression.ZipArchive.EnsureCentralDirectoryRead()
   at System.IO.Compression.ZipArchive.get_Entries()
   at DotnetFuzzing.Fuzzers.ZipArchiveFuzzer.TestArchive(Byte[] buffer, Int32 length, Boolean async)
   at DotnetFuzzing.Fuzzers.ZipArchiveFuzzer.FuzzTarget(ReadOnlySpan`1 bytes)
   at DotnetFuzzing.Program.<>c__DisplayClass1_0.<RunFuzzer>b__0(ReadOnlySpan`1 bytes)
   at SharpFuzz.Fuzzer.LibFuzzer.Run(ReadOnlySpanAction action, Boolean ignoreExceptions)

Input: crash-1b521a024f3d128660a7dc2d3fe9423b19c4952c.txt

Activity

  1. added
    untriaged
    on Jul 22, 2026
  2. dotnet-policy-service commented on Jul 22, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @karelz, @dotnet/area-system-io-compression
    See info in area-owners.md if you want to be subscribed.

  3. removed
    untriaged
    on Jul 23, 2026
  4. added this to the 11.0.0 milestone on Jul 23, 2026
  5. added a commit that references this issue on Jul 23, 2026
    03fc461
  6. added a commit that references this issue on Jul 26, 2026
    d8a3d0c
  7. locked and limited conversation to collaborators on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions