[php-src] PR #21882: ext/gettext: avoid NULL deref in textdomain/bindtextdomain

From: Date: Mon, 27 Apr 2026 10:36:51 +0000
Subject: [php-src] PR #21882: ext/gettext: avoid NULL deref in textdomain/bindtextdomain
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35905@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21882 Author: iliaal Both textdomain() and bindtextdomain($domain, $dir) can return NULL on libintl-internal allocation failure. RETURN_STRING then calls strlen(NULL) and crashes. 0221ceeccd4 closed the same gap for bindtextdomain($domain, NULL). The other two sites get the same guard. textdomain() widens from string to string|false.

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