From patchwork Sat May 12 16:33:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 8926 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp2130466jad; Sat, 12 May 2018 09:35:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpoNMFqImjgc1Wn3S1wfgK4Z6Y3ZSaKLZA+295QxRXbb8fVBhDZQzcfU3OGxITOCsQ4nvVC X-Received: by 2002:a1c:5f82:: with SMTP id t124-v6mr1530796wmb.124.1526142906557; Sat, 12 May 2018 09:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526142906; cv=none; d=google.com; s=arc-20160816; b=MwKYJYl7gdBgaNQlKY3umiqMmaMgjz4e4/JWH4PA86uRhb8cj9B7ezd9D0Atl0oYfV HjSos/NEgnHh/QkFc8FBov2ydfOgdwhu9aLGA5IHvNSPhJ1p1t7ltANQ98Lcr8zFq56c 3IIlcTWqmQVitvr4YfPABAnmDtdZn7GZqxk/sP3xgi/WXZIXEgs6vHu7QIr/IGKCUSXL wwUbSsmEGV+FdKSQjHLBjw0ZiDMVgVoozlngSQeHF04YkVW6UgoApUVw2iJgeDKlC0UV VFvUY4oR0Wu79UrCEYSLuRQZmfBsBnn0f38C3QLxh4/AXZKRVe380WIV7DQnJyD6r4EI CHBg== 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:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=8thtXWI9l/opJ4vHGSZsvKdCvp04iPqi4+hN0qDj4OA=; b=ReAXgA2ZJMpAH38B4XAK8l3o+uljDsnrAD/9Mbqx7yFdDAc+HB6ZELOtShZHAvRWj/ cCfRXOH8B/lA91qVoyuk2RO5qUzpegddhuWlboqXps8LfnDhWp8b0sy+tdEUe6jlzaSU ah4opuSJtnMbYBTVGRsCPk03MrsD8/iXCuvqANYlpUs/4OKYzaZEKxavXvKUB0RzrDTC jGVrtC/GpWxlOT9AnjZoldvlFpZr7BQgrk9wv40gKByaG780oetbP9Os6hhdo/va8otu /7zISEaFYVq6A9n2ZSRz8Nlc/u1whZAQyy1GhHXWG5eXKZXsvCw03AbhkqTY158VKSpz t92g== ARC-Authentication-Results: i=1; mx.google.com; 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 33-v6si4859354wrn.239.2018.05.12.09.35.05; Sat, 12 May 2018 09:35:06 -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; 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 51943689A49; Sat, 12 May 2018 19:34:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-2.mx.upcmail.net (vie01a-dmta-pe05-2.mx.upcmail.net [84.116.36.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7624568A61E for ; Sat, 12 May 2018 19:34:20 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1fHXU0-0003Jg-Rw for ffmpeg-devel@ffmpeg.org; Sat, 12 May 2018 18:34:56 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id lUau1x03v0S5wYM01UavcW; Sat, 12 May 2018 18:34:55 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 12 May 2018 18:33:25 +0200 Message-Id: <20180512163329.18380-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.0 Subject: [FFmpeg-devel] [PATCH 1/5] avformat/tty: Remove .txt from the extensions as it more likely is not a multimedia related file 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Iam not sure if this is a good idea or not but it may make some attacks harder. So throwing this out for discussions ... Signed-off-by: Michael Niedermayer --- libavformat/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tty.c b/libavformat/tty.c index 8d48f2c45c..8067dd1908 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -155,6 +155,6 @@ AVInputFormat ff_tty_demuxer = { .priv_data_size = sizeof(TtyDemuxContext), .read_header = read_header, .read_packet = read_packet, - .extensions = "ans,art,asc,diz,ice,nfo,txt,vt", + .extensions = "ans,art,asc,diz,ice,nfo,vt", .priv_class = &tty_demuxer_class, };