summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-07-18 14:03:39 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-07-20 22:55:55 +0200
commit4c5b437a3ce84354dfa3bf2c4706e05144ac03a3 (patch)
tree9b9f2ba932bf9a458f6edc0a05857e1e1e141877 /src/corelib/io/qdebug.cpp
parent7ffb4c16955a60ffc0f32d990c70476c49ed0b0b (diff)
qtesttostring.h: don't write 32..256B 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 stack buffer with NULs beforehand. Leave it uninitialized. The code was moved in 4ae6f40b3a2e2fe4f617a1c911c8d066c18cdab9, so not picking further than that. Pick-to: 6.8 Change-Id: I34d456ebd2990aa242ccc42693adbbf1f64148de Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
0 files changed, 0 insertions, 0 deletions