summaryrefslogtreecommitdiff
path: root/platform/java/TraceDevice.java
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-15 18:51:15 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-15 19:28:12 +0000
commite31c26d7a0fad2cd935d597d1dabd38f7d8941bc (patch)
treeac0ffcedd9a664e411a2af8d00a166f094ac6eaa /platform/java/TraceDevice.java
parent66c2ddc228960b1c1d365bff3255c9c992acf757 (diff)
downloadmupdf-e31c26d7a0fad2cd935d597d1dabd38f7d8941bc.tar.xz
Tweak fz_try/catch to fix overflow case.
In the current code, when we hit the fz_try(), we check to see if we are about to overflow the exception stack. If we are, we throw. This does NOT throw to the fz_catch following the try, but rather to the enclosing fz_always/fz_catch blocks. This can cause leaks, as it's very hard to code correctly. It would be a far nicer behaviour to have a failure in fz_try() cause us to throw to the immediately following fz_always/fz_catch. This commit achieves that.
Diffstat (limited to 'platform/java/TraceDevice.java')
0 files changed, 0 insertions, 0 deletions