aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenox7 <as@tenoware.com>2018-07-17 02:04:41 -0700
committertenox7 <as@tenoware.com>2018-07-17 02:04:41 -0700
commit2470ac5868898e5c3867e4231ca773017e0237e2 (patch)
tree831ec75477ab06e9cf04e5be1f1f3c174e4e0a66
parentd97c0fabceba573df9292108240c73f62e0de77e (diff)
downloadwfm-2470ac5868898e5c3867e4231ca773017e0237e2.tar.gz
crude limit of temp file size
-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. */