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 , 3 years ago
Priority: | important → normal |
---|
comment:2 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in 9b445663a544b777f1470692a9fa64f2d481efa4