Skip to contentSkip to conversation

audit: signedness bug in audit_log_execve_info()

PATCH Superseded Xi Wang 1 participant 1 message Dec 1, 2011 Audit

lore
Share & tools
lore

Xi Wang

author
#0 lore raw

PATCH 1/1 audit: signedness bug in audit_log_execve_info()

audit_log_single_execve_arg() returns an int. "len" should also be int for the error handling to work.

---
 kernel/auditsc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/auditsc.c +2 -2
index 47b7fc1..5b118d8 100644
@@ -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;
 
Signature · 1 line
1.7.5.4