Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fuzzing] Utf8JsonWriterFuzzer: Memory stream is not expandable. #111588

Open
MihaZupan opened this issue Jan 19, 2025 · 1 comment · May be fixed by #111596
Open

[Fuzzing] Utf8JsonWriterFuzzer: Memory stream is not expandable. #111588

MihaZupan opened this issue Jan 19, 2025 · 1 comment · May be fixed by #111596
Assignees
Labels
area-System.Text.Json in-pr There is an active PR which will close this issue when it is merged
Milestone

Comments

@MihaZupan
Copy link
Member

System.NotSupportedException: Memory stream is not expandable.
   at System.IO.MemoryStream.set_Capacity(Int32 value)
   at System.IO.MemoryStream.EnsureCapacity(Int32 value)
   at System.IO.MemoryStream.Write(ReadOnlySpan`1 buffer)
   at System.Text.Json.Utf8JsonWriter.Flush()
   at System.Text.Json.Utf8JsonWriter.Dispose()
   at DotnetFuzzing.Fuzzers.Utf8JsonWriterFuzzer.FuzzTarget(ReadOnlySpan`1 bytes) in Utf8JsonWriterFuzzer.cs:line 145

From #111332, cc: @PranavSenthilnathan

Example input (hex): 00000000000000002000 -- so just the fuzzer options, empty input

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 19, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

@PranavSenthilnathan PranavSenthilnathan self-assigned this Jan 19, 2025
@PranavSenthilnathan PranavSenthilnathan added this to the 10.0.0 milestone Jan 19, 2025
@PranavSenthilnathan PranavSenthilnathan removed the untriaged New issue has not been triaged by the area owner label Jan 19, 2025
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Text.Json in-pr There is an active PR which will close this issue when it is merged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants