Skip to content
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

Segfault when RNG is not set #39

Closed
jethrogb opened this issue Nov 16, 2013 · 2 comments
Closed

Segfault when RNG is not set #39

jethrogb opened this issue Nov 16, 2013 · 2 comments

Comments

@jethrogb
Copy link

If you never call ssl_set_rng() and then do something that needs the RNG, the program segfaults. For example, comment the line with ssl_set_rng in ssl/ssl_client1.c and run ssl_server and then ssl_client1. ssl_client1 will segfault during the handshake. There should be either a safe default or a graceful failure instead.

@pjbakker
Copy link
Contributor

Agreed. The failure should be graceful. (There is no safe default possible).

@pjbakker
Copy link
Contributor

Fixed in internal branch for next release

gilles-peskine-arm pushed a commit to gilles-peskine-arm/mbedtls that referenced this issue Mar 1, 2019
…ta-docs

Point to psa-crypto-api branch for the PSA Crypto API specification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants