diff options
author | Peter Harris <pharris@opentext.com> | 2014-04-07 14:25:02 -0400 |
---|---|---|
committer | Peter Harris <pharris@opentext.com> | 2014-04-11 17:54:22 -0400 |
commit | c8855746aec2a9b732502da0ca3258b4e701c61a (patch) | |
tree | 172339cda9c98827d8a40c2b43d62f6f7fb57f16 | |
parent | a96cc1f032a059da89319ceccb6659c8edd446fb (diff) |
Fix buffer read overrun
"FreeType" is only eight bytes long. The atom "FreeType\x00\x??" is
probably not what the author intended.
Signed-off-by: Peter Harris <pharris@opentext.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/FreeType/ftfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FreeType/ftfuncs.c b/src/FreeType/ftfuncs.c index 65efefc..a4969d1 100644 --- a/src/FreeType/ftfuncs.c +++ b/src/FreeType/ftfuncs.c @@ -1867,7 +1867,7 @@ FreeTypeAddProperties(FTFontPtr font, FontScalablePtr vals, FontInfoPtr info, i++; info->props[i].name = MakeAtom("RASTERIZER_NAME", 15, TRUE); - info->props[i].value = MakeAtom("FreeType", 10, TRUE); + info->props[i].value = MakeAtom("FreeType", 8, TRUE); info->isStringProp[i] = 1; i++; |