Joe Perches
4e310fda91
vsprintf: Change struct printf_spec.precision from s8 to s16
...
Commit ef0658f3de484bf9b173639cd47544584e01efa5 changed precision
from int to s8.
There is existing kernel code that uses a larger precision.
An example from the audit code:
vsnprintf(...,..., " msg='%.1024s'", (char *)data);
which overflows precision and truncates to nothing.
Extending precision size fixes the audit system issue.
Other changes:
Change the size of the struct printf_spec.type from u16 to u8 so
sizeof(struct printf_spec) stays as small as possible.
Reorder the struct members so sizeof(struct printf_spec) remains 64 bits
without alignment holes.
Document the struct members a bit more.
Original-patch-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-14 10:32:35 -07:00
..
2010-01-11 09:34:04 -08:00
2008-04-18 22:17:17 -04:00
2009-09-21 15:14:55 +02:00
2010-03-12 15:52:44 -08:00
2005-10-18 08:26:15 -07:00
2009-12-15 08:53:32 -08:00
2009-07-29 19:10:35 -07:00
2007-05-11 05:38:25 -04:00
2008-07-24 10:47:33 -07:00
2010-03-06 11:26:35 -08:00
2008-06-06 11:29:10 -07:00
2009-11-20 20:13:39 +01:00
2008-12-16 18:40:32 +01:00
2009-01-06 15:59:11 -08:00
2007-07-16 09:05:50 -07:00
2009-11-03 16:06:53 +01:00
2008-07-28 15:05:23 +02:00
2010-03-30 22:02:32 +09:00
2007-07-17 10:23:04 -07:00
2006-06-25 10:01:20 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:01:20 -07:00
2007-05-10 18:24:13 +02:00
2008-07-12 08:22:32 -05:00
2009-12-15 08:53:32 -08:00
2010-02-25 09:40:59 +01:00
2010-03-30 22:02:32 +09:00
2009-06-16 19:47:47 -07:00
2009-12-15 14:04:19 -08:00
2009-09-24 07:21:05 -07:00
2009-09-24 07:21:05 -07:00
2010-01-11 09:34:04 -08:00
2010-01-11 09:34:05 -08:00
2010-03-30 22:02:32 +09:00
2008-06-12 10:47:58 +02:00
2010-01-22 18:00:41 +01:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2009-06-12 21:47:04 +09:30
2009-10-11 11:20:58 -07:00
2009-01-01 10:12:19 +10:30
2008-04-29 08:11:16 -07:00
2009-09-22 07:17:47 -07:00
2009-06-18 13:04:05 -07:00
2005-04-16 15:20:36 -07:00
2010-03-30 22:02:32 +09:00
2005-04-16 15:20:36 -07:00
2009-06-16 19:47:51 -07:00
2009-12-28 10:41:39 +01:00
2010-02-25 10:34:51 +01:00
2010-03-30 22:02:32 +09:00
2006-02-03 08:32:08 -08:00
2006-06-20 20:24:58 -07:00
2008-07-26 12:00:07 -07:00
2009-12-16 07:20:18 -08:00
2007-10-17 08:42:50 -07:00
2006-10-06 08:53:40 -07:00
2009-07-17 09:11:31 +10:00
2010-03-30 22:02:32 +09:00
2010-03-07 09:54:44 -08:00
2010-04-13 00:28:45 -07:00
2008-08-01 08:39:34 -05:00
2009-07-01 22:28:44 +02:00
2009-12-14 23:55:33 +01:00
2009-01-06 10:44:30 -08:00
2010-03-30 22:02:32 +09:00
2010-03-07 17:04:49 -08:00
2010-03-30 22:02:32 +09:00
2010-03-15 12:47:59 +01:00
2008-12-25 11:01:42 +11:00
2008-07-25 10:53:29 -07:00
2010-03-06 11:26:35 -08:00
2010-02-03 17:39:50 +11:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2009-03-13 01:32:36 +01:00
2009-10-01 21:17:49 +02:00
2010-03-15 12:47:59 +01:00
2009-03-26 22:45:23 -07:00
2009-12-15 08:53:33 -08:00
2009-01-06 17:10:04 -08:00
2009-12-14 23:55:33 +01:00
2009-01-06 15:59:11 -08:00
2005-04-16 15:20:36 -07:00
2009-01-06 17:10:04 -08:00
2010-04-09 10:12:03 -07:00
2008-07-30 16:29:19 -07:00
2010-04-07 08:38:04 -07:00
2010-01-11 09:34:05 -08:00
2009-06-16 19:47:56 -07:00
2006-12-13 09:05:49 -08:00
2010-04-07 16:15:05 -07:00
2008-01-30 13:33:00 +01:00
2010-03-30 22:02:32 +09:00
2007-02-11 10:51:32 -08:00
2010-03-06 11:26:27 -08:00
2009-01-30 15:47:34 +01:00
2009-01-08 08:31:14 -08:00
2009-12-14 23:55:33 +01:00
2008-10-23 11:42:20 -05:00
2010-03-06 11:26:35 -08:00
2010-03-30 22:02:32 +09:00
2008-07-26 12:00:10 -07:00
2010-03-30 22:02:32 +09:00
2008-07-08 02:37:54 -07:00
2008-07-08 02:38:27 -07:00
2008-07-08 02:38:09 -07:00
2010-04-14 10:32:35 -07:00