From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 91383480BD for ; Fri, 9 Feb 2024 09:13:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3EBC268CEAB; Fri, 9 Feb 2024 11:13:12 +0200 (EET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3A7C768CBF8 for ; Fri, 9 Feb 2024 11:13:06 +0200 (EET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6e0523fbc27so369478b3a.3 for ; Fri, 09 Feb 2024 01:13:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707469983; x=1708074783; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+CltWwCu0Nn9gxs3ePYOR9x4YWCQ+Xh8L/Ms7oKwk1E=; b=c7Nxq8x/hISfKBsgJC+MP9fKCBpmZIRcL5EmiuMV7DoE8r2BSMW3yMdIuV8gxqY5L1 E/FAlyZgZgsC3OBJivDm766kSgBMHRnkljoy23c/z9ytjF1pVB5C2VSEyYOEaKPUWQzg lAr4hgvses+rhm8BpQTx6QTSQSy5VkO29VhEEqmZWS9reHA6DAOVrdbFmFWi2tjcCKyG u4scEYQhb5RWhaGPb0IAXVFT6BLas3ng8uVAypYWpNWBY7QOGdoD0uVYfWCTA0x0MqaX a/I6P+EGfU8zt/s1Ce8i3hv/nLQvdnmVw98gQNMYHqEFvkJyim+nI1s8EnSRUkFcwrXj auSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707469983; x=1708074783; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+CltWwCu0Nn9gxs3ePYOR9x4YWCQ+Xh8L/Ms7oKwk1E=; b=LmQoBgy1doVW+wvo0CikvB8kueksmi/VAEsBzHV4eZqrBE1WdNX/XZXUcHI93u09ry GG2R4njhisyG74o6Hsw7cFyhtncWD8Qyiu0/ldTkZm4o8m+oiPdy+0IQOgIRobJhf6Zr 1Zy+ufTOi7t/eHgIwQqgQ4WK0i8AtkuxtuMzid1UMmsQe9tI6oTgyQxn4oqa/FS/uQQR xEhDMJ/R0FFdEzso6HnPaWcUi+DxsNPGemGM/S6e2SjWwFrxs6vwlgK5pxQtIhRxbQw3 YVSPwZTTDdrSlmX4y9euLZ9Cl6xz1fQW9HDB8Aq50NT8KZcXDnsZkmiPj8ptl74gZoqd dY4Q== X-Gm-Message-State: AOJu0YzvRTH+t/lrYe2MRe9GlYc3WskbrCkg+hlj0nX9Ab1PFOEyUXyI 5iqrmoibiJ6ULnDy7Omv/al1Vtus+84C/54fQqH6Fn/M6FrLHbsJQY0koo4hRC8= X-Google-Smtp-Source: AGHT+IG+hjD7OXMQEl8woaxdST0NkBmsEkz/iFkHvt8nJzoCq38bHl70MxHeTqkUb3hy0QI4JykzVg== X-Received: by 2002:a62:e503:0:b0:6e0:5ebe:89f1 with SMTP id n3-20020a62e503000000b006e05ebe89f1mr1060898pff.13.1707469982674; Fri, 09 Feb 2024 01:13:02 -0800 (PST) Received: from localhost ([2601:647:4600:84e0:d085:ac8a:daf1:f5a1]) by smtp.gmail.com with UTF8SMTPSA id gx4-20020a056a001e0400b006e07f1829b0sm1157844pfb.219.2024.02.09.01.13.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Feb 2024 01:13:02 -0800 (PST) From: Connor Worley To: ffmpeg-devel@ffmpeg.org Date: Fri, 9 Feb 2024 01:11:43 -0800 Message-Id: <20240209091142.65668-1-connorbworley@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2] lavc/dxvenc: fix failing FATE tests 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: Connor Worley Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Prevents access to uninitialized parts of ctx->tex_data, which were causing FATE tets to fail under valgrind with --malloc-fill set. Signed-off-by: Connor Worley --- libavcodec/dxvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dxvenc.c b/libavcodec/dxvenc.c index ebc48aace3..b92d99981c 100644 --- a/libavcodec/dxvenc.c +++ b/libavcodec/dxvenc.c @@ -234,7 +234,7 @@ static av_cold int dxv_init(AVCodecContext *avctx) ctx->enc.tex_ratio; ctx->enc.slice_count = av_clip(avctx->thread_count, 1, FFALIGN(avctx->height, 16) / TEXTURE_BLOCK_H); - ctx->tex_data = av_malloc(ctx->tex_size); + ctx->tex_data = av_mallocz(ctx->tex_size); if (!ctx->tex_data) { return AVERROR(ENOMEM); } -- 2.40.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".