Geert Uytterhoeven
e17ce2ec38
sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()
...
commit 66081a7251 upstream.
The warning check for duplicate sysfs entries can cause a buffer overflow
when printing the warning, as strcat() doesn't check buffer sizes.
Use strlcat() instead.
Since strlcat() doesn't return a pointer to the passed buffer, unlike
strcat(), I had to convert the nested concatenation in sysfs_add_one() to
an admittedly more obscure comma operator construct, to avoid emitting code
for the concatenation if CONFIG_BUG is disabled.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-10-31 09:51:35 -07:00
..
2011-10-03 11:40:22 -07:00
2011-05-28 01:02:53 -04:00
2012-03-23 11:20:51 -07:00
2012-10-21 09:17:10 -07:00
2011-08-29 13:29:06 -07:00
2011-05-28 01:02:50 -04:00
2012-08-09 08:27:50 -07:00
2012-10-21 09:17:10 -07:00
2012-08-01 12:26:53 -07:00
2011-06-20 10:44:19 -04:00
2011-05-28 01:02:54 -04:00
2011-07-17 23:22:02 -04:00
2011-05-19 16:55:28 +09:30
2011-05-26 13:19:00 -07:00
2012-10-02 09:47:23 -07:00
2011-07-17 23:20:29 -04:00
2011-05-26 07:26:56 -04:00
2012-09-14 10:00:50 -07:00
2012-10-13 05:28:10 +09:00
2011-05-31 19:42:24 +09:00
2011-07-21 10:59:16 -07:00
2012-09-14 10:00:50 -07:00
2012-10-21 09:17:10 -07:00
2011-12-21 12:57:41 -08:00
2012-06-22 11:34:14 -07:00
2011-05-28 01:02:52 -04:00
2011-05-28 01:02:54 -04:00
2011-11-11 09:35:59 -08:00
2012-08-01 12:27:18 -07:00
2012-10-21 09:17:10 -07:00
2012-10-21 09:17:12 -07:00
2012-04-27 09:51:07 -07:00
2012-05-21 09:40:03 -07:00
2011-06-20 17:53:24 -05:00
2012-10-28 10:02:11 -07:00
2011-06-20 10:44:26 -04:00
2011-05-28 01:02:54 -04:00
2011-05-28 01:02:53 -04:00
2012-10-02 09:47:38 -07:00
2012-08-09 08:27:50 -07:00
2012-08-15 12:04:10 -07:00
2012-01-25 17:24:49 -08:00
2012-04-27 09:51:18 -07:00
2011-06-24 08:34:22 -07:00
2012-03-19 08:57:58 -07:00
2012-04-02 09:27:18 -07:00
2011-05-16 11:05:00 -07:00
2011-11-11 09:36:22 -08:00
2012-07-16 08:47:52 -07:00
2012-10-21 09:17:10 -07:00
2011-06-27 18:00:12 -07:00
2012-10-02 09:47:54 -07:00
2012-10-31 09:51:35 -07:00
2011-05-28 01:02:50 -04:00
2012-08-01 12:26:54 -07:00
2012-10-21 09:17:12 -07:00
2011-07-17 23:21:35 -04:00
2012-10-21 09:17:10 -07:00
2012-06-01 15:12:53 +08:00
2011-05-28 12:02:09 -04:00
2011-06-20 10:44:00 -04:00
2011-07-06 12:15:16 -07:00
2012-10-07 08:27:25 -07:00
2011-05-28 14:44:46 +02:00
2012-06-01 15:12:52 +08:00
2012-09-14 10:00:39 -07:00
2012-10-31 09:51:34 -07:00
2012-09-14 10:00:37 -07:00
2012-10-07 08:27:23 -07:00
2011-05-31 16:33:35 +02:00
2011-05-25 08:39:26 -07:00
2012-04-27 09:51:09 -07:00
2011-10-16 14:14:54 -07:00
2012-07-19 08:58:21 -07:00
2011-10-03 11:40:44 -07:00
2011-06-27 18:00:13 -07:00
2011-05-26 09:52:14 -07:00
2011-07-19 22:09:30 -07:00
2012-08-09 08:27:35 -07:00
2011-05-25 08:39:26 -07:00
2011-05-26 10:01:43 -06:00
2012-03-19 08:57:44 -07:00
2012-06-10 00:33:01 +09:00
2012-09-14 10:00:37 -07:00
2012-05-07 08:56:36 -07:00
2011-12-21 12:57:36 -08:00
2012-02-29 16:34:35 -08:00
2012-04-27 09:51:18 -07:00
2012-10-02 09:47:23 -07:00
2011-11-11 09:37:08 -08:00
2012-05-21 09:40:05 -07:00
2011-06-14 11:46:14 +02:00
2011-05-28 12:02:09 -04:00