tls_wrap: slice buffer properly in `ClearOut`
authorFedor Indutny <fedor@indutny.com>
Tue, 8 Dec 2015 03:15:43 +0000 (22:15 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:21 +0000 (11:52 -0800)
commit0efc35e6d880d11ae876c73dd3c077e727847353
treef031317efdc88697ed0786969060431829ed457d
parent2e642051cfe3b2b17da66f5d33c8c3f379453d9b
tls_wrap: slice buffer properly in `ClearOut`

Fix incorrect slicing of cleartext buffer in `TLSWrap::ClearOut`.

Fix: https://github.com/nodejs/node/issues/4161
PR-URL: https://github.com/nodejs/node/pull/4184
Reviewed-By: Brian White <mscdex@mscdex.net>
src/tls_wrap.cc
test/parallel/test-tls-inception.js