diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2024-07-09 17:41:32 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-10 18:10:10 +0200 |
commit | 34b4ca8696de64ca756e7aed7bdefa9ff6bb5fac (patch) | |
tree | 605708c7752e43b390e25ed1b0c890acfe0a903f /tests/reference.pnm | |
parent | e9e8bea2e79bc3c481a6f81f75f6c871e3e0f367 (diff) | |
download | ffmpeg-34b4ca8696de64ca756e7aed7bdefa9ff6bb5fac.tar.gz |
swscale: prevent undefined behaviour in the PUTRGBA macro
For even small values of 'asrc[x]', shifting them by 24 bits or more
will cause arithmetic overflow and be caught by
GCC's undefined behaviour sanitizer.
Ensure the values do not overflow by up-casting the bracketed
expressions involving 'asrc' to uint32_t.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/reference.pnm')
0 files changed, 0 insertions, 0 deletions