diff options
author | Neil Horman <nhorman@openssl.org> | 2024-07-25 12:24:04 -0400 |
---|---|---|
committer | Neil Horman <nhorman@openssl.org> | 2024-07-27 10:07:35 -0400 |
commit | 4811efe12fd1af9554718ae15996470a5c2ecd70 (patch) | |
tree | 21dcd0d7bb1a077814d0e9927e4276d921a40346 /crypto/srp/git@git.beyermatthi.as:openssl | |
parent | 32185d513cf8732ee0a85875ac61ee4389a86bbb (diff) |
fix Coverity 1604662
Coverity flagged an issue in our bio_enc tests in which we failed to
check the return code of BIO_read for an error condition which can lead
to our length computation going backwards.
Just check the error code before adding it to length
Fixes openssl/project#779
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25006)
Diffstat (limited to 'crypto/srp/git@git.beyermatthi.as:openssl')
0 files changed, 0 insertions, 0 deletions