Skip to content

Logging adjustments to extracted function files#63

Open
valbucci wants to merge 42 commits into
br0kej:devfrom
valbucci:funcdata-logs
Open

Logging adjustments to extracted function files#63
valbucci wants to merge 42 commits into
br0kej:devfrom
valbucci:funcdata-logs

Conversation

@valbucci

Copy link
Copy Markdown
Contributor

There is an error log file created when not a single function was processed successfully in bytes, bytes-masked, and func-cfg modes. This error log file would be created even if there were no function to process in the first place (e.g. due to the --min-basic-blocks setting).

This PR replaces that error due to empty function lists with a warning.

Additionally, it fixes one issue where a directory name with a dot in it would result in incorrect error log file naming.
For example: The error log file for a directory called libpng16.so.16.43.0_bytes would become libpng16.so.16.43.error.log, when it should have been libpng16.so.16.43.0_bytes.error.log. This errors is caused by the PathBuf function with_extension. A more robust function called get_error_filepath has been created to fix this issue and provide error log file paths consistently.

valbucci added 30 commits June 11, 2025 10:51
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.

1 participant