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

update cpp-base64 #333

Closed

Conversation

gangatp
Copy link
Collaborator

@gangatp gangatp commented Dec 18, 2023

No description provided.

@gangatp gangatp force-pushed the gangatp/update_cpp_base64 branch from 3c79ed4 to daded40 Compare December 18, 2023 15:32
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (465c0da) 69.74% compared to head (daded40) 69.75%.

Files Patch % Lines
...ntent101/NMR_ModelReaderNode_KeyStoreCEKParams.cpp 94.73% 1 Missing ⚠️
...ent101/NMR_ModelReaderNode_KeyStoreCipherValue.cpp 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #333   +/-   ##
========================================
  Coverage    69.74%   69.75%           
========================================
  Files          271      271           
  Lines        29758    29770   +12     
========================================
+ Hits         20755    20766   +11     
- Misses        9003     9004    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
}
catch (...) {
// base64_decode throws an exception if the input is not valid base64
Copy link
Member

Choose a reason for hiding this comment

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

please add specific error checking for base64_decode instead of this egeneric catch-all block.
As it is in this change, it will hide other exceptions in e.g. pXMLNode->parseXML(pXMLReader);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okay its a runtime crash, should I introduce another Lib3mf error or use one which is already defined ?

Copy link
Member

Choose a reason for hiding this comment

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

maybe you find a fitting one. If not, please create a new onw next to the other secure content ones.

m_sCipherValue = std::vector<nfByte>(result.begin(), result.end());
}
catch (...) {
// base64_decode throws an exception if the input is not valid base64
Copy link
Member

Choose a reason for hiding this comment

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

same here. This exception must be handled

@gangatp
Copy link
Collaborator Author

gangatp commented Jan 9, 2024

duplicate of #336

@gangatp gangatp closed this Jan 9, 2024
@gangatp gangatp deleted the gangatp/update_cpp_base64 branch January 9, 2024 10:26
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