From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAE883AA842F; Thu, 17 Nov 2022 14:54:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAE883AA842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668696883; bh=S4pcMjVRG4x8traweU1niNo9rvV+d1+IJYdeHRFsWH4=; h=From:To:Subject:Date:From; b=jllMEy2XRd01ZNbD2x6ul0wVGDlHSyygn1xQFZV+NnUGCTQMPAbldOSdv5tL/Hfzo LxDFuBW+2buprjLGLJOwFd6djniIjNnnRqso70SfirT4vNglC8vXsgx5I/y2dVhd0S Tzm8rcs34JH3FMf5OVC4lNyaKFUI73KachQSN1Ec= From: "ro at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29798] New: symtab.c doesn't compile with 32-bit GCC 12 Date: Thu, 17 Nov 2022 14:54:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29798 Bug ID: 29798 Summary: symtab.c doesn't compile with 32-bit GCC 12 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: ro at gcc dot gnu.org Target Milestone: 13.1 Compiling symtab.c with a 32-bit GCC 12 (12.2.0 on Solaris 11.4 in my case) fails like this: /vol/src/gnu/gdb/hg/master/local/gdb/symtab.c: In member function =E2=80=98std::vector global_symbol_searcher::search() const= =E2=80=99: /vol/src/gnu/gdb/hg/master/local/gdb/symtab.c:4961:44: error: =E2=80=98std:= :sprintf=E2=80=99 may write a terminating nul past the end of the destination [-Werror=3Dformat-overflow=3D] 4961 | sprintf (tmp, "operator%.*s%s", fix, " ", opname); | ^ /vol/src/gnu/gdb/hg/master/local/gdb/symtab.c:4961:23: note: =E2=80=98std::= sprintf=E2=80=99 output between 9 and 2147483648 bytes into a destination of size 2147483647 4961 | sprintf (tmp, "operator%.*s%s", fix, " ", opname); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm uncertain how best to address this. --=20 You are receiving this mail because: You are on the CC list for the bug.=