QFontDatabase: Guard against Null-dereference READ
Fixes: oss-fuzz-23112 Pick-to: 5.15 Change-Id: I06818d8642067cd510a513838e7851eb8b322aef Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
7e03bc39b8
commit
9e51974d9b
|
|
@ -2321,7 +2321,7 @@ bool QFontDatabase::removeAllApplicationFonts()
|
|||
QMutexLocker locker(fontDatabaseMutex());
|
||||
|
||||
QFontDatabasePrivate *db = privateDb();
|
||||
if (db->applicationFonts.isEmpty())
|
||||
if (!db || db->applicationFonts.isEmpty())
|
||||
return false;
|
||||
|
||||
db->applicationFonts.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue