diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-03-04 11:14:04 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-03-06 22:57:22 +0100 |
| commit | a817ba8e9c42dfffd31eb26ac522488c2a4ec61e (patch) | |
| tree | 7f417432d342822db477f63efdb86b58a198a49f /src/corelib/text/qstring.cpp | |
| parent | f142bd121c5be67a5701c849cea25e7abe4cd720 (diff) | |
QZip: fix Coverity warning about reading uninit'ed fields from z_stream
Coverity complains that inflateInit2() will read stream.opaque, which
wasn't initialized by us. At least in the copy of zlib that is
contained in Qt, this is false.
But xxflate() in qbytearray.cpp value-initializes its z_stream (and
therefore doesn't manually need to set .zalloc and .zfree), so do that
here, too.
Amends the start of the public history.
Pick-to: 6.9 6.8 6.5
Coverity-Id: 310213
Change-Id: I487072a0d2375a932f3ffb9a1f252fec9e2f2d0d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
0 files changed, 0 insertions, 0 deletions
