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

Detect cases where maps in symbol table and btf differ #4193

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

Alan-Jowett
Copy link
Member

@Alan-Jowett Alan-Jowett commented Feb 10, 2025

Resolves: #4177

Description

This pull request includes an important change to the libs/api/Verifier.cpp file to improve error handling when parsing BTF map information and populating the cache.

Error handling improvements:

  • libs/api/Verifier.cpp: Added a check to handle cases where a map name is not found in btf_map_name_to_index. If a map name is not found, it now throws a std::runtime_error with a descriptive message.

Testing

CI/CD

Documentation

No.

Installation

No.

Signed-off-by: Alan Jowett <alanjo@microsoft.com>
@saxena-anurag saxena-anurag added this pull request to the merge queue Feb 10, 2025
Merged via the queue into microsoft:main with commit 0b8b2be Feb 10, 2025
91 of 93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fuzzing failure
3 participants