From patchwork Thu Jan 5 20:58:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Angus X-Patchwork-Id: 34875 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:bc95:b0:ad:ade2:bfd2 with SMTP id fx21csp663915pzb; Thu, 5 Jan 2023 12:59:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXse/AuPEFuJxfX4M9+SbPmBZrNeL+42WNoJY/bZiLBjxYJvMjd41SVzNRqW4ifRDSxBgi7U X-Received: by 2002:a17:906:3084:b0:7c1:5ee1:4c57 with SMTP id 4-20020a170906308400b007c15ee14c57mr44458018ejv.8.1672952341559; Thu, 05 Jan 2023 12:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672952341; cv=none; d=google.com; s=arc-20160816; b=MqqoqE4OnkvbXnFAzmcoFz+hFVr/l6hvCC9Ywk8y1RaLIBWMSWbCtlUsowrISMQUzh jGOPiQqQm6PpQDndU5vTi1Hb4JPJdrPZsD87c+5ARtb+AEKU1ZRMUR4Y3wBQHrhJQvmc FaBq8Jfu6pgZ0SJaS4HwYapT13Ku1ghYrFfiPEUrgMvQ6yr2p7It3BZnOAQH9qhafT0D 3JE8/2EgN0dG1JOO/983GVaPV1forImb+TlXmAAUvbqyBfezabUv04fqf0AZs+0WLeIB 5rpoqx7WyGJ1Cjq8YYOm//b/OPZijItIwaaIE7UeJO8Huv1SXwTqqcXdaWsIxeJ9sHMC TWkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=w/TGUCXmj0CxvmBvt2ffBlovUmOTKziFGNasiKcgEE8=; b=OmguIMj50eybb+bdkI95hMn4ZeJ/4PKTbIVx1mAk8T/EUY7QjdT6k4vUE9kfWtjX2i T3ZeAz9WFl4BdQx+ubE/wjPyyZaK2BMODWxEbjAxQ23lr/oJ5GUhRpfJAaKY42/5gS6A 6/HApn02lm7YAhuUnC1KnivgHCRrI3eL/tpebprG1Pg8Mv1KsyNPK6SfatvVTzkTO7L9 /Ru7bLD0ifiPuQKUWnMVQlMgxTHD2nP5Z0Rz5kMBGGGN4QSuwy8+s6yqEG2nv5Lm+4B5 2R0XmjU9Qh+4dcVv5gvLS6o9SdLEoTSJpfJj3K0iBEOsEnrp63IFd/Bi7Cep4BUaf2gT Qf8A== 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 qb33-20020a1709077ea100b0078bcc872a6esi34442085ejc.360.2023.01.05.12.59.01; Thu, 05 Jan 2023 12:59:01 -0800 (PST) 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 D292068BDAB; Thu, 5 Jan 2023 22:58:57 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mailrelay.ngus.net (mailrelay.ngus.net [109.237.26.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0EBE268BD93 for ; Thu, 5 Jan 2023 22:58:52 +0200 (EET) Received: from cpc102338-sgyl38-2-0-cust655.18-2.cable.virginm.net ([77.102.34.144] helo=zebop) by mailrelay.ngus.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1pDXK7-009y7t-8f for ffmpeg-devel@ffmpeg.org; Thu, 05 Jan 2023 20:58:51 +0000 Received: from [192.168.101.3] (helo=localhost.localdomain) by zebop with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pDXK5-004AX4-4j; Thu, 05 Jan 2023 20:58:50 +0000 From: Tim Angus To: ffmpeg-devel@ffmpeg.org Date: Thu, 5 Jan 2023 20:58:41 +0000 Message-Id: <20230105205842.1442824-1-tim@ngus.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Score: -1.0 (-) Subject: [FFmpeg-devel] [PATCH 0/1] Fix off-by-one in ASS subtitle encoder X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Tim Angus Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: YyVvr4bK/Rmz When writing a subtitle SSA/ASS subtitle file, the AVCodecParameters::extradata buffer is written directly to the output, including the null terminating character of the buffer. This appears to be a simple off by one bug, which is fixed by the subsequent patch. Tim Angus (1): avformat/assenc: fix incorrect copy of null terminator libavformat/assenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)