mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: lseek before deserializing
This commit is contained in:
@ -103,7 +103,10 @@ sysprof_capture_symbol_resolver_load (SysprofSymbolResolver *resolver,
|
||||
return;
|
||||
|
||||
if (sysprof_capture_reader_read_file_fd (reader, "__symbols__", fd))
|
||||
sysprof_symbol_map_deserialize (self->map, byte_order, fd);
|
||||
{
|
||||
lseek (fd, 0, SEEK_SET);
|
||||
sysprof_symbol_map_deserialize (self->map, byte_order, fd);
|
||||
}
|
||||
|
||||
close (fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user