diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-14 21:22:55 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-18 02:55:14 +0200 |
commit | 3614f7e1ccb70bdb21cf3cb326df2764996055c5 (patch) | |
tree | c324f097dde61636de55b61879f8d6711cac0c35 /libavutil/half2float.c | |
parent | f9b6e3e48d2544a448e305f7aa43fe7310ecb1d0 (diff) | |
download | ffmpeg-3614f7e1ccb70bdb21cf3cb326df2764996055c5.tar.gz |
avcodec/vp3: Fix undefined pointer arithmetic
When decoding a keyframe, last_frame and golden_frame are
not used at all and (at least when starting decoding)
are not set at all. But due to code sharing pointer arithmetic
on the NULL data-pointers of these frames has nevertheless
been performed. This is undefined behaviour and causes e.g.
"runtime error: applying non-zero offset 173440 to null pointer"
from UBSan in the vp31, vp4, theora-coeff-level64 and theora-offset
FATE-tests.
Fix this by reusing the current frame for unavailable frames.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/half2float.c')
0 files changed, 0 insertions, 0 deletions