Xi Wang
5afb8a3f96
audit: fix signedness bug in audit_log_execve_info()
...
In the loop, a size_t "len" is used to hold the return value of
audit_log_single_execve_arg(), which returns -1 on error. In that
case the error handling (len <= 0) will be bypassed since "len" is
unsigned, and the loop continues with (p += len) being wrapped.
Change the type of "len" to signed int to fix the error handling.
size_t len;
...
for (...) {
len = audit_log_single_execve_arg(...);
if (len <= 0)
break;
p += len;
}
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
2012-01-17 16:17:03 -05:00
..
2011-12-11 10:31:52 -08:00
2012-01-09 12:59:24 -08:00
2011-07-26 16:49:45 -07:00
2012-01-08 13:21:22 -08:00
2012-01-10 16:30:42 -08:00
2012-01-09 12:59:24 -08:00
2012-01-08 13:21:22 -08:00
2012-01-08 12:19:57 -08:00
2012-01-08 12:19:57 -08:00
2011-10-31 09:20:12 -04:00
2011-07-20 14:10:11 -07:00
2012-01-17 16:16:54 -05:00
2012-01-17 16:16:57 -05:00
2012-01-17 16:17:01 -05:00
2012-01-17 16:17:03 -05:00
2011-10-31 09:20:12 -04:00
2012-01-09 12:59:24 -08:00
2012-01-09 12:59:24 -08:00
2011-10-31 19:30:05 -04:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2012-01-08 13:10:57 -08:00
2012-01-09 12:59:24 -08:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-07-14 12:59:14 +03:00
2011-10-31 09:20:12 -04:00
2012-01-17 16:16:58 -05:00
2012-01-17 16:16:59 -05:00
2011-11-23 09:28:17 -08:00
2011-12-31 11:48:28 -08:00
2011-10-31 09:20:12 -04:00
2011-11-28 08:43:52 -08:00
2012-01-03 16:14:32 -08:00
2011-10-31 09:20:12 -04:00
2011-12-15 14:56:19 +01:00
2011-12-27 11:22:24 +02:00
2011-12-08 23:22:29 +01:00
2011-10-31 09:20:12 -04:00
2011-12-25 23:42:20 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:13 -04:00
2011-11-23 09:28:17 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-01-06 08:02:58 -08:00
2011-11-17 12:20:22 +01:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-12-07 23:32:10 +01:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:12 -04:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2012-01-06 08:01:59 -08:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-10-31 09:20:11 -04:00
2011-12-11 10:31:42 -08:00
2011-12-11 10:31:30 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:32:22 -08:00
2011-12-11 10:32:21 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:31:24 -08:00
2011-12-11 10:32:22 -08:00
2011-12-11 10:32:09 -08:00
2012-01-03 22:54:56 -05:00
2011-12-13 07:43:08 -08:00
2011-10-31 09:20:12 -04:00
2011-12-06 08:16:49 +01:00
2011-12-14 14:54:22 -08:00
2011-12-11 10:33:18 -08:00
2011-10-31 09:20:12 -04:00
2012-01-17 16:16:55 -05:00
2011-10-31 09:20:12 -04:00
2012-01-10 16:30:54 -08:00
2011-10-31 09:20:12 -04:00
2011-12-11 10:31:38 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2011-12-15 14:56:19 +01:00
2011-12-20 10:25:04 -08:00
2011-08-12 16:21:35 -05:00
2011-12-05 11:37:47 +01:00
2011-09-19 17:04:37 -07:00
2011-10-31 09:20:12 -04:00
2012-01-06 07:53:34 -08:00
2011-08-10 20:38:14 -04:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-12-21 10:07:39 +01:00
2011-10-31 17:30:53 -07:00
2012-01-10 16:30:54 -08:00