[openssl/openssl] 31cd9c: Fix coverity-993406

Neil Horman noreply at github.com
Fri Jul 26 17:25:57 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 31cd9cd830f847c0effc7c15b814f890228c3739
      https://github.com/openssl/openssl/commit/31cd9cd830f847c0effc7c15b814f890228c3739
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M test/cmsapitest.c

  Log Message:
  -----------
  Fix coverity-993406

Coverity flagged an overflow warning in the cmsapitest.

Its pretty insignificant, but if a huge file is passed in via BIO, its
possible for the length variable returned to overflow.

Just check it as we read to silence coverity on it.

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
(Merged from https://github.com/openssl/openssl/pull/24995)



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