public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/27418] New: DW_FORM_implicit_const handling in checksum_die missing attribute hashing
@ 2021-02-14 21:33 vries at gcc dot gnu.org
  2021-02-14 22:30 ` [Bug default/27418] " mark at klomp dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-14 21:33 UTC (permalink / raw)
  To: dwz

https://sourceware.org/bugzilla/show_bug.cgi?id=27418

            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 != CK_BAD)
            {
              handled = true;
              die->u.p1.die_hash
                = iterative_hash_object (t->values[i], die->u.p1.die_hash);
            }
          break;
...

Normally, we have something like:
...
              s = t->attr[i].attr;
              die->u.p1.die_hash
                = iterative_hash_object (s, die->u.p1.die_hash);
              die->u.p1.die_hash
                = 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-15 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14 21:33 [Bug default/27418] New: DW_FORM_implicit_const handling in checksum_die missing attribute hashing vries at gcc dot gnu.org
2021-02-14 22:30 ` [Bug default/27418] " mark at klomp dot org
2021-02-15 12:24 ` vries at gcc dot gnu.org
2021-02-15 13:20 ` mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).