[php-src] PR #22045: sqlite: fix error checks for column retrieval
| From: | ndossche | Date: | Fri, 15 May 2026 10:58:12 +0000 |
| Subject: | [php-src] PR #22045: sqlite: fix error checks for column retrieval | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36129@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22045
Author: ndossche
These can return NULL on OOM.
And for blobs, it can return NULL for empty blobs (so *no* failure, just an edge case). Passing NULL
to memcpy is UB, so we have to check for a NULL pointer there to avoid UB.
Found by a static-dynamic analyser I'm developing.