[Bug 50875] New: HTMLElement_get_offsetParent crashes wine if a NULL offset parent is expected (VbsEdit)

WineHQ Bugzilla wine-bugs at winehq.org
Sat Mar 27 23:18:18 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=50875

            Bug ID: 50875
           Summary: HTMLElement_get_offsetParent crashes wine if a NULL
                    offset parent is expected (VbsEdit)
           Product: Wine
           Version: 6.3
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mshtml
          Assignee: wine-bugs at winehq.org
          Reporter: dimaki at rocketmail.com
      Distribution: ---

This issue effects an html help file which ships with VbsEdit. 

The body html element has a NULL offset parent. Attempting to retrieve it
causes a null dereference crash in wine, but not in IE on Windows. Here is
sample html code to reproduce the problem. In IE clicking the button produces
no result while wine crashes.

<!DOCTYPE html>
<html>
<body>
<p>Click the button to get the offsetParent for the body tag.</p>
<p><button onclick="testFunction()">Click</button></p>
<script>
function testFunction() {
    document.body.offsetParent;
}
</script>
</body>
</html>



I have a patch with a fix which I will send in shortly.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list