Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Harden the request path, scan and error recovery
-rw-r--r--MANUAL.txt41
-rw-r--r--custom/cgitrc12
-rw-r--r--source/cache.c71
-rw-r--r--source/cache.h18
-rw-r--r--source/cgit.c177
-rw-r--r--source/cgit.h17
-rw-r--r--source/cgit.mk28
-rw-r--r--source/cmd.c2
-rw-r--r--source/cmd.h4
-rw-r--r--source/config.c2
-rw-r--r--source/filter.c56
-rw-r--r--source/filter.h10
-rw-r--r--source/html.c32
-rw-r--r--source/html.h12
-rw-r--r--source/parsing.c16
-rw-r--r--source/parsing.h6
-rw-r--r--source/scan-tree.c117
-rw-r--r--source/shared.c105
-rw-r--r--source/shared.h26
-rwxr-xr-xtests/t0205-config.sh6
-rwxr-xr-xtests/t0301-security.sh31
21 files changed, 565 insertions, 224 deletions