diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-23 10:12:24 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-02-23 10:12:24 -0300 |
commit | 834bb0a29cf1047a33a3609fa98f31f44f297d5d (patch) | |
tree | 9173070e7eaa393fb2ae10ac65d870103b2bc416 /resolv | |
parent | 41fc6b16944f1056ad4d334f74b410fb195dcabe (diff) | |
download | glibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.tar.gz glibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.tar.xz glibc-834bb0a29cf1047a33a3609fa98f31f44f297d5d.zip |
powerpc: Remove powerpc64 strncmp variants
The default powerpc64, and power7 might access OOB memory which trigers invalid memory access with stratcliff. Although the fix is simple, just to reorder the by loads before the mismatch checks; all implementation just add one optimization: word aligned access when inputs have the same aligment. The unaligned case is still done by byte operations. This is already covered by the generic implementation, which also adds unaligned optimization. So instead of adjust powerpc32 implementations, just use default implementation instead. The power8 and power9 does not trigger any regression with stratcliff. Checked on powerpc64-linux-gnu built without multi-arch for powerpc64, power7, power8, and power9 (build for le).
Diffstat (limited to 'resolv')
0 files changed, 0 insertions, 0 deletions