diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-07-18 08:55:08 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-07-21 02:57:37 +0200 |
| commit | 47c2263e896408e733c9aa466aec388cc4b4a6ad (patch) | |
| tree | 144a85aec28361f2ca13b5038ced87ce2daf3dee /src/corelib/io/qdebug.cpp | |
| parent | 13244eef6c913bb7f27cd8fbf459f5dfe9a0ed21 (diff) | |
QPROPERTY_TEST_COMPARISON_HELPER: don't write 1KiB of NULs
qsnprint() is unconditionally called to fill the buffer and is
guaranteed to NUL-terminate, so there's no point in filling the whole
1KiB stack buffer with NULs beforehand. Leave it uninitialized.
Amends 930e59b798d9e3d08e17440980d33a08fb411cbe.
Pick-to: 6.8 6.7 6.5 6.2
Change-Id: I7da859d609ad4492c9038cb3e14f2a721b2acbe4
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
0 files changed, 0 insertions, 0 deletions
