diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-31 11:25:54 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-02-02 12:17:24 -0800 |
| commit | 40dd38813cba4bc8425e846f220e358ffb0d19ac (patch) | |
| tree | a6f2ffc9f2d5dcaf5eb1b0affe0b02ca3318f50c /src/corelib/global/qnumeric.cpp | |
| parent | bfe42ebdeb6f39e3fe21ab727e13ab0e08c7f76a (diff) | |
QMimeDatabase: don't stat() something that isn't a local file
We must check that the path is an actual file on the filesystem before
using native APIs. This regression was introduced by commit
047d8f36de45ebb318726167f941b0dbc64754ba.
[ChangeLog][QtCore][QMimeDatabase] Fixed a regression from 6.4.0 that
made certain QMimeDatabase functions that inspected file contents to fail
on Unix systems, if the file was not a native file (e.g., a Qt resource).
Fixes: QTBUG-110707
Pick-to: 6.4 6.5
Change-Id: I570832c9ac8b4e03bde8fffd173f7b4c6b164192
Reviewed-by: Igor Kushnir <igorkuo@gmail.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/global/qnumeric.cpp')
0 files changed, 0 insertions, 0 deletions
