Johannes Berg
c6b40d16d1
fix sscanf %n match at end of input string
...
I was playing with some code that sometimes got a string where a %n
match should have been done where the input string ended, for example
like this:
sscanf("abc123", "abc%d%n", &a, &n); /* doesn't work */
sscanf("abc123a", "abc%d%n", &a, &n); /* works */
However, the scanf function in the kernel doesn't convert the %n in that
case because it has already matched the complete input after %d and just
completely stops matching then. This patch fixes that.
[akpm@linux-foundation.org: cleanups]
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:05 -07:00
..
2006-10-03 23:01:26 +02:00
2006-06-22 15:05:58 -07:00
2007-05-07 12:13:04 -07:00
2005-10-18 08:26:15 -07:00
2006-09-22 17:48:56 -07:00
2007-03-01 14:53:37 -08:00
2006-12-10 10:07:52 -08:00
2006-12-08 08:28:39 -08:00
2007-02-11 10:51:34 -08:00
2007-02-11 10:51:32 -08:00
2007-05-07 12:12:51 -07:00
2006-06-25 10:01:20 -07:00
2006-12-08 08:28:39 -08:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:01:20 -07:00
2005-04-16 15:20:36 -07:00
2006-07-03 15:27:01 -07:00
2006-01-08 20:13:48 -08:00
2007-04-28 14:15:58 -04:00
2007-04-25 22:28:53 -07:00
2005-04-16 15:20:36 -07:00
2006-06-30 19:25:36 +02:00
2007-05-08 11:14:58 -07:00
2006-03-26 08:57:11 -08:00
2005-04-16 15:20:36 -07:00
2007-02-20 17:10:15 -08:00
2005-04-16 15:20:36 -07:00
2006-09-26 10:52:38 +02:00
2007-02-11 10:51:32 -08:00
2007-05-02 19:27:15 +02:00
2006-02-03 08:32:08 -08:00
2006-06-20 20:24:58 -07:00
2007-05-04 20:44:23 -07:00
2006-12-13 09:05:52 -08:00
2006-10-06 08:53:40 -07:00
2007-05-07 12:12:51 -07:00
2007-05-08 11:15:00 -07:00
2006-07-03 15:27:04 -07:00
2006-09-25 21:08:40 -07:00
2007-04-27 10:57:31 -07:00
2007-05-02 18:57:59 -07:00
2007-04-27 10:57:29 -07:00
2006-06-25 10:01:09 -07:00
2006-12-07 08:39:35 -08: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
2006-12-07 08:39:43 -08:00
2007-04-25 22:23:33 -07:00
2007-05-03 03:10:39 -07:00
2006-06-23 07:43:06 -07:00
2006-06-27 17:32:46 -07:00
2005-04-16 15:20:36 -07:00
2006-12-07 08:39:39 -08:00
2006-12-04 02:00:22 -05:00
2006-09-30 20:26:56 +02:00
2006-12-13 09:05:49 -08:00
2006-10-11 01:45:14 -04:00
2006-10-11 01:45:14 -04:00
2006-06-30 19:25:36 +02:00
2007-02-11 10:51:32 -08:00
2005-10-30 17:37:32 -08:00
2007-02-11 10:51:32 -08:00
2006-12-07 02:14:01 +01:00
2007-04-26 01:54:39 -07:00
2007-05-08 11:14:59 -07:00
2007-02-17 19:07:33 +01:00
2006-08-22 14:33:58 -07:00
2006-09-29 09:18:23 -07:00
2006-06-30 19:25:36 +02:00
2007-05-08 11:15:05 -07:00