[FFmpeg-devel] [PATCH] avcodec/hevcdec: fix out of bounds index -1 for inter prediction

2024-02-10 Thread Nuo Mi
It's a false positive. We use -1 to index an array, but it's not actually used. This patch will make the "GCC UndefinedBehaviorSanitizer" happy. Found by: checkasm-hevc_pel in https://fate.ffmpeg.org/report.cgi?time=20240211011905&slot=x86_64-archlinux-gcc-ubsan Reported-by: James Almer --- lib

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: fix out of bounds index -1 for inter prediction

2024-02-11 Thread Andreas Rheinhardt
Nuo Mi: > It's a false positive. We use -1 to index an array, but it's not actually > used. > This patch will make the "GCC UndefinedBehaviorSanitizer" happy. > > Found by: checkasm-hevc_pel in > https://fate.ffmpeg.org/report.cgi?time=20240211011905&slot=x86_64-archlinux-gcc-ubsan > Reported-by

Re: [FFmpeg-devel] [PATCH] avcodec/hevcdec: fix out of bounds index -1 for inter prediction

2024-02-11 Thread Nuo Mi
On Sun, Feb 11, 2024 at 5:00 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > It's a false positive. We use -1 to index an array, but it's not > actually used. > > This patch will make the "GCC UndefinedBehaviorSanitizer" happy. > > > > Found by: checkasm-hevc_pel in >