diff options
author | tenox7 <as@tenoware.com> | 2018-07-17 02:04:41 -0700 |
---|---|---|
committer | tenox7 <as@tenoware.com> | 2018-07-17 02:04:41 -0700 |
commit | 2470ac5868898e5c3867e4231ca773017e0237e2 (patch) | |
tree | 831ec75477ab06e9cf04e5be1f1f3c174e4e0a66 | |
parent | d97c0fabceba573df9292108240c73f62e0de77e (diff) | |
download | wfm-2470ac5868898e5c3867e4231ca773017e0237e2.tar.gz |
crude limit of temp file size
-rw-r--r-- | cgic.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -759,6 +759,11 @@ cgiParseResultType afterNextBoundary(mpStreamPtr mpp, FILE *outf, char **outP, match; just emit the character. */ BAPPEND(d[0]); } +#ifdef CGIMAXTEMPFILESIZE + if(outLen >= CGIMAXTEMPFILESIZE) { + goto outOfMemory; + } +#endif } /* Read trailing newline or -- EOF marker. A literal EOF here would be an error in the input stream. */ |