Skip to content
Commit 453ed0a0 authored by Noah Goldstein's avatar Noah Goldstein Committed by H.J. Lu
Browse files

x86: Fix overflow bug with wmemchr-sse2 and wmemchr-avx2 [BZ #27974]



This commit fixes the bug mentioned in the previous commit.

The previous implementations of wmemchr in these files relied
on n * sizeof(wchar_t) which was not guranteed by the standard.

The new overflow tests added in the previous commit now
pass (As well as all the other tests).

Signed-off-by: default avatarNoah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: default avatarH.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 645a1589)
parent e09c3778
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment