summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-03-10 14:44:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-15 10:44:56 +0100
commit19532eec2ae1a723e981e3f90730905cabedb9c8 (patch)
treed313baab593a794669c7057c7f6e7c7583966ef3 /src/gui/text/qstatictext.cpp
parent4b0016f045a4f78b8cc9bb6e8ded40db0f8a30ec (diff)
Fix casting and overallocation in qregion.cpp
The POINTBLOCK struct in qregion.cpp is badly defined. By using ints as the base storage of the internal array it forces not only bad casting from int to QPoint, but also allocates an array four times too big. This patch changes to char, since a char pointer may alias anything and this gives the right size of the array. Change-Id: I608eaf39ac7306c71314a139bed6e2352249c0ab Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/gui/text/qstatictext.cpp')
0 files changed, 0 insertions, 0 deletions