tls_wrap: slice buffer properly in ClearOut#4184
tls_wrap: slice buffer properly in ClearOut#4184indutny wants to merge 2 commits intonodejs:masterfrom
ClearOut#4184Conversation
Fix incorrect slicing of cleartext buffer in `TLSWrap::ClearOut`. Fix: nodejs#4161
|
cc @nodejs/crypto |
|
CI is green |
test/parallel/test-tls-inception.js
Outdated
There was a problem hiding this comment.
Is it safe to assume the entire body will always come in one data event?
|
LGTM |
|
Landed in c0cb80e, thank you! |
There was a problem hiding this comment.
Shouldn't it be on?
Also, is gotHello really necessary?
There was a problem hiding this comment.
Arghh... It should be on indeed. @santigimeno would it be interesting to you to submit a PR with a fix for this?
There was a problem hiding this comment.
gotHello seems to be necessary, but could be replaced with common.mustCall in ssl.on('end', ...)
There was a problem hiding this comment.
I said about gotHello because would the test exit if no end event was received?
Yes, I can send a PR.
There was a problem hiding this comment.
Thank you, @santigimeno . Please don't forget to cc me on that PR ;)
Fix incorrect slicing of cleartext buffer in `TLSWrap::ClearOut`. Fix: nodejs#4161 PR-URL: nodejs#4184 Reviewed-By: Brian White <mscdex@mscdex.net>
Fix incorrect slicing of cleartext buffer in
TLSWrap::ClearOut.Fix: #4161