Tree
- Tree:
910bdbc26e5b8d2d0bd9fecaa7871c479b50ea3f
- Date:
- Message:
- fix an out-of-bound access in start_cgi Long time ago, client->req was a static buffer so the memcpy was safe. However, it's been since moved to a dynamically allocated string, so it's very often smaller than sizeof(req.buf) (1024), hence the out of bound access which results in a SIGSEGV very often on OpenBSD thanks to Otto' malloc. The situation with the iri parser, client->req and how the request is forwarded to the other process needs to be improved: this is just a fix to address the issue quickly, a better one would be to restructure the iri parser APIs and rethink how the info is forwarded to the ex process.
Dockerfile | commits | blame |
README | commits | blame |
gencert* | commits | blame |
gmid* | commits | blame |
gmid.service | commits | blame |
gmid.sysusers | commits | blame |
renew-certs* | commits | blame |
vim/ |
README
This directory is for additional contributed files which may be useful. Dockerfile Sample Dockerfile to build alpine-based gmid images. gencert Simple shell script to generate self-signed certificates. gmid Sample rc(8) script for OpenBSD, to be placed in /etc/rc.d. gmid.service Simple systemd service file. gmid.sysusers Sample systemd-sysusers' config file. renew-certs Flexible script meant to be run in a cronjob to watch for cert expiration. It can optionally regen the (self-signed) certificate in place and restart the server too. vim Syntax highlighting of gmid configuration for vim, to be placed into ~/.vim/ or /usr/share/vim/vimfiles/. To enable Syntastic checker, put this line in your vimrc: let g:syntastic_gmid_checkers = ['gmid']