Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use after free ebpf_object_t code #2311

Merged
merged 8 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix code analysis failure
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed Apr 12, 2023
commit 925d719da10d541462d0eb5ed97e4a3dcfeef0aa
2 changes: 1 addition & 1 deletion libs/platform/ebpf_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ ebpf_object_get_next_id(ebpf_id_t start_id, ebpf_object_type_t object_type, _Out

void
ebpf_object_reference_next_object(
_In_ const ebpf_core_object_t* previous_object,
_In_opt_ const ebpf_core_object_t* previous_object,
ebpf_object_type_t type,
_Outptr_result_maybenull_ ebpf_core_object_t** next_object)
{
Expand Down
2 changes: 1 addition & 1 deletion libs/platform/ebpf_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ extern "C"
*/
void
ebpf_object_reference_next_object(
_In_ const ebpf_core_object_t* previous_object,
_In_opt_ const ebpf_core_object_t* previous_object,
ebpf_object_type_t type,
_Outptr_result_maybenull_ ebpf_core_object_t** next_object);

Expand Down