We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! I decided to test System.Private.Xml module via fuzzing test. After some time I found test case which fails Debug.Assert(maxCharsCount >= charsCount)
Download latest .NET v6.0.36 and build it in Debug mode (enable asserts), make reference in test project. Test's project code:
using SharpFuzz; using System.Xml; Fuzzer.Run(stream => { try { using (var xml = XmlReader.Create(stream)) { while (xml.Read()) { } } } catch (XmlException) { } } );
corpus_file_for_xml_crash.txt
In result, value of maxCharsCount is 80 and charsCount is 81 - that produce a crash
maxCharsCount
80
charsCount
81
No any crash, as usual
Debug.Assert(maxCharsCount >= charsCount) is failed because 80 >= 81 is false
Debug.Assert(maxCharsCount >= charsCount)
80 >= 81
No response
.NET v6.0.36 from github, Debug build (enable asserts), Linux Ubuntu x64
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-xml See info in area-owners.md if you want to be subscribed.
Sorry, something went wrong.
No branches or pull requests
Description
Hello! I decided to test System.Private.Xml module via fuzzing test.
After some time I found test case which fails Debug.Assert(maxCharsCount >= charsCount)
Reproduction Steps
Download latest .NET v6.0.36 and build it in Debug mode (enable asserts), make reference in test project.
Test's project code:
corpus_file_for_xml_crash.txt
In result, value of
maxCharsCount
is80
andcharsCount
is81
- that produce a crashExpected behavior
No any crash, as usual
Actual behavior
Debug.Assert(maxCharsCount >= charsCount)
is failed because80 >= 81
is falseRegression?
No response
Known Workarounds
No response
Configuration
.NET v6.0.36 from github, Debug build (enable asserts), Linux Ubuntu x64
Other information
No response
The text was updated successfully, but these errors were encountered: