Skip to content

Conversation

@jmklix
Copy link
Member

@jmklix jmklix commented Jul 28, 2022

Issue #, if available:
#1973

Description of changes:

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

else if (checksumAlgorithmName == "md5")
{
httpRequest->SetHeaderValue(Http::CONTENT_MD5_HEADER, HashingUtils::Base64Encode(HashingUtils::CalculateMD5(*(request.GetBody()))));
if (request.GetBody())
Copy link
Contributor

Choose a reason for hiding this comment

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

hi,
first of all, could you please also fix this nullptr deference issue in this file for other hash algorithms?
secondly, did you check how it is going to work by actually calling s3?
I would try setting md5("") (md5 of nothing) value if user tries to set an empty body.

@sbiscigl sbiscigl merged commit 65a54f1 into main Aug 8, 2022
@jmklix jmklix deleted the issue_1973 branch August 8, 2022 18:38
sbiscigl added a commit that referenced this pull request Aug 8, 2022
jmklix added a commit that referenced this pull request Oct 12, 2022
Fix nullptr de-reference when body is null.
jmklix pushed a commit that referenced this pull request Oct 12, 2022
jmklix added a commit that referenced this pull request Oct 12, 2022
Fix nullptr de-reference when body is null.
jmklix pushed a commit that referenced this pull request Oct 12, 2022
jmklix added a commit that referenced this pull request Aug 11, 2023
Fix nullptr de-reference when body is null.
jmklix pushed a commit that referenced this pull request Aug 11, 2023
amit-schreiber-firebolt pushed a commit to firebolt-analytics/aws-sdk-cpp that referenced this pull request May 8, 2025
Fix nullptr de-reference when body is null.
amit-schreiber-firebolt pushed a commit to firebolt-analytics/aws-sdk-cpp that referenced this pull request May 8, 2025
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.

4 participants