From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98607 invoked by alias); 27 Feb 2017 12:47:06 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 98590 invoked by uid 89); 27 Feb 2017 12:47:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=8:ra, 8:=bd?= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Feb 2017 12:47:03 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 081F681247; Mon, 27 Feb 2017 12:47:04 +0000 (UTC) Received: from [10.36.117.102] (ovpn-117-102.ams2.redhat.com [10.36.117.102]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1RCl2i1029373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Feb 2017 07:47:03 -0500 Subject: Re: [PATCH 1/4] Fix format-overflow errors To: Daniel Black , binutils@sourceware.org References: <1487810145-3339-1-git-send-email-daniel.black@au.ibm.com> From: Nick Clifton Message-ID: <54cf0464-85da-8b14-f5e5-b3a21b9fc8bd@redhat.com> Date: Mon, 27 Feb 2017 12:47:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1487810145-3339-1-git-send-email-daniel.black@au.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00369.txt.bz2 Hi Daniel, > ../../binutils-gdb/binutils/prdbg.c: In function �pr_array_type�: > ../../binutils-gdb/binutils/prdbg.c:500:16: error: �sprintf� may write a terminating nul past the end of the destination [-Werror=format-overflow=] > sprintf (buf, "%ld", (long) vma); > ^~~~~ > ../../binutils-gdb/binutils/prdbg.c:500:2: note: �sprintf� output between 2 and 21 bytes into a destination of size 20 > sprintf (buf, "%ld", (long) vma); This has already been fixed by commit: 98a4fc78f9dab76b5ada3551a7bef36db8a3ed05 Cheers Nick