Coverity Scan: Analysis completed for openssl/openssl

2022-10-04 Thread scan-admin


Your request for analysis of openssl/openssl has been completed 
successfully.
The results are available at 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoN-2BQSVjTtaSz8wS4wOr7HlekBtV1P4YRtWclMVkCdvAA-3D-3DeGrb_MulOTlHne1IxTRELXXnGni8d68xSVF-2BUCe3a7Ux-2BjeH7XeCA1GyvLk58jiRKRZwJTEQFQJixGqabQTdE-2Fig-2FErOjQ51cwaI758Ci22TijAuKK2im2-2BpFRCWL1g1h7XHPdZ9Iy6SgMa-2Fj5R-2FCJLQ7MHp8hOMtsnUQxjbdtleQUVCC-2B3JmR354n3Dq-2B7k3CIQ-2BAzRzG62yU6WhVQD0sio1Nqhqt2ZbiTo8-2FYHe1t2rVgo-3D

Build ID: 484626

Analysis Summary:
   New defects found: 0
   Defects eliminated: 0



[openssl/openssl] 894f21: CRYPTO_THREAD_lock_new(): Avoid infinite recursion...

2022-10-04 Thread Tomáš Mráz
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 894f2166ef2c16d8e4533e1c09e05ff31ea2f1d8
  
https://github.com/openssl/openssl/commit/894f2166ef2c16d8e4533e1c09e05ff31ea2f1d8
  Author: Tomas Mraz 
  Date:   2022-10-05 (Wed, 05 Oct 2022)

  Changed paths:
M crypto/threads_none.c
M crypto/threads_pthread.c
M crypto/threads_win.c

  Log Message:
  ---
  CRYPTO_THREAD_lock_new(): Avoid infinite recursion on allocation error

Fixes #19334

Reviewed-by: Richard Levitte 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/19335)




[openssl/openssl] ed4947: err_set_debug(): Prevent possible recursion on mal...

2022-10-04 Thread Tomáš Mráz
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: ed49476a16b8ff2688a53a2ba7e011e6911620f8
  
https://github.com/openssl/openssl/commit/ed49476a16b8ff2688a53a2ba7e011e6911620f8
  Author: Tomas Mraz 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M crypto/err/err_local.h

  Log Message:
  ---
  err_set_debug(): Prevent possible recursion on malloc failure

Fixes #19331

