diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-27 16:01:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-04 18:01:01 +0200 |
commit | 8a61f66381e459d6b33334fb104a09e55d051b58 (patch) | |
tree | 4a11818232c4d7f714ef4a956069ba48e340ebd6 /libavdevice/opengl_enc.c | |
parent | 22e7e4e19d4a874edcbbf03dcde07cf44af3f783 (diff) | |
download | ffmpeg-8a61f66381e459d6b33334fb104a09e55d051b58.tar.gz |
avocdec/cavsdsp: Fix undefined pointer arithmetic
src2 is used in CAVS_SUBPIX_HV iff FULL is true (it is exactly
for the egpr functions); otherwise it might be NULL. So check
for FULL before doing pointer arithmetic.
Fixes a "src/libavcodec/cavsdsp.c:524:1: runtime error: applying
non-zero offset 8 to null pointer" from UBSan.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/opengl_enc.c')
0 files changed, 0 insertions, 0 deletions