mirror of
https://github.com/bdnugget/kcgi.git
synced 2026-11-07 21:47:27 +00:00
Now, khttp_parse() will fork and read from stdin in a child process (which will be sandboxed). The parent process reads `safe' input from the child. While here, make sure that khttp_parse() doesn't exit() on any memory allocation failures--instead, return an error code and let the caller worry about it.
9 lines
97 B
C
9 lines
97 B
C
#include <stdlib.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
char *a = reallocarray(NULL, 0, 0);
|
|
return(NULL == a);
|
|
}
|