Files
Ilia Alshanetsky 894f215ba3 ext/gettext: throw on libintl NULL return in textdomain/bindtextdomain (#21882)
Both functions can return NULL on libintl-internal allocation failure,
which RETURN_STRING then fed to strlen(NULL) and crashed. Throw an
Error in that case instead, leaving the existing string return type
intact (no static-analysis fallout from a widened signature).

The dir==NULL query path of bindtextdomain keeps its RETURN_FALSE
because musl returns NULL there to signal an unbound domain, which is
not an error condition.
2026-09-19 19:19:41 -04:00
..
…