From patchwork Sun Jun 11 14:05:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 3908 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.195 with SMTP id 186csp512187vsk; Sun, 11 Jun 2017 07:06:59 -0700 (PDT) X-Received: by 10.28.71.201 with SMTP id m70mr4999639wmi.89.1497190019639; Sun, 11 Jun 2017 07:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497190019; cv=none; d=google.com; s=arc-20160816; b=IRvU3fo43hbMF9lAJyqNwpA56fEBbVg14kAB9u6s2pvmaMI/ZTFdSd4b2KCpaIVgDD a2k+v83HOv89Slyd5s2oMLaMKrUiAwWNGanXlLDmjkgutwTY0XmebP3kOalGYSkk9/ZQ s+VVHj6Q7aUckBilliV/s5mDi+9d/DX/S8WL1TfvR2RnRJtgVosHbinJUgkK8n2hmXal 1UH7qGNuzCPB5Jvgz3cA8BFhNQdYWK22kR0SecswBQ469S4DhKgiCu3Rd9lKQHi5Oq5U EiKi5P6c6SlB+mzc3MSDva2/H84nZTJhjc1XnQ32pTq5OMpEIiHYj7KuDSYu+Guagtoz DNMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Y8tpS49HK/knptlUMiMjA0JfzYgdIOXAFD4hFoe8+sg=; b=ACQkFLFf4O3+/0VKfn8X6z/m5IXrF+mQ3yVh8IS9meE5VCw9JGnJPG/drSFHEIJdiV 25szBJ9ro3NUzoxD2tZZJGC6+jgZcmoaFIMJNkuk+JtlLFOKtg/ahNmk0beGrRjhpqvx iM+t6uCQ6sf5HOqouF8YVGgM9QCtArtjIcrs0yaJbjUHkdbNjeeaeuapUPCkuZTbkZj4 eaM6YZCLqs4eteEEY1yUj51jviBj3MyoabaMSfIFlxLhvQ4NzHP5MNd/Vx9crlyt4gQv lTeQlKVLHxnRjmiknS0M110/onbk6QdPw9ZqMh8j/APVv4m+IrQWMNaQQ1rC41K0lGvU 0T8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id n52si7112675wrn.247.2017.06.11.07.06.59; Sun, 11 Jun 2017 07:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CDE326882AF; Sun, 11 Jun 2017 17:06:09 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [5.9.118.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2805B689D62 for ; Sun, 11 Jun 2017 17:06:07 +0300 (EEST) Received: from localhost.localdomain (unknown [IPv6:2a02:8109:43f:959c:ba97:5aff:fe10:ec69]) by btbn.de (Postfix) with ESMTPSA id A3B6F6A525; Sun, 11 Jun 2017 16:06:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1497189963; bh=hq1bCnP9NZ8oZuKziWSLiXdIJ7AVBOdYMnhYDcTeQns=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k5CbmeD9OYFaUnr+szBfNIV8vLUpTJU/wOwmqWdKZJvKj+1xnsT6+Xk454EkscoJ5 +1xsqaKOmbkHmMEEDrVXxDAPBPwOacDT7cIJApEn9mHGT3DnY51nqabBGCGAyYeGLY MRPg8QM9ZwGSJMfJnMf+RXLgEJ37R2WCOCdlnayE= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sun, 11 Jun 2017 16:05:50 +0200 Message-Id: <20170611140551.11844-8-timo@rothenpieler.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170611140551.11844-1-timo@rothenpieler.org> References: <20170611140551.11844-1-timo@rothenpieler.org> Subject: [FFmpeg-devel] [PATCH 08/11] avfilter/vf_signature: use av_strlcpy instead of strcpy X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Timo Rothenpieler MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" 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);