[openssl/openssl] c7f510: Coverity 1503321 & 1503327: dereference after null...

pauli noreply at reply.github.openssl.org
Sun Jul 17 07:52:21 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: c7f5109e5f847ccb96b761774186ec0ff6c8fec6
      https://github.openssl.org/openssl/openssl/commit/c7f5109e5f847ccb96b761774186ec0ff6c8fec6
  Author: Pauli <pauli at openssl.org>
  Date:   2022-07-17 (Sun, 17 Jul 2022)

  Changed paths:
    M crypto/provider_core.c

  Log Message:
  -----------
  Coverity 1503321 & 1503327: dereference after null check

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18799)

(cherry picked from commit f80910390cb882f346fe59c9803fc914b9c367c2)


  Commit: 1d6c45694a1ae4ac5f9aa8f76dc1de68089f8a72
      https://github.openssl.org/openssl/openssl/commit/1d6c45694a1ae4ac5f9aa8f76dc1de68089f8a72
  Author: Pauli <pauli at openssl.org>
  Date:   2022-07-17 (Sun, 17 Jul 2022)

  Changed paths:
    M crypto/evp/evp_lib.c
    M crypto/evp/evp_rand.c
    M crypto/evp/exchange.c
    M crypto/evp/kdf_lib.c
    M crypto/evp/kem.c
    M crypto/evp/keymgmt_meth.c
    M crypto/evp/mac_lib.c
    M crypto/evp/p_lib.c
    M crypto/evp/signature.c

  Log Message:
  -----------
  evp: make all _is_a functions accept and handle a NULL argument

Makes life easier for callers.

Fixes Coverity 1503326

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18799)

(cherry picked from commit ee8db8c5fb5b091f48d29914126d35a7e29cdcf2)


  Commit: 87dcdcc12434d2ed251efc182f2a24a244e74e4d
      https://github.openssl.org/openssl/openssl/commit/87dcdcc12434d2ed251efc182f2a24a244e74e4d
  Author: Pauli <pauli at openssl.org>
  Date:   2022-07-17 (Sun, 17 Jul 2022)

  Changed paths:
    M crypto/bio/bss_dgram.c

  Log Message:
  -----------
  Coverity 1506566: unchecked return value

There isn't much else that can be done here unfortunately.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18799)

(cherry picked from commit 358103b4a651ab3f392f088d86cd30469dccce2e)


Compare: https://github.openssl.org/openssl/openssl/compare/a3845612a690...87dcdcc12434


More information about the openssl-commits mailing list