forgejo/modules/markup
zeripath 7ab6c77b41
Remove NULs byte arrays passed to PostProcess (#14587)
PostProcess is supposed to be parsing and handling HTML
fragments, but on fuzzing it appears that there is a weird
issue with NUL elements that could cause a memory address
error in downstream libraries.

The simplest solution is to strip out the weird NULs - they
should not be there in any case and would be stripped out
anyway.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-02-18 02:32:14 +01:00
..
common Don't replace underscores in auto-generated IDs in goldmark (#12805) 2020-09-12 12:00:48 -04:00
csv
external
markdown Markdown task list improvements (#13952) 2020-12-13 09:05:50 +08:00
mdstripper
orgmode fix: media links in org files not liked to media files (#12997) 2020-10-01 11:22:34 -04:00
html.go Remove NULs byte arrays passed to PostProcess (#14587) 2021-02-18 02:32:14 +01: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