Details
Description
The optimized version of setAddress introduced in Qt 5.8 does not detach the shared data, so it may destroy a referenced object.
QHostAddress copy = m_address; copy = QHostAddress::AnyIPv4;
copy and m_address are set to QHostAddress::AnyIPv4 now.
Attachments
For Gerrit Dashboard: QTBUG-63764 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
208397,3 | QHostAddress::setAddress - fix an overload taking SpecialAddress | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |