mirror of https://github.com/thesofproject/sof.git
2e07bb9d89
free() system call frees the memory space pointed to by ptr, which must have been returned by previous call to malloc(), calloc() or realloc(). Now, when incrementing the array pointer, we may have exceeded the actual allocated size. If we do pointer arithmetic and subtract size from the array pointer, we may not point to the actual location returned by malloc(). This patch makes sure that when we do pointer arithmetic on array, the array's value at the end would be same as the one returned by malloc. Signed-off-by: Mohana Datta Yelugoti <ymdatta.work@gmail.com> |
||
---|---|---|
.. | ||
include/tplg_parser | ||
CMakeLists.txt | ||
tplg_parser.c |