diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-20 23:20:10 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-20 23:44:39 +0800 |
commit | a638d20e8d34f92369ec3d46739761c9b07eae3c (patch) | |
tree | ee31c9efd02ed6d90cd8c9f64d30d0b1f338ff7a /platform/java/src/com/artifex | |
parent | fe2c7e0e09f9ae9b084e2f4fe7286a99658c09c1 (diff) | |
download | mupdf-a638d20e8d34f92369ec3d46739761c9b07eae3c.tar.xz |
JNI: fz_var()/return to make behavior correct upon fz_throw().
Previously in many instances the code was allowed to continue
after running jni_rethrow() or jni_throw(). When doing so it
used variables whose values may have changed inside fz_try().
Those variables must in that case be declared using fz_var().
Another way of avoiding this from happening (and thus having
to use fz_var()) is to return from the function immediately
after jni_rethrow()/jni_throw(). All remaining occurrances
where this is not possible still needs fz_var().
The code is now changed so that it either uses fz_var() or
returns early to avoid using variables that have not been
declared using fz_var().
Diffstat (limited to 'platform/java/src/com/artifex')
0 files changed, 0 insertions, 0 deletions