aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-13 10:07:10 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-13 10:07:10 -0400
commit119896cd43f420a053c552afe390f6d66224b3b7 (patch)
treef1a5b043e16a9abda94c1bec9811f4c384e7ef85 /src/common/sandbox.c
parenta522e9492b8c9bad4f33e8cf65d0dc141deda84a (diff)
downloadtor-119896cd43f420a053c552afe390f6d66224b3b7.tar
tor-119896cd43f420a053c552afe390f6d66224b3b7.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 6b7874883..577528988 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 ",