libsysprof-analyze: ignore zero length data

This commit is contained in:
Christian Hergert
2023-05-05 16:35:53 -07:00
parent e6ff4e838c
commit f5a97fa945

View File

@ -421,7 +421,8 @@ sysprof_document_lookup_file (GTask *task,
const guint8 *data = sysprof_document_file_chunk_get_data (file_chunk, NULL);
guint size = sysprof_document_file_chunk_get_size (file_chunk);
g_byte_array_append (bytes, data, size);
if (size > 0)
g_byte_array_append (bytes, data, size);
was_found = TRUE;