[FFmpeg-devel] [PATCH 08/11] avfilter/vf_signature: use av_strlcpy instead of strcpy

Timo Rothenpieler timo at rothenpieler.org
Sun Jun 11 17:05:50 EEST 2017


Fixes CID 1403236
---
 libavfilter/vf_signature.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c
index f0078ba1a6..c20b0bfabb 100644
--- a/libavfilter/vf_signature.c
+++ b/libavfilter/vf_signature.c
@@ -576,7 +576,7 @@ static int export(AVFilterContext *ctx, StreamContext *sc, int input)
         /* error already handled */
         av_assert0(av_get_frame_filename(filename, sizeof(filename), sic->filename, input) == 0);
     } else {
-        strcpy(filename, sic->filename);
+        av_strlcpy(filename, sic->filename, sizeof(filename));
     }
     if (sic->format == FORMAT_XML) {
         return xml_export(ctx, sc, filename);
-- 
2.13.0



More information about the ffmpeg-devel mailing list