From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from butterfly.birch.relay.mailchannels.net (butterfly.birch.relay.mailchannels.net [23.83.209.27]) by sourceware.org (Postfix) with ESMTPS id 07C41385381A for ; Fri, 7 May 2021 19:30:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 07C41385381A X-Sender-Id: dreamhost|x-authsender|tuliom@ascii.art.br Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3EB246813E2; Fri, 7 May 2021 19:30:52 +0000 (UTC) Received: from pdx1-sub0-mail-a84.g.dreamhost.com (100-96-16-49.trex.outbound.svc.cluster.local [100.96.16.49]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DD8A3680DD9; Fri, 7 May 2021 19:30:40 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|tuliom@ascii.art.br Received: from pdx1-sub0-mail-a84.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.49 (trex/6.2.1); Fri, 07 May 2021 19:30:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|tuliom@ascii.art.br X-MailChannels-Auth-Id: dreamhost X-Thoughtful-Abaft: 7eff04f93f81121a_1620415841540_1628940715 X-MC-Loop-Signature: 1620415841540:2087023922 X-MC-Ingress-Time: 1620415841539 Received: from pdx1-sub0-mail-a84.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a84.g.dreamhost.com (Postfix) with ESMTP id 9FA8286D04; Fri, 7 May 2021 12:30:40 -0700 (PDT) Received: from ascii.art.br (unknown [187.1.62.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: tuliom@ascii.art.br) by pdx1-sub0-mail-a84.g.dreamhost.com (Postfix) with ESMTPSA id A1CE6850F9; Fri, 7 May 2021 12:30:38 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a84 From: Tulio Magno Quites Machado Filho To: Martin Sebor , libc-alpha@sourceware.org Cc: Florian Weimer , Andreas Schwab Subject: Re: [PATCH] more out of bounds checking improvements In-Reply-To: <87h7je99xi.fsf@igel.home> References: <176ba75f-4299-073f-8319-66dbf9fe3f42@gmail.com> <87k0ot9trs.fsf@oldenburg.str.redhat.com> <87v98d6ldm.fsf@oldenburg.str.redhat.com> <2a7e377d-60c8-313b-9422-6cd0b4f5224c@gmail.com> <87h7je99xi.fsf@igel.home> User-Agent: Notmuch/0.31.3 (http://notmuchmail.org) Emacs/27.2 (x86_64-redhat-linux-gnu) Date: Fri, 07 May 2021 16:30:35 -0300 Message-ID: <87bl9mxrxg.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2021 19:30:55 -0000 Andreas Schwab writes: > makedb.c: In function 'write_output': > makedb.c:797:7: error: 'writev' specified size 4294967295 exceeds maximum object size 2147483647 [-Werror=stringop-overflow=] > 797 | if (writev (fd, iov, iov_nelts) != keydataoffset) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from ../include/sys/uio.h:2, > from makedb.c:39: > ../misc/sys/uio.h:52:16: note: in a call to function 'writev' declared with attribute 'read_only (2, 3)' > 52 | extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) > | ^~~~~~ > cc1: all warnings being treated as errors > make[2]: *** [../o-iterator.mk:9: /home/abuild/rpmbuild/BUILD/glibc-2.33.9000.515.g3bf0b4f2cd/cc-base/nss/makedb.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/glibc-2.33.9000.515.g3bf0b4f2cd/nss' > make[1]: *** [Makefile:479: nss/others] Error 2 > make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/glibc-2.33.9000.515.g3bf0b4f2cd' > make: *** [Makefile:9: all] Error 2 I'm also reproducing this on ppc32 with GCC 10. I'm not using -DNDEBUG. -- Tulio Magno