aboutsummaryrefslogtreecommitdiff
path: root/cgic.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgic.c')
-rw-r--r--cgic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgic.c b/cgic.c
index 8b32b11..4cb7521 100644
--- a/cgic.c
+++ b/cgic.c
@@ -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. */