You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was fuzzing this library with go-fuzz, I am encountered with the following panic (index out of range error). I assume it is a simple size check mistake on the 1363th line of listItem function in block.go. It should be for next < len(data) - 1 && data[next] != '\n' rather than for next < len(data) && data[next] != '\n' . I have tried my patch and it works normally.
Go version: go version go1.16.4 linux/amd64
Linux kernel: Linux fuzz1 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
My code (https://play.golang.org/p/lboSQ4YCIeh) :
package main
import "github.com/russross/blackfriday/v2"
func main() {
data := []byte {':','\t','\n','\n','0','\n','0','0'}
blackfriday.Run(data)
}
Hi,
While I was fuzzing this library with go-fuzz, I am encountered with the following panic (index out of range error). I assume it is a simple size check mistake on the 1363th line of listItem function in block.go. It should be
for next < len(data) - 1 && data[next] != '\n'
rather thanfor next < len(data) && data[next] != '\n'
. I have tried my patch and it works normally.Go version:
go version go1.16.4 linux/amd64
Linux kernel:
Linux fuzz1 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
My code (https://play.golang.org/p/lboSQ4YCIeh) :
Error:
The text was updated successfully, but these errors were encountered: