russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.43k stars 599 forks source link

index out of range panic in v2.listItem (line 1369 in block.go file) #696

Open chunklhit opened 2 years ago

chunklhit commented 2 years ago

The below program panics:

`package main

import ( "github.com/russross/blackfriday/v2" )

func main() { input := ": \n\n0\n00" blackfriday.Run([]byte(input)) }`

The Program out: image

The bug was found with the help of go-fuzz.