]> git.ipfire.org Git - thirdparty/openssl.git/commit
Added check for the return value of the RAND_bytes() function
authorKlavishnik <evg.shtanov@gmail.com>
Thu, 10 Aug 2023 10:56:24 +0000 (13:56 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 10 Oct 2023 15:15:54 +0000 (17:15 +0200)
commit8d120aef951d7bb7deac0b8b559f8003f5ea6384
tree8a8a78f463960a2874781d605cdae2cac3f610c7
parentd0bf0106a5d25f4b9f13ff4e7187c4babe7694e1
Added check for the return value of the RAND_bytes() function

Call app_bail_out if RAND_bytes() fails.

Also changed the output parameter of RAND_bytes() to inp as
writing to encrypted output buffer does not make sense.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21706)
apps/speed.c