diff options
author | Jonathan Liu <net147@gmail.com> | 2012-08-15 14:31:39 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-27 11:29:38 (GMT) |
commit | 9520674b0f02aac55da6d98a6c56c74ce240cca6 (patch) | |
tree | cfb727d96ebb9db0f50e741517109e3f2c848517 /tests | |
parent | 1b3a74e74237d004527c3f296b7ec65365be0f25 (diff) | |
download | Qt-9520674b0f02aac55da6d98a6c56c74ce240cca6.zip Qt-9520674b0f02aac55da6d98a6c56c74ce240cca6.tar.gz Qt-9520674b0f02aac55da6d98a6c56c74ce240cca6.tar.bz2 |
QGLGlyphCache: Fix texture buffer overrun
The QGLGlyphCache::cacheGlyphs function reallocates a larger texture
when there is no more room to insert a newly rendered glyph. However,
the glyph width used to check whether reallocation is needed is not the
same as the actual glyph image width and may be less. When the glyph
image is then copied into the texture, a buffer overrun may occur.
Task-number: QTBUG-23584
Change-Id: I71d6cd987b7519e5235109c14a5a35e452332417
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions