sof/tools/tplg_parser
Mohana Datta Yelugoti 2e07bb9d89 tools: testbench: send valid pointer to free system call
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>
2020-08-21 10:50:23 +01:00
..
include/tplg_parser testbench: check array size mismatch while loading topology buffer 2020-08-18 10:36:41 +01:00
CMakeLists.txt Testbench: Build topology parser with debug symbols 2020-03-20 13:29:00 +00:00
tplg_parser.c tools: testbench: send valid pointer to free system call 2020-08-21 10:50:23 +01:00