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

fix: Zero length frames in old version of Node #202

Merged
merged 3 commits into from
Sep 9, 2019

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Aug 28, 2019

resolves #199

In Node.js versions 10.9 and older will fail to decrypt if decipher.update is not called.
nodejs/node#22538 fixes this.

If the content is empty, push an empty buffer.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

resolves aws#199

In Node.js versions 10.9 and older will fail to decrypt if decipher.update is not called.
nodejs/node#22538 fixes this.

If the content is empty, push an empty buffer.
@seebees seebees requested a review from a team August 28, 2019 04:33
@mattsb42-aws
Copy link
Member

mattsb42-aws commented Sep 6, 2019

Do we have a test that makes sure this fixes the problem?

@seebees
Copy link
Contributor Author

seebees commented Sep 6, 2019

I manually tested this. At this time CI does not test this version. I have also added an issue to expand testing across node.js versions #206

Copy link
Member

@mattsb42-aws mattsb42-aws left a comment

Choose a reason for hiding this comment

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

LGTM

@seebees seebees merged commit c50dfa1 into aws:master Sep 9, 2019
@seebees seebees deleted the empty-frame-old-node branch September 9, 2019 19:00
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.

Zero length frames in Node.js v 10.9 and older fail
2 participants