Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.0
-
None
-
b8b732b9c65c02ee542885e5d6fe9bd1589a6b1a
Description
This simple scenario leads to AV:
QAuthenticator s1, s2; s1.setUser("User"); if (s2 == s1) {}
Reason is QAuthenticator::operator== implementation:
bool QAuthenticator::operator==(const QAuthenticator &other) const { if (d == other.d) return true; return d->user == other.d->user && d->password == other.d->password && d->realm == other.d->realm && d->method == other.d->method && d->options == other.d->options; }
In this scenario d is null.