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

Store 'raw' md5sum value in note.xrt.uid #69

Merged
merged 5 commits into from
Feb 28, 2025
Merged

Conversation

sonals
Copy link
Member

@sonals sonals commented Feb 27, 2025

Problem solved by the commit

Currently we are generating md5sum, converting it to ASCII hex and then storing the hex string as raw value in note.xrt.uid. Hence the value stored is binary representation of the hex string is not the original md5sum which is wrong.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

The issue has been there from the beginning

How problem was solved, alternative solutions (if any) and why they were rejected

Fixed by updating the md5sum generation and string representation in aiebu::uid_md5 class.

Risks (if any) associated the changes in the commit

None

What has been tested and how, request additional testing if necessary

Build and ctest validated

Documentation impact (if any)

NA

@@ -183,38 +183,38 @@ add_text_data_section(std::vector<writer>& mwriter, std::vector<symbol>& syms)
{
for(auto buffer : mwriter)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a lot of copying, should it be auto&

Copy link
Member Author

@sonals sonals Feb 28, 2025

Choose a reason for hiding this comment

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

We have the copy inefficiency in several places. Will consider cleaning this up in a separate PR.

…ation

Signed-off-by: Sonal Santan <sonal.santan@amd.com>
Signed-off-by: Sonal Santan <sonal.santan@amd.com>
Signed-off-by: Sonal Santan <sonal.santan@amd.com>
Signed-off-by: Sonal Santan <sonal.santan@amd.com>
Signed-off-by: Sonal Santan <sonal.santan@amd.com>
@stsoe stsoe merged commit 7cdb18a into Xilinx:main-ge Feb 28, 2025
3 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.

2 participants