| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| @@ -193,7 +193,7 @@ detailing the point in the code at which the `Error` was instantiated, and may | |||
| provide a text description of the error. | |||
There was a problem hiding this comment.
This commit has the latest review comment fixes.
@bnoordhuis, i believe i've addressed all of your comments. Thanks for the review.
Sorry, something went wrong.
| if (es->bottom != es->top) { | ||
| Local<Array> error_stack = Array::New(env->isolate()); | ||
| int top = es->top; | ||
|
|
There was a problem hiding this comment.
Now, we wont add the property to the exception every time.
Sorry, something went wrong.
| // Using ERR_NUM_ERRORS macro defined in openssl. | ||
| es->top = (((es->top - 1) % ERR_NUM_ERRORS) + ERR_NUM_ERRORS) % | ||
| ERR_NUM_ERRORS; | ||
| } |
There was a problem hiding this comment.
handle the ring buffer with modular arithmetic
Sorry, something went wrong.
|
|
||
| ERR_set_mark(); | ||
|
|
||
| bp = BIO_new_mem_buf(const_cast<char*>(key_pem), key_pem_len); |
There was a problem hiding this comment.
this is not needed
Sorry, something went wrong.
| Array.isArray(err.openSSLErrorStack) && | ||
| err.openSSLErrorStack.length === 0) { | ||
| err.openSSLErrorStack === undefined) { | ||
| return true; |
There was a problem hiding this comment.
update test since the openSSLErrorStack is not always added
Sorry, something went wrong.
Sorry, something went wrong.
|
ping @nodejs/crypto |
Sorry, something went wrong.
There was a problem hiding this comment.
long line here?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
|
@gla5001 when trying to rebase this on the CI it gets a conflict. I am a bit surprised that this is not shown here but would you be so kind and rebase this nevertheless? |
Sorry, something went wrong.
Feature request to add openSSL error stack to the exception object thrown from crypto. New exception property only added to object if the error stack has not cleared out prior to calling ThrowCryptoError. Refs: nodejs#5444
|
@BridgeAR rebased and pushed. Could you let me know if this resolves the issue? |
Sorry, something went wrong.
Sorry, something went wrong.
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: #15518 Refs: #5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: nodejs#15518 Refs: nodejs#5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
|
The commit log could have had a link to #14725, that's where 95% of the review took place. This comment will have to do. |
Sorry, something went wrong.
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: #15518 Refs: #5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: nodejs/node#15518 Refs: nodejs/node#5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: #15518 Refs: #5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Add openSSL error stack to the exception object thrown from crypto. The new exception property is only added to the object if the error stack has not cleared out prior to calling ThrowCryptoError. PR-URL: #15518 Refs: #5444 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
|
Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label. edit: this likely shouldn'y be backported if it is changing error messages prior to error codes... but I wanted to confirm |
Sorry, something went wrong.
|
@MylesBorins I believe it should not be backported. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Feature request to add openSSL error stack to the exception object
thrown from crypto. New exception property only added to object
if the error stack has not cleared out prior to calling
ThrowCryptoError.
I did something very wrong when trying to rebase, so i just created a new branch and a new PR. This PR has all the changes requested from #14725. I will close the other one.
Refs: #5444
Checklist
Affected core subsystem(s)
crypto