From 119896cd43f420a053c552afe390f6d66224b3b7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 13 Mar 2014 10:07:10 -0400 Subject: Fix some leaks/missed checks in the unit tests Coverity spotted these. --- src/common/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/sandbox.c') 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 ", -- cgit v1.2.3-54-g00ecf