git: mbsnrtowcs/wcsnrtombs: Fix EILSEQ handling

John Marino marino at
Sun Jun 19 02:09:31 PDT 2016

commit 9915e371b196ef063ed0bfddd33e797cd03c61ea
Author: John Marino <draco at>
Date:   Sun Jun 19 09:39:34 2016 +0200

    mbsnrtowcs/wcsnrtombs: Fix EILSEQ handling
    Originally reported on FreeBSD (PR 209907) by Roel Standaert, RockinRoel
    noticed that DragonFly suffered the same bug.  When the title functions
    encounter a character that cannot be converted, they should change the
    src pointer to point to the character positioned immediately after the
    failed character, but no such change was performed.
    YellowRabbit improved on the FreeBSD patch addressing the bug with a
    new version that eliminates possible NULL pointer dereferences.
    Dragonfly-bug: <>

Summary of changes:
 lib/libc/locale/ascii.c | 15 ++++++++++-----
 lib/libc/locale/none.c  |  1 +
 2 files changed, 11 insertions(+), 5 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list