Re: [PATCH v2] aarch64: fix off-by-one in reading cpuinfo

2022-10-06 Thread Philipp Tomsich
On Thu, 6 Oct 2022 at 12:06, Richard Sandiford wrote: > Philipp Tomsich writes: > > 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 1

Re: [PATCH v2] aarch64: fix off-by-one in reading cpuinfo

2022-10-06 Thread Richard Sandiford via Gcc-patches
Philipp Tomsich writes: > 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/ChangeL

[PATCH v2] aarch64: fix off-by-one in reading cpuinfo

2022-10-06 Thread Philipp Tomsich
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-aa