diff options
author | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-10-03 21:59:50 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-10-06 12:33:49 +0200 |
commit | b1cfbccc41de6aec950c0f662e7e85ab34bfff8a (patch) | |
tree | e136e634e3a239158ea348492741aefbd9ebc0bb /gcc/fortran/trans-openmp.cc | |
parent | 85333b9265720fc4e49397301cb16324d2b89aa7 (diff) | |
download | gcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.zip gcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.tar.gz gcc-b1cfbccc41de6aec950c0f662e7e85ab34bfff8a.tar.bz2 |
aarch64: fix off-by-one in reading cpuinfo
Fixes: 341573406b39
Don't subtract one from the result of strnlen() when trying to point
to the first character after the current string. This issue would
cause individual characters (where the 128 byte buffers are stitched
together) to be lost.
gcc/ChangeLog:
* config/aarch64/driver-aarch64.cc (readline): Fix off-by-one.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/cpunative/info_18: New test.
* gcc.target/aarch64/cpunative/native_cpu_18.c: New test.
Signed-off-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions