summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsscreen.cpp
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-05-19 19:47:10 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-05-28 10:48:58 +0200
commitbc58e0dc7a378d96472441757250586b71868e62 (patch)
treef713c485fe845f174982c240286190e98db9c89b /src/plugins/platforms/windows/qwindowsscreen.cpp
parentd4d08e009d595ccd308d4390797b031f4296cfee (diff)
Address Coverity defect about buffer overrun
Coverity warned that chunk could be >= tldChunkCount (2), and tldData[chunk] (array of length 2) would be accessed out of bounds. This can not happen, but it was unclear. Clarify logic with comments and asserts, that Coverity will hopefully understand now. Change-Id: I2a38c685cfcbc69ed123918e8cbed360b20b1035 Coverity-Id: 178254 Pick-to: 5.15 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsscreen.cpp')
0 files changed, 0 insertions, 0 deletions