Skip to content

Commit

Permalink
fix(userspace/sysdig): solve segfault when listing fields
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce authored and therealbobo committed Oct 13, 2023
1 parent 6e70d8a commit bcb417f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userspace/sysdig/utils/supported_fields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ void print_supported_fields(sinsp* inspector, plugin_utils& plugins, const std::
continue;
}

sinsp_filter_check_list sinsp_filterchecks;
std::vector<const filter_check_info*> filterchecks;
if (src == s_syscall_source)
{
std::vector<const filter_check_info*> all_checks;
sinsp_filter_check_list().get_all_fields(all_checks);
sinsp_filterchecks.get_all_fields(all_checks);
for (const auto& check : all_checks)
{
// todo: we need to polish this logic in libsinsp, it's not ok to
Expand Down

0 comments on commit bcb417f

Please sign in to comment.