diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-09-06 16:53:23 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-09-07 13:00:23 +0200 |
| commit | c97bcaaa1aa95570bd4911294bc8a0cb557b168d (patch) | |
| tree | f04eb402d54549404d29e2ef9a98ca1907ff70d8 /src/testlib/doc/snippets/code/code.pro | |
| parent | 3b1a2448dfe5d8e0c7493d1a512775a6d12dd652 (diff) | |
qUncompress: statically assert that arithmetic overflow cannot occur
... because the limit we check against, doubled, is still within the
range of size_t.
Took me a while to prove this to myself, so document the finding in a
static assertion.
Pick-to: 6.4 6.3 6.2
Change-Id: Ib2d1bb825c1693ccc4ffa1d8fc0bd455a170337f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
