russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.41k stars 596 forks source link

index out of range panic in v2.scanLinkRef (line 659 in markdown.go file) #695

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 := "[0000000]:<" blackfriday.Run([]byte(input)) }`

The Program out:

image

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