libc/_collate_lookup: Fix segfault seen on ISO-8859-5 locales
authorJohn Marino <draco@marino.st>
Sun, 19 Jun 2016 07:53:12 +0000 (09:53 +0200)
committerJohn Marino <draco@marino.st>
Sun, 19 Jun 2016 09:10:29 +0000 (11:10 +0200)
commit3a40390f6101dd0c97b3cf92a44b2428a19c2a35
tree0da7b82f6c157e03ba5da673377e73b9cb7a0803
parent9915e371b196ef063ed0bfddd33e797cd03c61ea
libc/_collate_lookup: Fix segfault seen on ISO-8859-5 locales

The fix for the Russian collation issue seemed to have bug in it.
Segfault was discovered by Lauri Tirkkonen of Illumos and confirmed by
Bapt@FreeBSD.org.  Lauri suggested this as a fix, but as of this writing
Bapt hasn't confirmed that this is final solution for FreeBSD.  Due to
personal reasons, I cannot wait for this confirmation longer.  I believe
this fix is better than what is currently in place, even if it is not
the final solution.
lib/libc/locale/collate.c