aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/bktr.c
diff options
context:
space:
mode:
authorManeesh Gupta <maneesh.gupta@amd.com>2015-04-28 13:08:31 +0530
committerMichael Niedermayer <michaelni@gmx.at>2015-06-17 21:50:09 +0200
commit25daf27484ea6d9c090975893804aa4f096fcfd4 (patch)
treeea3823987acc80833637ebbf7860e422169bd5ff /libavdevice/bktr.c
parentd9ff9b8ab0b5a1470fb7d066b0ed413b452eac7f (diff)
downloadffmpeg-25daf27484ea6d9c090975893804aa4f096fcfd4.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 'libavdevice/bktr.c')
0 files changed, 0 insertions, 0 deletions