Message ID | Y1jhW48kuVC8Ig2d@squeak.grove.modra.org |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp107214wru; Wed, 26 Oct 2022 00:27:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46TtLbA1JGOxZ4hAsYdT7TS+GJFcEEzpbKr5FYSAaMIW3vqwxojWiGfPTqmEFrs4F3TSll X-Received: by 2002:a05:6402:3806:b0:450:bad8:8cd5 with SMTP id es6-20020a056402380600b00450bad88cd5mr40579471edb.305.1666769267492; Wed, 26 Oct 2022 00:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666769267; cv=none; d=google.com; s=arc-20160816; b=qvqaber/19gs3UnASSsT1cifVJGHwuHCy01B9i0lYgZuq+OMMOGySZQxkM88c62kpC tHDNNCJV2WMB8QzOXMVSbhOL9lMRat+M51EFOk234tb9LQ5oQ1Lfiua6yza6Ce+qdeF5 FEnqtZOs1W7sR8FQQLeDuT8sqFqND/XgZE9AZafqpcr5VzqyU9bHgV2Hpt4K4hmI9XVW Gg1okYym+RX4N2oMoomMVxAKYSsQX966NlKjhX+8J8i3tyI28IIXdK8008CDyxOVCvNj qPQqjJE23EIB7Ubee6BU0/JMfB0asrMS545IFSg0YaOWb1aLOvc5gMOlzUH2p+5TZbF1 Ts0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=29+dgplm/FMaxpNiHgLin3S1igjMmluklwW7f4iOGrw=; b=tsPK5cs5WuItqgQOmfgCAKNNFCPmUOpi7FSj/DbzowWcnk4RJcYhrwUXmfpPXO3VYB Vcf1gGi8CLFGJk3ErgwOK4bxWS7r3sY3cr78wRQWwm4IlOBAkYMlsfRvUdjKXA9Kig5e DN64Ra1oZxp2XsVDdH9xpZ6e5aiJL6tQfQ+O8t4KfTiQBYybV45CXVdMr3l4zf+be3Vy wpxqA9aSsfglHIU2B47+7GREbjafMU0U1lIxrK+cDlqUPZhGUByjCy2FGy7TP79/AMgG 7yQpuhJ/chk1sQRHJ5K7Kvrkb6nl+944gpyUX7QkOxiTHiTciKn8UGQLe6YSPpmCj1lx f4Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=GAxcPY5q; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hr18-20020a1709073f9200b00782b261ea21si5647307ejc.729.2022.10.26.00.27.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 00:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=GAxcPY5q; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D96B384B81F for <ouuuleilei@gmail.com>; Wed, 26 Oct 2022 07:27:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D96B384B81F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666769266; bh=29+dgplm/FMaxpNiHgLin3S1igjMmluklwW7f4iOGrw=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GAxcPY5qcX2V50D4ypzCou7Ta1/YS3qaDzGGRqZVv4FPb2RpHsZ7tJkWdcR1WmaoR 9jTZ7DYMoir1MrUgpUccRu1TavifKmuuO194ImULncLj2uhZ3yAmOYFARBO9Ea0Gsu ANkIS1A17hW06hxKc+R27FznmXLQyN1/clw/KMRI= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 593683856DE2 for <binutils@sourceware.org>; Wed, 26 Oct 2022 07:27:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 593683856DE2 Received: by mail-pl1-x62c.google.com with SMTP id p3so12289262pld.10 for <binutils@sourceware.org>; Wed, 26 Oct 2022 00:27:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=29+dgplm/FMaxpNiHgLin3S1igjMmluklwW7f4iOGrw=; b=D8I1Vyr6WNZ3qPjViad4lrG2iUHJTd9ZxwTT4FXyhq7WyVsqLOlKI7Bhf0oCpJTFhy IFNnEt5RSmpOMKU4ncD8pf1NngkPAoU21dHfd0NvNRw4udk26+wsUrCFcMgTjvoahCDk VADGR0O2eC9pFijDkN1BBjVGk/dfeGKoxJMX3lF8meH5Z359uBe3Y8xyRbhdeVaDCURl y+MvjiaMGFEZU8v8/gzkOi07zOweIq37bIc9NRUMbWCvYVPGwoRPpxhxXOKDnFx3ajCx MqV5RCZ5m0qQGkHteZdxmFsA7In184bamhKETr1EZjoBN1wn7YCTHFWAcVI4zZxpRj74 k+8A== X-Gm-Message-State: ACrzQf0a0H5oQEjKcziib2M7gRzPJMEw9s8PpsJMvtWCorMssgxKYmmG qi4I7MhG29LdozRSeZFxkHFH3gB6cpU= X-Received: by 2002:a17:902:8212:b0:186:a260:50a0 with SMTP id x18-20020a170902821200b00186a26050a0mr15613362pln.157.1666769256019; Wed, 26 Oct 2022 00:27:36 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:a3ea:1d22:1394:10bb]) by smtp.gmail.com with ESMTPSA id m15-20020a17090a158f00b00212d4c50647sm628316pja.36.2022.10.26.00.27.28 for <binutils@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 00:27:31 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id B08121141EBA; Wed, 26 Oct 2022 17:57:23 +1030 (ACDT) Date: Wed, 26 Oct 2022 17:57:23 +1030 To: binutils@sourceware.org Subject: buffer overflow in _bfd_XX_print_ce_compressed_pdata Message-ID: <Y1jhW48kuVC8Ig2d@squeak.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3035.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Alan Modra via Binutils <binutils@sourceware.org> Reply-To: Alan Modra <amodra@gmail.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747734251601900362?= X-GMAIL-MSGID: =?utf-8?q?1747734251601900362?= |
Series |
buffer overflow in _bfd_XX_print_ce_compressed_pdata
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Alan Modra
Oct. 26, 2022, 7:27 a.m. UTC
More fuzzed fun. * peXXigen.c (_bfd_XX_print_ce_compressed_pdata): Use smaller of virt_size and bfd section size as limit of function table.
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index c5a7f7bf7ac..0232a63d558 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -2026,6 +2026,8 @@ _bfd_XX_print_ce_compressed_pdata (bfd * abfd, void * vfile) } start = 0; + if (stop > datasize) + stop = datasize; for (i = start; i < stop; i += onaline) {