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:
Dundi Raviteja 2018-05-15 14:16:21 +05:30 • committed by nshrivas
commit dd1d8ba52a

View file

@ -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;