| Summary: | LazyNode comparison can return incorrect results when comparing an empty value | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Basile Clement <basile_clement> | ||||
| Component: | New Bugs | Assignee: | Basile Clement <basile_clement> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | darin, fpizlo, ggaren | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Basile Clement
2015-05-27 16:29:23 PDT
Created attachment 253813 [details]
Patch
Comment on attachment 253813 [details]
Patch
r=me
Committed r184927: <http://trac.webkit.org/changeset/184927> Did this bug have a symptom? Can we make a regression test? (In reply to comment #4) > Did this bug have a symptom? Can we make a regression test? I don't think there is a code path that can trigger this bug in ToT. LazyNode has been introduced recently (http://trac.webkit.org/changeset/184776), and as far as I know, the only place where we are comparing them is when comparing the indexes of HeapLocations, and then only after we ensured the kind/heap/base are equal. As the heap + kind of a HeapLocation determine whether is has an index or not, the comparison of LazyNodes won't be reached in the case where only one is non-null. |