- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 335
Browser freezing when call method importX509() #459
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
Labels
Comments
Kindly provide code to reproduce, not just a JWS. |
Oh sorry, sure:
|
Do you feel like looking into the issue further? Possibly identifying and fixing the problem? |
I would love to, but unfortunately I don't feel that I'm strong in this case to fix this error. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What happened?
Hi there!
I've found a place where
while
loop just go to infinity.Move on chain importX509() -> getSPKI() -> spkiFromX509() -> getElement() -> parseElement() and parseElement it's the last method when you have a while loop, exactly the one that is in the condition
if (length === 0x80)
.For reproduce this I've attached my JWS input data below.
Thanks in advance!
Version
v4.9.3 and less
Runtime
Browser
Runtime Details
Chrome Browser/Safari/Firefox
Code to reproduce
Required
The text was updated successfully, but these errors were encountered: