Chen Gang
708d019fd1
drivers/net/wireless: need consider the not '\0' terminated string.
...
in ray_cs.c:
the a_current_ess_id is "Null terminated unless ESSID_SIZE long"
so we need buffer it with '\0' firstly, before using strlen or %s.
additional information:
in drivers/net/wireless/rayctl.h:
"NULL terminated unless 32 long" is a comment at line 616, 664
ESSID_SIZE is 32, at line 190
in include/uapi/linux/wireless.h:
IW_ESSID_MAX_SIZE is also 32
in drivers/net/wireless/ray_cs.c:
use strncpy for it, without '\0' terminated, at line 639
use memcpy for it, assume not '\0' terminated in line 1092..1097
buffer it with '\0' firstly, before using %s, in line 2576, 2598..2600
Signed-off-by: Chen Gang <gang.chen@asianux.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-01-22 16:01:29 -05:00
..
2012-12-14 10:03:23 -08:00
2012-12-17 10:04:27 -08:00
2012-12-15 12:37:18 -08:00
2012-12-19 14:53:53 -08:00
2012-12-20 18:50:02 -05:00
2013-01-14 15:10:41 -05:00
2012-12-20 14:00:13 -08:00
2012-12-12 18:07:07 -08:00
2012-12-16 15:23:37 -08:00
2012-12-20 08:37:05 -08:00
2012-12-19 12:47:41 -08:00
2012-12-14 14:54:26 -08:00
2012-12-11 12:45:35 -08:00
2012-12-12 12:05:15 -08:00
2012-12-18 09:58:09 -08:00
2012-12-07 23:13:36 +01:00
2012-12-17 17:15:13 -08:00
2012-12-14 14:27:45 -08:00
2012-12-13 12:00:02 -08:00
2012-12-20 17:40:19 -08:00
2012-12-19 22:15:14 +00:00
2012-12-19 20:24:25 -08:00
2012-12-13 19:22:22 -08:00
2012-12-19 22:17:02 +01:00
2012-12-18 16:51:10 -08:00
2012-12-16 18:55:20 -08:00
2012-12-21 16:40:26 -08:00
2012-12-19 12:56:42 -08:00
2012-12-20 10:07:25 -08:00
2012-12-11 14:08:47 -08:00
2012-12-14 14:42:53 -08:00
2012-12-14 13:14:07 -05:00
2012-12-15 12:52:42 -08:00
2012-12-18 15:19:06 +10:30
2012-12-18 09:58:09 -08:00
2012-12-21 17:08:06 -08:00
2012-12-16 12:24:09 +01:00
2012-12-18 15:02:12 -08:00
2012-12-20 07:21:54 -08:00
2012-12-21 17:10:29 -08:00
2012-12-16 18:55:20 -08:00
2012-12-20 07:39:03 -08:00
2013-01-22 16:01:29 -05:00
2013-01-13 23:22:09 +01:00
2012-12-19 10:58:53 +00:00
2012-12-13 14:20:19 -08:00
2012-12-12 11:45:16 -08:00
2012-12-18 19:00:25 -08:00
2012-12-17 17:15:14 -08:00
2012-12-11 13:13:55 -08:00
2012-12-19 08:14:08 -08:00
2012-12-12 18:07:07 -08:00
2012-12-19 08:19:07 -08:00
2012-12-11 13:13:55 -08:00
2012-12-13 12:00:02 -08:00
2012-12-13 12:00:02 -08:00
2012-12-18 15:20:36 +10:30
2012-12-20 17:40:20 -08:00
2012-12-13 14:20:19 -08:00
2012-12-21 16:40:26 -08:00
2012-12-19 15:11:41 +00:00
2013-01-11 14:49:58 -05:00
2012-12-17 15:44:47 -08:00
2012-12-15 14:25:10 -08:00
2012-12-13 12:00:02 -08:00
2012-12-16 11:28:10 -08:00
2012-12-12 12:05:15 -08:00
2012-12-17 17:15:13 -08:00
2012-12-07 13:43:51 -07:00
2012-12-15 14:25:10 -08:00
2012-12-18 15:02:11 -08:00
2012-12-18 09:58:09 -08:00
2012-12-20 08:37:05 -08:00
2012-12-16 15:23:37 -08:00
2012-12-19 22:25:10 +01:00
2012-12-16 17:39:14 -08:00