[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200807251056.m6PAuvTW018244@tomsawyer.pc.helsinki.fi>
Date: Fri, 25 Jul 2008 13:32:30 +0300
From: Vesa-Matti Kari <vmkari@...helsinki.fi>
To: viro@...iv.linux.org.uk
Cc: eparis@...hat.com, linux-kernel@...r.kernel.org
Subject: [PATCH] audit: control character detection was off-by-one
0x7f, the DEL character, was not recognized as a control character.
Signed-off-by: Vesa-Matti Kari <vmkari@...helsinki.fi>
---
kernel/audit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/audit.c b/kernel/audit.c
index e092f1c..6d90318 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1366,7 +1366,7 @@ int audit_string_contains_control(const char *string, size_t len)
{
const unsigned char *p;
for (p = string; p < (const unsigned char *)string + len && *p; p++) {
- if (*p == '"' || *p < 0x21 || *p > 0x7f)
+ if (*p == '"' || *p < 0x21 || *p > 0x7e)
return 1;
}
return 0;
--
1.5.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists