Skip to content

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

@chunklhit

Description

@chunklhit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions