[Webkit-unassigned] [Bug 160823] Dereferenced NULL pointer in StyleResolver

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 14 14:53:29 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=160823

--- Comment #3 from Darin Adler <darin at apple.com> ---
(In reply to comment #2)
> I don't understand how fixing a nullptr dereference can be no change in
> behavior? Dereferencing a nullptr will crash the program, so removing it
> would fix the crash and therefore be testable.  Is that not the case here
> somehow?

Dereferencing a null pointer and then passing the resulting reference does not necessarily crash the program; as you know under the hood references are implemented almost the same way that pointers are.

But Jonathan is using some kind of "undefined behavior testing mode" for clang, and so he was able to detect that the value is null. The rest of us are using clang in its normal compilation mode and like all the other compilers it just passes null to the function, which ignores the passed-in reference.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160814/2a271f09/attachment-0001.html>


More information about the webkit-unassigned mailing list