diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-13 01:02:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-17 13:16:58 +0200 |
commit | dff0a1557eabd435d251eaf10157b40bca4eefb5 (patch) | |
tree | 60c45dbc6cb86ee7e3e0f1da2253baa50a6f85af /tests/checkasm/hevc_deblock.c | |
parent | d4083ecb7c872807aa24b6ec5865f8a2fba95cf2 (diff) | |
download | ffmpeg-dff0a1557eabd435d251eaf10157b40bca4eefb5.tar.gz |
tests/checkasm/llauddsp: Avoid UB integer overflow
The only multiplicators used in scalarproduct_and_madd_*
are -1, 0 and +1. Yet it is of type int and the checkasm
test uses the complete range of int for it, leading to overflows
that don't happen for actual users.
Fix this by using a more reasonable range for mul: Given
that it is used in v1[i] += v3[i] * mul with v1 being
a 16bit integer, it makes no sense to use values for mul
that don't fit into 16bit.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/checkasm/hevc_deblock.c')
0 files changed, 0 insertions, 0 deletions