1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-05 22:08:14 +00:00
Files
gitea/modules/markup/html.go
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

30 KiB