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

aws/signer/v4: Fix out of bounds panic in stripExcessSpaces #1412

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Jul 21, 2017

Fixes the out of bands panic in stripExcessSpaces caused by an incorrect
calculation of the stripToIdx value. Simplified to code also.

Fix #1411

@jasdel jasdel self-assigned this Jul 21, 2017
@jasdel jasdel requested a review from xibz July 21, 2017 05:52
Copy link
Contributor

@xibz xibz left a comment

Choose a reason for hiding this comment

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

🚢

@jasdel jasdel force-pushed the fix/v4SignerPanic branch from 6802c15 to b377306 Compare July 21, 2017 17:20
Fixes the out of bands panic in stripExcessSpaces caused by an incorrect
calculation of the stripToIdx value. Simplified to code also.

Updates stripExcessSpaces to trim the string slice inline instead of
creating a new slice.

Fix aws#1411
@jasdel jasdel force-pushed the fix/v4SignerPanic branch from b377306 to 6346249 Compare July 21, 2017 17:36
@jasdel jasdel merged commit 48eb18a into aws:master Jul 21, 2017
jasdel added a commit that referenced this pull request Jul 21, 2017
@jasdel jasdel deleted the fix/v4SignerPanic branch July 24, 2017 05:08
@awstools awstools mentioned this pull request Jul 24, 2017
@diehlaws diehlaws added needs-review This issue or pull request needs review from a core team member. and removed review-needed labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review This issue or pull request needs review from a core team member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants