From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 232643858002; Sun, 14 Feb 2021 21:33:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 232643858002 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27418] New: DW_FORM_implicit_const handling in checksum_die missing attribute hashing Date: Sun, 14 Feb 2021 21:33:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc 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 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2021 21:33:33 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27418 Bug ID: 27418 Summary: DW_FORM_implicit_const handling in checksum_die missing attribute hashing Product: dwz Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- This is something that I don't get: ... case DW_FORM_implicit_const: if (!handled && die->die_ck_state !=3D CK_BAD) { handled =3D true; die->u.p1.die_hash =3D iterative_hash_object (t->values[i], die->u.p1.die_hash= ); } break; ... Normally, we have something like: ... s =3D t->attr[i].attr; die->u.p1.die_hash =3D iterative_hash_object (s, die->u.p1.die_hash); die->u.p1.die_hash =3D iterative_hash_object (value, die->u.p1.die_hash); ... so we hash in both the attribute tag and the attribute value. Why don't we hash in the attribute tag for DW_FORM_implicit_const? This sound like a bug that makes hash collisions more likely. --=20 You are receiving this mail because: You are on the CC list for the bug.=