1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-12-04 14:46:42 -05:00
gmnisrv/src
William Casarin e77f354ca3 serve: fix gcc-9.3.0 error in serve_autoindex
gcc 9.3.0 catches an off-by-one error with strncat in serve_autoindex
where it might not write a 0 byte:

  In function ‘strncat’,
      inlined from ‘serve_autoindex’ at src/serve.c:60:3:
  /nix/store/...glibc-2.31-dev/include/bits/string_fortified.h:136:10:
  error: ‘__builtin___strncat_chk’ specified bound 4097 equals destination size
  [-Werror=stringop-overflow=]

Signed-off-by: William Casarin <jb55@jb55.com>
2020-10-15 12:06:19 -04:00
..
config.c Remove [:tls] email directive 2020-09-26 16:41:11 -04:00
escape.c Vendor in some support code 2020-09-23 10:40:14 -04:00
ini.c Initial config parser 2020-09-23 11:24:23 -04:00
log.c Always log server messages to stderr 2020-09-26 13:40:20 -04:00
main.c Free up resources throughout 2020-09-26 16:10:10 -04:00
mime.c mime: add .xml -> text/xml 2020-09-27 00:46:38 -04:00
serve.c serve: fix gcc-9.3.0 error in serve_autoindex 2020-10-15 12:06:19 -04:00
server.c Bubble up client disconnect state 2020-09-27 13:54:19 -04:00
tls.c Free up resources throughout 2020-09-26 16:10:10 -04:00
url.c Vendor in some support code 2020-09-23 10:40:14 -04:00
util.c Implement TLS store 2020-09-24 17:51:29 -04:00