Message ID | 20240711233417.1896879-11-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:2298:b0:482:c625:d099 with SMTP id fp24csp489433vqb; Thu, 11 Jul 2024 16:44:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXtGWymaafuogod51qHCVy6DzhxMDPCaIXbI3fR+OdIhsOv9prAMzALGUMNJ2kCnMxG3b3ouXktWI9SDqzsvQgSbdkgNqoVAtLzEw== X-Google-Smtp-Source: AGHT+IG0OntvNSx/xlhZBoc+nwwtWhnvQmGAhHn6ksKCvA1gXuy1RGqGz5WUocArYV70kKOK2rwh X-Received: by 2002:a2e:95ce:0:b0:2ee:86c1:f743 with SMTP id 38308e7fff4ca-2eeb30e36a2mr57794111fa.15.1720741455091; Thu, 11 Jul 2024 16:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720741455; cv=none; d=google.com; s=arc-20160816; b=r5pjrPf1nCg6IyP+dAhu+4zRVSjW/5puMrhvLBABRT3HCHaCVeWJPs5IeV8yZxjcQE Y0ujfa1zBs7atMaal+Yt92CRGCp4cMiatjur//mMAmENGMp3I6u8VUFiwqWuU4DKkRzO H9k6xFzQ9IeNwD2QVz9t7zvHBVFaIx5gB5xdglyN5b06xwaDKsGu9jZXwecXVdOt1TLw jVkmKh6VgezvgX+Uds947PdBIouFxNkgK/883xQqxSRu0IuKuLQ8KctsT+++YjAcNmol yOjT+azZI61HnkG+H27wZz1CY9hfFU82UljfZujGaj9x4rkxDwsS9HFER4XXgH7yIpCm T+oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=ghD4IwcDtIC2ZFoVW6Lb0TKEbM/QNMAW1YSxiigF1gI=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=LalZ4IzerGydE4sebmDMApZw91RxzBbHzEVBZFdbBdW3CCrKENnLxmn8B1d6cnEVNu Yp4Fbq1PTSyDn4w5vKU3Zdc/frMT4/rtDzHwXmvT2gjoho2w7SdjjONgtqzYgwy2MzVB ltVDkyVTgP9lqdu8dEcIwHwbo1X2aVpAwamGjq7wejh8sDDLFTDImkO5l9n4KguFr+VT lYrab3HLw2ogoUpXHKSo2Kx2eE/0q4Ht7SxGclMWuVMghC5HrLVT1iOX46kzrkJsASgJ Vbs92KGt6Z41X+L0HK5S+SZNNuq+jSwI2nRXlaoI2ibj0FWI+uEtDwtnJwasy/nsHAE2 pJPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=nkEZEW4N; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-594bda3a6ddsi3831779a12.230.2024.07.11.16.44.14; Thu, 11 Jul 2024 16:44:15 -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=@niedermayer.cc header.s=gm1 header.b=nkEZEW4N; 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 7673A68DB68; Fri, 12 Jul 2024 02:34:33 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1F71D68DB4B for <ffmpeg-devel@ffmpeg.org>; Fri, 12 Jul 2024 02:34:27 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 310CA40005 for <ffmpeg-devel@ffmpeg.org>; Thu, 11 Jul 2024 23:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720740867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c409JcZJD1K4HPBdp0mKugHbegD33BV4pMLbLRQa6YI=; b=nkEZEW4NCrNZnnq4Htof20sm6Hsf2qzkLFcUzH1WuqNWgVnvIfHkW3eixBkS++oOeuhu6h UYSWE638j8QSp+XgiYHsd7sUbjcc0Z+MkQLedrbj7XzTGQgVHILBf3Zk0CMEQSasqPkI0c ct1trHEaHoAVYJt0mTPUrKipZgm5FNwT5CUa84gYEk846rmQ7lDZOBW4GMZmFdHPnneeY0 wpuwcAt6GHYIpFTxz5iOE+FbC2UqYLrNqv36zg8Bc+1r16v3HnHk4sLVrBw7dm/oIxLWyX xnEuLEPasSIJHff9LkFTuDlWCbQeRRu3s4gEL72NSnlzv1oE76themERgqcL8w== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 12 Jul 2024 01:34:05 +0200 Message-ID: <20240711233417.1896879-11-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240711233417.1896879-1-michael@niedermayer.cc> References: <20240711233417.1896879-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 11/22] avformat/sapdec: Check ffurl_get_file_handle() for error X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: 6t0KVzGsx0S5 |
Series |
[FFmpeg-devel,01/22] avformat/asfdec_o: Check size of index object
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index 357c0dd5147..d5b5d71c020 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -198,6 +198,9 @@ static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt) struct pollfd p = {fd, POLLIN, 0}; uint8_t recvbuf[RTP_MAX_PACKET_LENGTH]; + if (fd < 0) + return fd; + if (sap->eof) return AVERROR_EOF;
Fixes: CID1604506 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/sapdec.c | 3 +++ 1 file changed, 3 insertions(+)