mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacmn: Possible information leak due to uninitialized data
In qdf_trace_hex_dump() API, linebuf array is not initialized where it is used to print in the form of string in qdf_trace_msg() API, this may cause information leak. To address this issue, initialize the linebuf array to zero. Change-Id: If2fe200eb16b28f7fff4413873c1d149716fb1a7 CRs-Fixed: 2232012
This commit is contained in:
parent
2b2ed37d86
commit
dd1d8ba52a
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ void qdf_trace_hex_dump(QDF_MODULE_ID module, QDF_TRACE_LEVEL level,
|
|||
return;
|
||||
|
||||
while (buf_len > 0) {
|
||||
unsigned char linebuf[BUFFER_SIZE];
|
||||
unsigned char linebuf[BUFFER_SIZE] = {0};
|
||||
int linelen = min(buf_len, ROW_SIZE);
|
||||
|
||||
buf_len -= ROW_SIZE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue