mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-03-22 21:21:26 +00:00
libsysprof-ui: check for valid frame type before incrementing
This commit is contained in:
@ -725,6 +725,7 @@ sysprof_display_scan_worker (GTask *task,
|
||||
|
||||
while (sysprof_capture_reader_peek_frame (reader, &frame))
|
||||
{
|
||||
if (frame.type < G_N_ELEMENTS (st.frame_count))
|
||||
st.frame_count[frame.type]++;
|
||||
|
||||
if (frame.type == SYSPROF_CAPTURE_FRAME_METADATA)
|
||||
|
||||
Reference in New Issue
Block a user