]> git.ipfire.org Git - thirdparty/glibc.git/commit
string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755]
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Feb 2022 16:10:35 +0000 (08:10 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Feb 2022 19:32:14 +0000 (11:32 -0800)
commit0f8a2390000c4e9a152b5f6cf8220f2560c01e74
tree3dae967b21238f8103b8b6cbc87351a960f5591c
parent9d1cd8bd7a8c6c8b7c4bfb3e566f711494cc12db
string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755]

Verify that wcsncmp (L("abc"), L("abd"), SIZE_MAX) == 0.  The new test
fails without

commit ddf0992cf57a93200e0c782e2a94d0733a5a0b87
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Sun Jan 9 16:02:21 2022 -0600

    x86: Fix __wcsncmp_avx2 in strcmp-avx2.S [BZ# 28755]

and

commit 7e08db3359c86c94918feb33a1182cd0ff3bb10b
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Sun Jan 9 16:02:28 2022 -0600

    x86: Fix __wcsncmp_evex in strcmp-evex.S [BZ# 28755]

This is for BZ #28755.

Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
(cherry picked from commit aa5a720056d37cf24924c138a3dbe6dace98e97c)
string/test-strncmp.c