diff options
author | Maneesh Gupta <maneesh.gupta@amd.com> | 2015-04-28 13:08:31 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-21 20:43:37 +0200 |
commit | 1e6352578ae4319b2427f9f2ffb8042e8d11894f (patch) | |
tree | 64f242ca8f650361224c3dd7fc15e77f18c6a961 /ffmpeg_filter.c | |
parent | d269eb2c114f8ef24cd3aa79c1465d866087f072 (diff) | |
download | ffmpeg-1e6352578ae4319b2427f9f2ffb8042e8d11894f.tar.gz |
OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c
The opt_opencl_bench function copied the device name using strcpy without checking if the source string was larger.
This patch fixes this by replacing the strcpy with av_strlcpy, with the string copy size capped to the destination buffer size.
Signed-off-by: Maneesh Gupta <maneesh.gupta@amd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cf234552b83a9503ff96572de2658b921b8842eb)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_filter.c')
0 files changed, 0 insertions, 0 deletions