mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
libsysprof: check for enough symbols to dereference
This commit is contained in:
@ -222,7 +222,7 @@ _sysprof_kernel_symbols_lookup (const SysprofKernelSymbols *self,
|
|||||||
|
|
||||||
g_assert (self != NULL);
|
g_assert (self != NULL);
|
||||||
|
|
||||||
if (self->len == 0)
|
if (self->len < 2)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Short circuit if this is out of range */
|
/* Short circuit if this is out of range */
|
||||||
|
|||||||
Reference in New Issue
Block a user