]> git.karo-electronics.de Git - linux-beck.git/commit
staging: wlags49_h2: strncpy, need checking the memory length
authorChen Gang <gang.chen@asianux.com>
Fri, 26 Apr 2013 10:31:58 +0000 (18:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 May 2013 22:08:16 +0000 (18:08 -0400)
commit205179d0c02cb3f59eda77d3e6cc895b7d4b06bd
tree8a4779f6ed41f90f81f57710ff55e9e39942e5ef
parenta85fd2c8fdefa0d504882f0e110d68e564903fcb
staging: wlags49_h2: strncpy, need checking the memory length

HCF_MAX_NAME_LEN is 32, which may less than ''probe_rsp->rawData[1]'',
so need check the length when copy to ssid.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_main.c