mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/135/head
parent
b410c69fb6
commit
cf234552b8
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue