diff options
author | Maneesh Gupta <maneesh.gupta@amd.com> | 2015-04-28 13:08:31 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-28 12:18:23 +0200 |
commit | cf234552b83a9503ff96572de2658b921b8842eb (patch) | |
tree | 92bc540c81314c490b822481a54af277db3444f2 /libavutil/rc4.c | |
parent | b410c69fb66688f3e7c8bb40aca201079b206bd9 (diff) | |
download | ffmpeg-cf234552b83a9503ff96572de2658b921b8842eb.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>
Diffstat (limited to 'libavutil/rc4.c')
0 files changed, 0 insertions, 0 deletions