You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `name` field in `obj->externs` points into the BTF data at load time.
However, some functions may invalidate this after loading (e.g.
`bpf_map__set_value_size`), which results in pointers into freed memory and
undefined behavior.
The simplest solution is to simply `strdup` these strings, similar to the
`essent_name`, and free them at the same time.
Signed-off-by: Adin Scannell <[email protected]>
0 commit comments