mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-06 07:00:16 +08:00
The default constructor exists for the dynamic event creation machinery
and leaves m_cell and m_bLinkWasClicked indeterminate, so reading either
one from an event created that way was undefined behaviour and UBSAN
reported it as
include/wx/html/htmlwin.h:603:5: runtime error: load of value 93,
which is not a valid value for type 'bool'
Fix this by always initializing these fields, which also allows to
remove initialization of one of them in the non-default ctor.
See #26968.
Co-authored-by: Vadim Zeitlin <vadim@wxwidgets.org>