#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to