<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Binding NULL pointer to reference in WebCore::RenderObject"
href="https://bugs.webkit.org/show_bug.cgi?id=160830#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Binding NULL pointer to reference in WebCore::RenderObject"
href="https://bugs.webkit.org/show_bug.cgi?id=160830">bug 160830</a>
from <span class="vcard"><a class="email" href="mailto:jbedard@apple.com" title="Jonathan Bedard <jbedard@apple.com>"> <span class="fn">Jonathan Bedard</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=160830#c8">comment #8</a>)
<span class="quote">> Please add a test which causes the null reference to be created.</span >
The tests actually already exist, js/dom/script-start-end-locations.html and js/dom/cross-frame-symbols.html, for example, both cause this to happen (these are by no means an exhaustive list).
This bug was caught with Clang's undefined behavior sanitizer, which I am running locally. Currently, for a number of reasons, we cannot run the undefined behavior sanitizer on our build machines. Since this bug was the result of converting a NULL pointer to a reference and then back to a pointer, the above tests did not cause a crash.
I'm not sure how to test this, unless the undefined behavior sanitizer is integrated to our testing framework, which is a possible long term plan, but won't happen in the near future.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>