You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2022/02/21 08:06:33 UTC

[Bug 65903] New: modules/ssl/ssl_engine_kernel.c: Add check for X509_STORE_CTX_init

https://bz.apache.org/bugzilla/show_bug.cgi?id=65903

            Bug ID: 65903
           Summary: modules/ssl/ssl_engine_kernel.c: Add check for
                    X509_STORE_CTX_init
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
          Assignee: bugs@httpd.apache.org
          Reporter: jiasheng@iscas.ac.cn
  Target Milestone: ---

Created attachment 38206
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38206&action=edit
0001-modules-ssl-ssl_engine_kernel-Add-check-for-X509_STORE_CTX_init.patch

As the potential failure of the X509_STORE_CTX_new() and
X509_STORE_CTX_init(), such as when lack of memory or no
lock, the 'cert_store_ctx' could be NULL and 'cert_store
could fail to initialize.
Therefore, it should be better to check X509_STORE_CTX_init()
and return error if fails, since X509_STORE_CTX_init() has
already check the 'cert_store_ctx' and return NULL if it is
NULL.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 65903] modules/ssl/ssl_engine_kernel.c: Add check for X509_STORE_CTX_init

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65903

Giovanni Bechis <gi...@paclan.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Giovanni Bechis <gi...@paclan.it> ---
Committed in r1898368.
 Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org