]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid NULL pointer dereference
authorRadek Krejci <radek.krejci@oracle.com>
Thu, 21 Mar 2024 12:19:23 +0000 (13:19 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 8 Jul 2024 19:55:30 +0000 (21:55 +0200)
commitc215d75f94fcaa598817e739221f33b71b53fb39
treed70d0beeecccfbe1d1c98242b7e66763a2876b70
parentf35c0894130e34ff46a429f4373c14ca98437405
Avoid NULL pointer dereference

Function readbuffer_gets() misses some of the initial checks of its
arguments. Not checking them can lead to a later NULL pointer
dereferences.

The checks are now unified with the checks in readbuffer_read()
function.

CLA: trivial
Fixes #23915

Signed-off-by: Radek Krejci <radek.krejci@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23918)
crypto/bio/bf_readbuff.c