Index out of range error in expect function #561
Labels
bug
Issues describing a bug in go-toml.
good first issue
Issues that are suitable for first-time contributors.
Milestone
Describe the bug
b = b[1:]Hi there. While I was fuzzing go-tomlv2, I am encountered with index out of range error. My test case is
s=[
and I have assumed that parseValArray function doesn't check if '[' is the last element before performing parser.go:401 :To Reproduce
This is my code (you can also find it in here) :
Expected behavior
parseValArray should control boundaries and special characters before performing.
Versions
Additional context
This bug is found by offical dev.fuzz
The text was updated successfully, but these errors were encountered: