Skip to content

Resolve address sanitizer issues in pkg_editor_test #191

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

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Resolve address sanitizer issues in pkg_editor_test #191

merged 3 commits into from
Oct 31, 2022

Conversation

pcolberg
Copy link
Contributor

@pcolberg pcolberg commented Oct 28, 2022

This is a prerequisite of #118 and #190

The buffer passed to acl_pkg_add_data_section() is read later in
acl_pkg_close_file() which invokes elf_update() to flush dirty
information associated with the ELF file descriptor to disk,
at which point the buffer has already gone out of scope.
…ection()

acl_pkg_read_section() appends a null byte to the section data,
which had not been accounted for in the target buffer sizes.
@pcolberg pcolberg added the bug Something isn't working label Oct 28, 2022
@pcolberg pcolberg added this to the 2023.1 milestone Oct 28, 2022
@pcolberg pcolberg self-assigned this Oct 28, 2022
@pcolberg pcolberg marked this pull request as ready for review October 28, 2022 23:42
@pcolberg pcolberg requested a review from sophimao October 28, 2022 23:43
Copy link
Contributor

@sophimao sophimao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks Peter!

@pcolberg pcolberg merged commit 054d668 into intel:main Oct 31, 2022
@pcolberg pcolberg deleted the pkg_editor_test branch October 31, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants