From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: scratch/igc warning Date: Wed, 26 Jun 2024 14:31:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 26 17:49:37 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sMUts-0000C2-Ex for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Jun 2024 17:49:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMUta-0007PZ-Vm; Wed, 26 Jun 2024 11:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMTgD-0005pQ-7h for emacs-devel@gnu.org; Wed, 26 Jun 2024 10:31:25 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMTgA-00019q-Ge; Wed, 26 Jun 2024 10:31:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719412271; x=1719671471; bh=tFcXJMF2T/kDqhXE3BJbkksfPZhVkxX/4bgH1vzstX4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=kouscav1fM0+fUTjZ7vAh6JFQfiKN9ZopQ1t0mZ8JTbGIQzcleslBwTAdEx604csy aik9wR6wKFUULDeZk9k7i9J0N8GSGIBj/MMl25shQdP/eZcVmTd96Ym5qWauWRnQME ivcqfxpaxyIKLTyZ1LqTRVQY60h1oZe/SSoGsaVvjCsBry84cRb/rVlS95LMFao8Ps 0lqcOH05I9eW+VgYKwnIyq1cum4VvVU+4AtGAinywbC7naE27fLdp0QPe/RYE5DdWi /r3XDwZY0VhovS00SUumRpgMWR2r8goOT3CKnbTAhlva0WeSj9vGiixQoNY2Dmctho 4f/U5lrT05lJw== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 48f3166e52e687a205fa751e3ba081cc36f4a5a0 Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 26 Jun 2024 11:49:12 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320721 Archived-At: On Wednesday, June 26th, 2024 at 14:08, Andrea Corallo w= rote: > GCC 12.3 is giving me this warning building scratch/igc: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D > CC xfaces.o > In file included from /usr/include/string.h:535, > from ../lib/string.h:41, > from lisp.h:29, > from xfaces.c:226: > In function =E2=80=98memset=E2=80=99, > inlined from =E2=80=98make_realized_face=E2=80=99 at xfaces.c:4581:3, > inlined from =E2=80=98realize_gui_face=E2=80=99 at xfaces.c:6214:10, > inlined from =E2=80=98realize_face=E2=80=99 at xfaces.c:6124:12: > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:10: warning: = =E2=80=98__builtin_memset=E2=80=99 offset [164, 303] from the object at = =E2=80=98face=E2=80=99 is out of the bounds of referenced subobject = =E2=80=98id=E2=80=99 with type =E2=80=98int=E2=80=99 at offset 160 [-Warray= -bounds] > 59 | return __builtin___memset_chk (__dest, __ch, __len, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 60 | __glibc_objsize0 (__dest)); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from termhooks.h:27, > from frame.h:22, > from xfaces.c:229: > dispextern.h: In function =E2=80=98realize_face=E2=80=99: > dispextern.h:1730:7: note: subobject =E2=80=98id=E2=80=99 declared here > 1730 | int id; > | ^~ > In function =E2=80=98memset=E2=80=99, > inlined from =E2=80=98make_realized_face=E2=80=99 at xfaces.c:4581:3, > inlined from =E2=80=98realize_tty_face=E2=80=99 at xfaces.c:6641:10, > inlined from =E2=80=98realize_face=E2=80=99 at xfaces.c:6126:12: > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:10: warning: = =E2=80=98__builtin_memset=E2=80=99 offset [164, 303] from the object at = =E2=80=98face=E2=80=99 is out of the bounds of referenced subobject = =E2=80=98id=E2=80=99 with type =E2=80=98int=E2=80=99 at offset 160 [-Warray= -bounds] > 59 | return __builtin___memset_chk (__dest, __ch, __len, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 60 | __glibc_objsize0 (__dest)); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~ > dispextern.h: In function =E2=80=98realize_face=E2=80=99: > dispextern.h:1730:7: note: subobject =E2=80=98id=E2=80=99 declared here > 1730 | int id; > | ^~ > In function =E2=80=98memset=E2=80=99, > inlined from =E2=80=98make_realized_face=E2=80=99 at xfaces.c:4581:3, > inlined from =E2=80=98realize_face=E2=80=99 at xfaces.c:6130:14: > /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:10: warning: = =E2=80=98__builtin_memset=E2=80=99 offset [164, 303] from the object at = =E2=80=98face=E2=80=99 is out of the bounds of referenced subobject = =E2=80=98id=E2=80=99 with type =E2=80=98int=E2=80=99 at offset 160 [-Warray= -bounds] > 59 | return __builtin___memset_chk (__dest, __ch, __len, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 60 | __glibc_objsize0 (__dest)); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~ > dispextern.h: In function =E2=80=98realize_face=E2=80=99: > dispextern.h:1730:7: note: subobject =E2=80=98id=E2=80=99 declared here > 1730 | int id; > | ^~ > =3D=3D=3D=3D=3D=3D=3D=3D >=20 > ATM don't know if it's a real issue or a false positive so I thought was > worth mentioning. Something in between: the code is trying to clear a struct partially by mem= setting starting from a given offset to the end of the struct. However, it'= s not specific to the igc branch. Pip