diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2024-08-19 12:19:33 -0700 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2024-08-23 11:28:01 -0700 |
commit | 5dce17e17469161f413e1a5b723dca0e94be3fb6 (patch) | |
tree | c94952a4cfb8e656f79a12a1197b4deab68d501a /libgcc/config/t-slibgcc-elf-ver | |
parent | a9f5e23aba1a6f4ec32f1147b340a8145d827da9 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
repeating_sequence_p operates directly on the encoded pattern and does
not derive elements using the .elt() accessor. Passing in the length of
the unencoded vector can cause an out-of-bounds read of the encoded
pattern.
gcc/ChangeLog:
* config/riscv/riscv-v.cc (rvv_builder::can_duplicate_repeating_sequence_p):
Use encoded_nelts when calling repeating_sequence_p.
(rvv_builder::is_repeating_sequence): Ditto.
(rvv_builder::repeating_sequence_use_merge_profitable_p): Ditto.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Diffstat (limited to 'libgcc/config/t-slibgcc-elf-ver')
0 files changed, 0 insertions, 0 deletions