[openssl/openssl] 4811ef: fix Coverity 1604662

Neil Horman noreply at github.com
Sat Jul 27 14:56:58 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 4811efe12fd1af9554718ae15996470a5c2ecd70
      https://github.com/openssl/openssl/commit/4811efe12fd1af9554718ae15996470a5c2ecd70
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-07-27 (Sat, 27 Jul 2024)

  Changed paths:
    M test/bio_enc_test.c

  Log Message:
  -----------
  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 at gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
(Merged from https://github.com/openssl/openssl/pull/25006)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list