Pragaspathi Thilagaraj 4715adc0f1 qcacmn: Fix zero size malloc when memory debug is disabled
In SLUB disabled builds, the qdf_mem_malloc calls the
qdf_mem_malloc_fl function which doesn't
validate if the size provided is 0 and returns the value
ZERO_SIZE_PTR(((void *)16)) for the pointer. When this pointer
is dereferenced, it causes invalid address dereference.

Validate if the size parameter provided to qdf_mem_malloc is
0 or greater than QDF_MEM_MAX_MALLOC. Return failure if the
validation fails.

Change-Id: I8fc6bc796847e9dd3dfd5186b0386d323560d0cf
CRs-Fixed: 2571505
2019-12-09 05:20:25 -08:00
2017-09-15 21:45:35 +05:30
2017-03-27 08:31:31 -07:00
Опис
Немає опису
Файл readme 226 MiB
Мови
C 98.7%
C++ 0.9%
Makefile 0.3%
Starlark 0.1%