git: libc: Remove 'table' argument from call to collate_range_cmp() in __sccl().
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Sat Dec 30 12:28:13 PST 2017
commit f69bef86fb8f7697c008e987640aeab5ce7a9b9d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Thu Dec 28 14:30:07 2017 +0200
libc: Remove 'table' argument from call to collate_range_cmp() in __sccl().
This prevents segfaults when called with say incomplete locale.
Introduce a separate wide variant of __wcollate_range_cmp() and use proper
variant were needed. The __sccl() does not use wchar_t types.
Also use '\0' instead of plain 0.
Similar change was done in FreeBSD.
Summary of changes:
lib/libc/gen/fnmatch.c | 6 +++---
lib/libc/gen/glob.c | 4 ++--
lib/libc/locale/collate.h | 3 ++-
lib/libc/locale/collcmp.c | 22 +++++++++++++++-------
lib/libc/stdio/vfscanf.c | 8 ++++----
5 files changed, 26 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f69bef86fb8f7697c008e987640aeab5ce7a9b9d
--
DragonFly BSD source repository
More information about the Commits
mailing list