[FFmpeg-trac] #9217(avfilter:new): program_opencl fails if the source code was larger than 64kB
FFmpeg
trac at avcodec.org
Thu May 6 05:19:22 EEST 2021
#9217: program_opencl fails if the source code was larger than 64kB
----------------------------------+--------------------------------------
Reporter: sekiriki | Type: defect
Status: new | Priority: important
Component: avfilter | Version: git-master
Keywords: opencl | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/opencl.c#L254
Here, the maximum number of "rb" is "len - pos - 1", and "pos" is "len -
1" at line 260. Therefore, the condition is always true and the rest of
the code would not be read.
How to reproduce:
Write any OpenCL program source file with leading 64kB white spaces, then
run program_opencl filter.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9217>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list