Re: [FFmpeg-devel] [PATCH] avocdec/cavsdsp: Fix undefined pointer arithmetic

2022-10-02 Thread Andreas Rheinhardt
Andreas Rheinhardt: > 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" fr

[FFmpeg-devel] [PATCH] avocdec/cavsdsp: Fix undefined pointer arithmetic

2022-09-27 Thread Andreas Rheinhardt
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: Andr