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
NPE in CipherSuiteConverter.toJava(CipherSuiteConverter.java:281) #6336
Comments
any idea what the parameter values are |
Will find out tomorrow morning. |
@rkapsi - Just realized you pushed your code so I can do it my self too :)
|
Scottmitch
added a commit
to Scottmitch/netty
that referenced
this issue
Feb 13, 2017
Motivation: CipherSuiteConverter may throw a NPE if a cipher suite from OpenSSL does not match the precomputed regular expression for OpenSSL ciphers. This method shouldn't throw and instead just return null. Modifications: - if cacheFromOpenSsl(..) fails the conversion toJava should return null Result: Fixes netty#6336.
Scottmitch
added a commit
that referenced
this issue
Feb 13, 2017
Motivation: CipherSuiteConverter may throw a NPE if a cipher suite from OpenSSL does not match the precomputed regular expression for OpenSSL ciphers. This method shouldn't throw and instead just return null. Modifications: - if cacheFromOpenSsl(..) fails the conversion toJava should return null Result: Fixes #6336.
liuzhengyang
pushed a commit
to liuzhengyang/netty
that referenced
this issue
Sep 10, 2017
Motivation: CipherSuiteConverter may throw a NPE if a cipher suite from OpenSSL does not match the precomputed regular expression for OpenSSL ciphers. This method shouldn't throw and instead just return null. Modifications: - if cacheFromOpenSsl(..) fails the conversion toJava should return null Result: Fixes netty#6336.
kiril-me
pushed a commit
to kiril-me/netty
that referenced
this issue
Feb 28, 2018
Motivation: CipherSuiteConverter may throw a NPE if a cipher suite from OpenSSL does not match the precomputed regular expression for OpenSSL ciphers. This method shouldn't throw and instead just return null. Modifications: - if cacheFromOpenSsl(..) fails the conversion toJava should return null Result: Fixes netty#6336.
pulllock
pushed a commit
to pulllock/netty
that referenced
this issue
Oct 19, 2023
Motivation: CipherSuiteConverter may throw a NPE if a cipher suite from OpenSSL does not match the precomputed regular expression for OpenSSL ciphers. This method shouldn't throw and instead just return null. Modifications: - if cacheFromOpenSsl(..) fails the conversion toJava should return null Result: Fixes netty#6336.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Providing repro shortly but it's triggered by an Unit Test for the OCSP Stapling PR.
Basically... OpenSSL (native) is calling my OCSP callback (java) which throws for the sake of the test an Exception. Instead of bubbling up the Exceptions it's running into an unhandled (?) NPE and my purposely thrown Exception gets swallowed somewhere.
Netty 4.1.9.Final-SNAPSHOT
The NPE's stack looks like this:
The throw stack looks like this (OcspTest.java:314 throws a IllegalStateException)
The text was updated successfully, but these errors were encountered: