Mercurial > gnulib
view modules/mbsstr-tests @ 40210:44073ad4207f
unictype/numeric: Fix undefined behaviour.
Reported by Jeffrey Walton <noloader@gmail.com>.
* lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
on shift overflow, caught by "gcc -fsanitize=undefined".
* lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
* lib/unictype/categ_of.c (lookup_withtable): Likewise.
* lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 08 Mar 2019 19:17:37 +0100 |
parents | 413f5a66c55a |
children |
line wrap: on
line source
Files: tests/test-mbsstr1.c tests/test-mbsstr2.sh tests/test-mbsstr2.c tests/test-mbsstr3.sh tests/test-mbsstr3.c tests/macros.h m4/locale-fr.m4 m4/locale-zh.m4 m4/codeset.m4 Depends-on: setlocale configure.ac: gt_LOCALE_FR_UTF8 gt_LOCALE_ZH_CN Makefile.am: TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3