diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-09-04 15:26:10 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-10-24 13:37:22 +0200 |
commit | 9ab043b6889739ce495c395281774ee2db706dab (patch) | |
tree | f22d28b1e3beb8013b31fb139f3d06eb7b740d19 /dist/changes-4.6.1 | |
parent | f2edc6cb3a12063005c77aae7946f4a07d3bd30c (diff) |
QFileSystemEngine: Consistently check for invalid file names
stat() and friends expect a null-terminated C string. There is no way to
generate anything useful from a string that has null bytes in the
middle. It's important to catch this early, as otherwise, for example, a
QDir::exists() on such a path can return true, as the path is silently
truncated.
Extend the checks for empty file names to windows and add checks for null
bytes.
Change-Id: Ie9794c3a7c4fd57f9a66bdbbab8b45a08b6f9170
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'dist/changes-4.6.1')
0 files changed, 0 insertions, 0 deletions