diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-08-25 12:09:32 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-10-02 20:57:19 +0200 |
commit | 0f9148ac9b6588dd18bd20d4a04de316cb84c766 (patch) | |
tree | 97799ea8570e542064565dc485cec6cb92e0fba2 /tests/auto | |
parent | 9af1d11fcf7e0901e1352e5079ebb392155fe73a (diff) |
QRegion: fix a valgrind warning
When:
- i == 0 (at end of current POINTBLOCK),
- numFullPtBlocks == 1 (only one more POINTBLOCK left) and
- iCurPtBlock == 0 (last block contains no points),
Valgrind rightfully complained about an invalid read:
Conditional jump or move depends on uninitialised value(s)
at 0x517B08B: PolygonRegion(QPoint const*, int, int) (qregion.cpp:3480)
Fixed by setting 'next' to nullptr when !numFullPtBlocks OR !iCurPtBlock.
Change-Id: If5225fdfa66f2910a8aafb675cd02b40c0a81ad9
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions