diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-13 10:07:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-13 10:07:10 -0400 |
commit | 119896cd43f420a053c552afe390f6d66224b3b7 (patch) | |
tree | f1a5b043e16a9abda94c1bec9811f4c384e7ef85 /src/common/sandbox.c | |
parent | a522e9492b8c9bad4f33e8cf65d0dc141deda84a (diff) | |
download | tor-119896cd43f420a053c552afe390f6d66224b3b7.tar.gz tor-119896cd43f420a053c552afe390f6d66224b3b7.zip |
Fix some leaks/missed checks in the unit tests
Coverity spotted these.
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r-- | src/common/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 6b78748834..5775289882 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -1326,7 +1326,7 @@ sigsys_debugging(int nr, siginfo_t *info, void *void_context) if (!ctx) return; - syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; + syscall = (int) ctx->uc_mcontext.gregs[REG_SYSCALL]; format_dec_number_sigsafe(syscall, number, sizeof(number)); tor_log_err_sigsafe("(Sandbox) Caught a bad syscall attempt (syscall ", |