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

analysis: add struct to types when observed #1520

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
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
5 changes: 4 additions & 1 deletion src/fuzz_introspector/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,14 @@ def convert_param_list_to_str_v2(param_list):
pre = ""
med = ""
post = ""
is_struct = False
for param in param_list:
if param == "DW_TAG_pointer_type":
post += "*"
elif param == 'DW_TAG_reference_type':
post += '&'
elif param == 'DW_TAG_structure_type':
continue
is_struct = True
elif param == "DW_TAG_base_type":
continue
elif param == "DW_TAG_typedef":
Expand All @@ -842,6 +843,8 @@ def convert_param_list_to_str_v2(param_list):
pre += "const "
else:
med += param
if is_struct:
med = 'struct ' + med

raw_sig = pre.strip() + " " + med + " " + post
return raw_sig.strip()
Expand Down
Loading