gitea/modules/markup
zeripath 172229966c
Prevent panic on fuzzer provided string (#14405)
* Prevent panic on fuzzer provided string

The fuzzer has found that providing a <body> tag with an attribute to
PostProcess causes a panic. This PR removes any rendered html or body
tags from the output.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Placate lint

* placate lint again

Signed-off-by: Andrew Thornton <art27@cantab.net>

* minor cleanup

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-01-20 23:10:50 +08:00
..
common
csv
external
markdown Markdown task list improvements (#13952) 2020-12-13 09:05:50 +08:00
mdstripper
orgmode
html.go Prevent panic on fuzzer provided string (#14405) 2021-01-20 23:10:50 +08:00
html_internal_test.go
html_test.go Prevent panic on fuzzer provided string (#14405) 2021-01-20 23:10:50 +08:00
markup.go
markup_test.go
sanitizer.go Markdown task list improvements (#13952) 2020-12-13 09:05:50 +08:00
sanitizer_test.go Markdown task list improvements (#13952) 2020-12-13 09:05:50 +08:00