mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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);
|
||||
|
||||
if (self->len == 0)
|
||||
if (self->len < 2)
|
||||
return NULL;
|
||||
|
||||
/* Short circuit if this is out of range */
|
||||
|
||||
Reference in New Issue
Block a user