Re: [PATCH] staging: rtl8723bs: Fix possible buffer overrun

2018-11-27 Thread Yang Xiao
Yes, you are right. I will send a new patch. Young On 2018/11/28 14:51, Dan Carpenter wrote: > The original code is OK. > > On Wed, Nov 28, 2018 at 02:22:31AM +, Yang Xiao wrote: >> From: Young Xiao >> >> In routine rtw_report_sec_ie(), the code could set the length >> of the buffer to 256;

Re: [PATCH] staging: rtl8723bs: Fix possible buffer overrun

2018-11-27 Thread Dan Carpenter
The original code is OK. On Wed, Nov 28, 2018 at 02:22:31AM +, Yang Xiao wrote: > From: Young Xiao > > In routine rtw_report_sec_ie(), the code could set the length > of the buffer to 256; however, that value is one larger than the > corresponding memory allocation. > > See commit 8b7a13c3f