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@winehq.org Reporter: dimaki@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.