• R
    fix null pointer dereference in dcngettext under specific conditions · 43e9f652
    Rich Felker 提交于
    if setlocale has not been called, the current locale's messages_name
    may be a null pointer. the code path where it's assumed to be non-null
    was only reachable if bindtextdomain had already been called, which is
    normally not done in programs which do not call setlocale, so the
    omitted check went unnoticed.
    
    patch from Void Linux, with description rewritten.
    43e9f652
dcngettext.c 5.5 KB