diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-12-29 12:27:11 -0800 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-01-04 11:36:24 +0000 |
commit | e2d37ddacb8ccaa95bad904c2be29eee737e7f82 (patch) | |
tree | da885897ca2b3cbf9c2227eca3ba0a07fd84cdea | |
parent | afd6244a1f8d92299967d3d50e6f6a1466da413f (diff) | |
download | arm-optimized-routines-e2d37ddacb8ccaa95bad904c2be29eee737e7f82.tar.gz |
string: Fix strnlen return value
The comment on the eos-not-found path says that it is
returning the max string length, but it actually uses
the current string length. This results in returned
values larger than the expected value.
-rw-r--r-- | string/aarch64/strnlen-sve.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/aarch64/strnlen-sve.S b/string/aarch64/strnlen-sve.S index ede0a17..4ebcc55 100644 --- a/string/aarch64/strnlen-sve.S +++ b/string/aarch64/strnlen-sve.S @@ -68,7 +68,7 @@ ENTRY_ALIGN (__strnlen_aarch64_sve, 4) b 1b /* End of count. Return max. */ -9: mov x0, x2 +9: mov x0, x1 ret END (__strnlen_aarch64_sve) |