| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@nodejs/lts |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
This fails when linked against openssl 1.1.0: https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu1804_sharedlibs_openssl110_x64/24809/
15:30:02 not ok 393 parallel/test-crypto-hash-stream-pipe 15:30:02 --- 15:30:02 duration_ms: 0.138 15:30:02 severity: fail 15:30:02 exitcode: 1 15:30:02 stack: |- 15:30:02 internal/crypto/hash.js:33 15:30:02 this._handle = new _Hash(algorithm); 15:30:02 ^ 15:30:02 15:30:02 Error: Digest method not supported 15:30:02 at new Hash (internal/crypto/hash.js:33:18) 15:30:02 at Object.createHash (crypto.js:101:10) 15:30:02 at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/test/parallel/test-crypto-hash-stream-pipe.js:33:18) 15:30:02 at Module._compile (internal/modules/cjs/loader.js:778:30) 15:30:02 at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 15:30:02 at Module.load (internal/modules/cjs/loader.js:653:32) 15:30:02 at tryModuleLoad (internal/modules/cjs/loader.js:593:12) 15:30:02 at Function.Module._load (internal/modules/cjs/loader.js:585:3) 15:30:02 at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) 15:30:02 at startup (internal/bootstrap/node.js:283:19) 15:30:02 ...
Sorry, something went wrong.
There was a problem hiding this comment.
oops, I'll amend that shortly. Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
sorry that shortly turned into 13 days :[. Should be working now. Thanks!
Sorry, something went wrong.
When piping data into an SHA3 hash, EVP_DigestFinal_ex is called in hash._flush, bypassing safeguards in the JavaScript layer. Calling hash.digest causes EVP_DigestFinal_ex to be called again, resulting in a segmentation fault in the SHA3 implementation of OpenSSL. A relatively easy solution is to cache the result of calling EVP_DigestFinal_ex until the Hash object is garbage collected. PR-URL: nodejs#28251 Fixes: nodejs#28245 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This test fails prior to 990feaf being cherry-picked due to stream.pipeline with a crypto.Hash not working properly. That bug also seems to have affected md5.
Sorry, something went wrong.
Sorry, something went wrong.
When piping data into an SHA3 hash, EVP_DigestFinal_ex is called in hash._flush, bypassing safeguards in the JavaScript layer. Calling hash.digest causes EVP_DigestFinal_ex to be called again, resulting in a segmentation fault in the SHA3 implementation of OpenSSL. A relatively easy solution is to cache the result of calling EVP_DigestFinal_ex until the Hash object is garbage collected. PR-URL: #28251 Fixes: #28245 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Backport-PR-URL: #37009 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
When piping data into an SHA3 hash, EVP_DigestFinal_ex is called in hash._flush, bypassing safeguards in the JavaScript layer. Calling hash.digest causes EVP_DigestFinal_ex to be called again, resulting in a segmentation fault in the SHA3 implementation of OpenSSL. A relatively easy solution is to cache the result of calling EVP_DigestFinal_ex until the Hash object is garbage collected. PR-URL: #28251 Fixes: #28245 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Backport-PR-URL: #37009 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
|
v10.x-staging was rebased for #37278 so the rebased commit hashes for this PR are 68a6b8d...1c6fbd6 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This backports 990feafcb to v10.x. This fixes an issue when using stream.pipeline() with an instance of crypto.Hash.
It was fixed in 12.6.0, so this backports to v10.x and adds a test for it.