Package: libicu52 Version: 52.1-8+deb8u5 Severity: normal Tags: upstream Dear Maintainer,
The following test case causes a segfault. The test looks similar to the one in bug #871667, but the backtrace differs in a way that suggests that it's a different bug. #include <stdio.h> #include <string.h> #include <stdlib.h> #include "unicode/ustring.h" #include "unicode/utypes.h" #include "unicode/ucol.h" int main() { UCollator *coll; UCollationResult result; UErrorCode status = U_ZERO_ERROR ; const char *loc = "az-Latn-AZ"; const char *s1 = "ab"; const char *s2 = "abc\xf0\x9f\x98\x87"; coll = ucol_open(loc, &status); if (U_FAILURE(status)){ fprintf(stderr, "ucol_open failed\n"); exit(1); } /* segfaults with libicu 52.1-8+deb8u5 */ result = ucol_strcollUTF8(coll, s1, strlen(s1), s2, strlen(s2), &status); return 0; } Result: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff78c2030 in ucol_getLatinOneContractionUTF8 ( coll=coll@entry=0x604f30, strength=strength@entry=0, CE=<optimized out>, s=s@entry=0x400974 "c\360\237\230\207", index=index@entry=0x7fffffffe520, len=len@entry=5) at ucol.cpp:8044 -- System Information: Debian Release: 8.6 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libicu52 depends on: ii libc6 2.19-18+deb8u10 ii libgcc1 1:4.9.2-10 ii libstdc++6 4.9.2-10 ii multiarch-support 2.19-18+deb8u6 libicu52 recommends no packages. libicu52 suggests no packages. -- no debconf information