diff options
-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. */ |