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] [adamsitnik] [NRBF] Fix bugs discovered by the fuzzer #635

Open
MihuBot opened this issue Sep 6, 2024 · 0 comments
Open

[Fuzzing] [adamsitnik] [NRBF] Fix bugs discovered by the fuzzer #635

MihuBot opened this issue Sep 6, 2024 · 0 comments

Comments

@MihuBot
Copy link
Owner

MihuBot commented Sep 6, 2024

Job completed in 1 hour 4 minutes.
dotnet/runtime#107368

// NrbfDecoderFuzzer
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'primitiveType')
Actual value was Null.
   at System.Formats.Nrbf.Utils.TypeNameHelpers.GetPrimitiveTypeName(PrimitiveType primitiveType)
   at System.Formats.Nrbf.Utils.TypeNameHelpers.GetPrimitiveSZArrayTypeName(PrimitiveType primitiveType)
   at System.Formats.Nrbf.MemberTypeInfo.GetArrayTypeName(ArrayInfo arrayInfo)
   at System.Formats.Nrbf.RectangularArrayRecord.get_TypeName()
   at DotnetFuzzing.Fuzzers.NrbfDecoderFuzzer.Test(Span`1 testSpan, MemoryStream stream) in D:\runner-dir\runtime\src\libraries\Fuzzing\DotnetFuzzing\Fuzzers\NrbfDecoderFuzzer.cs:line 54
   at DotnetFuzzing.Fuzzers.NrbfDecoderFuzzer.FuzzTarget(ReadOnlySpan`1 bytes) in D:\runner-dir\runtime\src\libraries\Fuzzing\DotnetFuzzing\Fuzzers\NrbfDecoderFuzzer.cs:line 26
   at SharpFuzz.Fuzzer.LibFuzzer.Run(ReadOnlySpanAction action, Boolean ignoreExceptions)
==6440== ERROR: libFuzzer: deadly signal
NOTE: libFuzzer has rudimentary signal handlers.
      Combine libFuzzer with AddressSanitizer or similar for better crash reports.
SUMMARY: libFuzzer: deadly signal
MS: 1 CrossOver-; base unit: 7967cc6c6d0c11820eef8f9d8bd26cb641d25cd9
0x0,0x1,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7,0x1,0x0,0x0,0x0,0x2,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x10,0x0,0x0,0x0,0x0,0x0,0x7,0x1,0x17,0xf4,0x0,0x2,0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x10,0x0,0x0,0x7,0x11,0xb,
\000\001\000\000\000\377\377\377\377\001\000\000\000\000\000\000\000\007\001\000\000\000\002\010\000\000\000\000\000\000\000\000\001\000\020\000\000\000\000\000\007\001\027\364\000\002\010\000\000\000\000\000\000\000\001\000\020\000\000\007\021\013
artifact_prefix='./'; Test unit written to NrbfDecoderFuzzer-artifact-3
Base64: AAEAAAD/////AQAAAAAAAAAHAQAAAAIIAAAAAAAAAAABABAAAAAAAAcBF/QAAggAAAAAAAAAAQAQAAAHEQs=

Artifacts:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant