[php-src] PR #21957: openssl: Add error checks for CMS_get1_certs() and CMS_get1_crls()

From: Date: Tue, 05 May 2026 18:09:32 +0000
Subject: [php-src] PR #21957: openssl: Add error checks for CMS_get1_certs() and CMS_get1_crls()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36032@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21957 Author: ndossche These allocate new stacks and add the certificates to those as clones. So these aren't trivial refcount increases and might fail. Unfortunately, an empty stack also results in a NULL return, so to distinguish an empty stack from a failure we check the error stack. Note: this was found by an experimental static-dynamic hybrid analyser I'm developing.

« previous php.git-pulls (#36032) next »