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.
README.md
# gmid website/capsule These are the sources for the gmid website and Gemini capsule. Unlike gmid itself, to build the site you'll need OpenBSD' make (on linux `bmake` *may* work.)