* [PATCH] audit: signedness bug in audit_log_execve_info()
@ 2011-12-01 7:18 Xi Wang
0 siblings, 0 replies; only message in thread
From: Xi Wang @ 2011-12-01 7:18 UTC (permalink / raw)
To: Al Viro, Eric Paris; +Cc: linux-kernel
audit_log_single_execve_arg() returns an int. "len" should also be
int for the error handling to work.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
---
kernel/auditsc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 47b7fc1..5b118d8 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1166,8 +1166,8 @@ static void audit_log_execve_info(struct audit_context *context,
struct audit_buffer **ab,
struct audit_aux_data_execve *axi)
{
- int i;
- size_t len, len_sent = 0;
+ int i, len;
+ size_t len_sent = 0;
const char __user *p;
char *buf;
--
1.7.5.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-01 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01 7:18 [PATCH] audit: signedness bug in audit_log_execve_info() Xi Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®