summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-12-12 18:58:04 +0000
committerRobin Watts <robin.watts@artifex.com>2012-12-12 19:25:34 +0000
commit854465a9cf1e171e8f7c94ddf809e56facf4c63e (patch)
tree2561f5829d36d4f7dc6f2c6eb67113b6ab4d50ae /fitz
parent0a17e9b76db0ea9f488af92ef270f90e680b62e9 (diff)
downloadmupdf-854465a9cf1e171e8f7c94ddf809e56facf4c63e.tar.xz
Fix fz_try/fz_catch in overflow case.
Thanks to zeniko for pointing out that the recent changes to the fz_try/fz_catch macros to allow for throws in the fz_always block had broken the exception stack overflow case. Thanks also for the example file (nesting stack overflow.pdf), which has now been added to the regression suite.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c
index 869bf95e..0167611a 100644
--- a/fitz/base_error.c
+++ b/fitz/base_error.c
@@ -96,7 +96,7 @@ int fz_push_try(fz_error_context *ex)
* direct to the always/catch clauses. */
assert(ex->top == nelem(ex->stack)-1);
strcpy(ex->message, "exception stack overflow!\n");
- ex->stack[ex->top].code = 1;
+ ex->stack[ex->top].code = 2;
return 0;
}