Opened 3 years ago

Closed 3 years ago

#9217 closed defect (fixed)

program_opencl fails if the source code was larger than 64kB

Reported by: sekiriki Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: opencl
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (2)

comment:1 by Carl Eugen Hoyos, 3 years ago

Priority: importantnormal

comment:2 by Elon Musk, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.