summaryrefslogtreecommitdiffstats
path: root/src/gui/util
diff options
context:
space:
mode:
authorAxel Rasmussen <axel.rasmussen1@gmail.com>2014-10-19 11:09:37 -0600
committerAxel Rasmussen <axel.rasmussen1@gmail.com>2014-10-23 07:09:33 +0200
commite5c1572e7eafbce26ca5835c7fe1682bfb69d92b (patch)
tree994e430fe383fa8d8329cb33cac2be180d39089d /src/gui/util
parentc30ccb0ecdfa08fbadfa8bd40a67a0efb6eaadde (diff)
Fix uninitialized value warning in QFontEngineFT.
When running an application which called e.g. QPainter::drawText under Valgrind, it would produce "Conditional jump or move depends on uninitialized value(s)" warnings, since we were allocating a buffer for a FreeType bitmap without initializing its contents. FreeType, apparently, does not set the value of all bytes in a bitmap buffer when it is used as a FT_Bitmap, so we were left with some uninitialized memory which was still being used. This commit fixes these warnings, and prevents any potential undefined behavior. [ChangeLog][QtGui][General] fixed use of uninitialized memory in the FreeType font engine Change-Id: Ia7b3595c78310ce41f76cb4546fc36016c0000a8 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/util')
0 files changed, 0 insertions, 0 deletions