Reviewed-by: Paul Dale 
Reviewed-by: Richard Levitte 
(Merged from https://github.com/openssl/openssl/pull/19332)




[openssl/openssl] 6c3728: armcap: skip probing _armv7_tick()

2022-10-04 Thread Cameron Gutman
  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 6c3728c72a8263a201352f6d118f9fc94bdbc6fb
  
https://github.com/openssl/openssl/commit/6c3728c72a8263a201352f6d118f9fc94bdbc6fb
  Author: Cameron Gutman 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M crypto/armcap.c

  Log Message:
  ---
  armcap: skip probing _armv7_tick()

Detection of this feature is unreliable so only use it if requested.

Reviewed-by: Paul Dale 
Reviewed-by: Dmitry Belyavskiy 
Reviewed-by: Hugo Landau 
(Merged from https://github.com/openssl/openssl/pull/18852)

(cherry picked from commit f2ec24c9e7c3df55fba97336594a5e815c342b01)




[openssl/openssl] f2ec24: armcap: skip probing _armv7_tick()

2022-10-04 Thread Cameron Gutman
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: f2ec24c9e7c3df55fba97336594a5e815c342b01
  
https://github.com/openssl/openssl/commit/f2ec24c9e7c3df55fba97336594a5e815c342b01
  Author: Cameron Gutman 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M crypto/armcap.c

  Log Message:
  ---
  armcap: skip probing _armv7_tick()

Detection of this feature is unreliable so only use it if requested.

Reviewed-by: Paul Dale 
Reviewed-by: Dmitry Belyavskiy 
Reviewed-by: Hugo Landau 
(Merged from https://github.com/openssl/openssl/pull/18852)




[openssl/openssl] 214bb8: Disable printf format checking on MinGW

2022-10-04 Thread faramir-dev
  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 214bb8f6db52e4a79454fafdf4865f57f2af4053
  
https://github.com/openssl/openssl/commit/214bb8f6db52e4a79454fafdf4865f57f2af4053
  Author: Daniel Fiala 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M include/openssl/bio.h.in
M test/testutil.h
M test/testutil/output.h

  Log Message:
  ---
  Disable printf format checking on MinGW

Fixes openssl#19185

Reviewed-by: Richard Levitte 
Reviewed-by: Tomas Mraz 
Reviewed-by: Paul Dale 
Reviewed-by: Hugo Landau 
(Merged from https://github.com/openssl/openssl/pull/19292)

(cherry picked from commit a1de5eb88479515535e5de090ded800455c3d4a7)




[openssl/openssl] a1de5e: Disable printf format checking on MinGW

2022-10-04 Thread faramir-dev
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: a1de5eb88479515535e5de090ded800455c3d4a7
  
https://github.com/openssl/openssl/commit/a1de5eb88479515535e5de090ded800455c3d4a7
  Author: Daniel Fiala 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M include/openssl/bio.h.in
M test/testutil.h
M test/testutil/output.h

  Log Message:
  ---
  Disable printf format checking on MinGW

Fixes openssl#19185

Reviewed-by: Richard Levitte 
Reviewed-by: Tomas Mraz 
Reviewed-by: Paul Dale 
Reviewed-by: Hugo Landau 
(Merged from https://github.com/openssl/openssl/pull/19292)




[openssl/openssl] c62a9c: VMS: use selective search when linking with sharea...

2022-10-04 Thread Richard Levitte
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: c62a9cd720eccdbb388890ee4a36801d01315be4
  
https://github.com/openssl/openssl/commit/c62a9cd720eccdbb388890ee4a36801d01315be4
  Author: Richard Levitte 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M Configurations/descrip.mms.tmpl

  Log Message:
  ---
  VMS: use selective search when linking with shareable images

VMS linking complains a lot about multiply defined symbols unless told
otherwise, especially when shareable images are involved.  For example, this
involves the legacy provider, where there are overriding implementations of
certain ERR functions.

To quiet the linker down, we need to say that symbols should be searched
selectively in shareable images.

However, that's not quite enough.  The order in which the VMS linker
processes files isn't necessarily top to bottom as given on the command line
or the option file(s), which may result in some symbols appearing undefined,
even though they are.  To remedy that, it's necessary to explicitly include
all object files and object libraries into a cluster, thus ensuring that
they will be processed first.  This allows the search for remaining symbol
references to be done in the as desired in the shareable images that follow.

Reviewed-by: Tomas Mraz 
Reviewed-by: Matt Caswell 
Reviewed-by: Tim Hudson 
Reviewed-by: Hugo Landau 
(Merged from https://github.com/openssl/openssl/pull/19327)




[openssl/openssl] 9ab1c7: Fix error propagatation in BN_check_prime()

2022-10-04 Thread Kazuki Yamaguchi
  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 9ab1c7612ccadba86949c5ebbf4ecc9f32432af7
  
https://github.com/openssl/openssl/commit/9ab1c7612ccadba86949c5ebbf4ecc9f32432af7
  Author: Kazuki Yamaguchi 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M crypto/bn/bn_prime.c

  Log Message:
  ---
  Fix error propagatation in BN_check_prime()

BN_check_prime() is supposed to return 0 for a composite number and -1
on error. Properly translate the return value of the internal function
ossl_bn_miller_rabin_is_prime(), where 0 means an error.

The confusion prevented BN_GENCB callbacks from aborting the primality
test or key generation routines utilizing this.

Reviewed-by: Tomas Mraz 
Reviewed-by: Nicola Tuveri 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/19314)

(cherry picked from commit 0b3867634f74f6cb7b60b3a0adde396421207214)




[openssl/openssl] 47cd0e: Fix examples related to BIO_do_accept

2022-10-04 Thread faramir-dev
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 47cd0e5b1f98fb88d6d8337f7ec0e16bb83cea32
  
https://github.com/openssl/openssl/commit/47cd0e5b1f98fb88d6d8337f7ec0e16bb83cea32
  Author: Daniel Fiala 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M doc/man3/BIO_f_ssl.pod
M doc/man3/BIO_s_accept.pod

  Log Message:
  ---
  Fix examples related to BIO_do_accept

Fixes openssl#8825

Reviewed-by: Tomas Mraz 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/19329)




[openssl/openssl] 8447b5: Fix examples related to BIO_do_accept

2022-10-04 Thread faramir-dev
  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 8447b5680c2211ad359346fb2f02a5830efc8c5e
  
https://github.com/openssl/openssl/commit/8447b5680c2211ad359346fb2f02a5830efc8c5e
  Author: Daniel Fiala 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M doc/man3/BIO_f_ssl.pod
M doc/man3/BIO_s_accept.pod

  Log Message:
  ---
  Fix examples related to BIO_do_accept

Fixes openssl#8825

Reviewed-by: Tomas Mraz 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/19329)

(cherry picked from commit 47cd0e5b1f98fb88d6d8337f7ec0e16bb83cea32)




[openssl/openssl] 0b3867: Fix error propagatation in BN_check_prime()

2022-10-04 Thread Kazuki Yamaguchi
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 0b3867634f74f6cb7b60b3a0adde396421207214
  
https://github.com/openssl/openssl/commit/0b3867634f74f6cb7b60b3a0adde396421207214
  Author: Kazuki Yamaguchi 
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
M crypto/bn/bn_prime.c

  Log Message:
  ---
  Fix error propagatation in BN_check_prime()

BN_check_prime() is supposed to return 0 for a composite number and -1
on error. Properly translate the return value of the internal function
ossl_bn_miller_rabin_is_prime(), where 0 means an error.

The confusion prevented BN_GENCB callbacks from aborting the primality
test or key generation routines utilizing this.

Reviewed-by: Tomas Mraz 
Reviewed-by: Nicola Tuveri 
Reviewed-by: Paul Dale 
(Merged from https://github.com/openssl/openssl/pull/19314)