git: xlocale: Fix potential segfault

John Marino marino at crater.dragonflybsd.org
Sat Jul 11 06:09:45 PDT 2015


commit bf0d950af810c072318374249db960bc2121a540
Author: John Marino <draco at marino.st>
Date:   Sat Jul 11 11:52:54 2015 +0200

    xlocale: Fix potential segfault
    
    It was possible for locale and rune locale to become out of sync causing
    mb* and similar functions to be called with the wrong data, including
    with a null pointer.  Unfortunately, this still does not solve the
    gfortran testsuite failure related to newlocale usage.
    
    Taken-from: FreeBSD SVN 264038 (2 APR 2014)

Summary of changes:
 lib/libc/locale/setrunelocale.c |  4 +++-
 lib/libc/locale/xlocale.c       | 18 ++++++++----------
 2 files changed, 11 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bf0d950af810c072318374249db960bc2121a540


-- 
DragonFly BSD source repository



More information about the Commits mailing list