Skip to content

Comments

Fix assertion failure in SSL_set_bio()#5966

Closed
mattcaswell wants to merge 2 commits intoopenssl:masterfrom
mattcaswell:fix-ssl-set-bio
Closed

Fix assertion failure in SSL_set_bio()#5966
mattcaswell wants to merge 2 commits intoopenssl:masterfrom
mattcaswell:fix-ssl-set-bio

Conversation

@mattcaswell
Copy link
Member

If SSL_set_bio() is called with a NULL wbio after a failed connection then this can trigger an assertion failure. This should be valid behaviour and the assertion is in fact invalid and can simply be removed.

The SSL_set_bio() tests only did standalone testing without being in the context of an actual connection. We extend this to do additional tests following a successful or failed connection attempt. This would have caught the issue above.

The tests won't cherry-pick to 1.1.0, so I'm only planning on cherry-pick the fix to that branch.

Checklist
  • tests are added or updated

If SSL_set_bio() is called with a NULL wbio after a failed connection then
this can trigger an assertion failure. This should be valid behaviour and
the assertion is in fact invalid and can simply be removed.
The SSL_set_bio() tests only did standalone testing without being in the
context of an actual connection. We extend this to do additional tests
following a successful or failed connection attempt. This would have
caught the issue fixed in the previous commit.
@mattcaswell mattcaswell added branch: master Applies to master branch 1.1.0 labels Apr 16, 2018
levitte pushed a commit that referenced this pull request Apr 17, 2018
If SSL_set_bio() is called with a NULL wbio after a failed connection then
this can trigger an assertion failure. This should be valid behaviour and
the assertion is in fact invalid and can simply be removed.

Reviewed-by: Viktor Dukhovni <[email protected]>
(Merged from #5966)
levitte pushed a commit that referenced this pull request Apr 17, 2018
The SSL_set_bio() tests only did standalone testing without being in the
context of an actual connection. We extend this to do additional tests
following a successful or failed connection attempt. This would have
caught the issue fixed in the previous commit.

Reviewed-by: Viktor Dukhovni <[email protected]>
(Merged from #5966)
levitte pushed a commit that referenced this pull request Apr 17, 2018
If SSL_set_bio() is called with a NULL wbio after a failed connection then
this can trigger an assertion failure. This should be valid behaviour and
the assertion is in fact invalid and can simply be removed.

Reviewed-by: Viktor Dukhovni <[email protected]>
(Merged from #5966)

(cherry picked from commit bd7775e)
@mattcaswell
Copy link
Member Author

Pushed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants