vcl/source/fontsubset/ttcr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e2969df08f165fd39654a2f0fb3dcee9885703a3 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Mar 1 09:35:34 2022 +0000 Commit: Michael Stahl <[email protected]> CommitDate: Tue Mar 1 18:29:25 2022 +0100 ofz: glyph data must be at least 10 bytes long to be useful Change-Id: I312c33c598013feced15c6f2dbcc66e493b703e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130686 Tested-by: Jenkins Reviewed-by: Michael Stahl <[email protected]> diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx index d4ff5f413ede..86dc02206e92 100644 --- a/vcl/source/fontsubset/ttcr.cxx +++ b/vcl/source/fontsubset/ttcr.cxx @@ -1270,7 +1270,7 @@ static void ProcessTables(TrueTypeCreator *tt) /* printf("IDs: %d %d.\n", gd->glyphID, gd->newID); */ - if (gd->nbytes != 0) { + if (gd->nbytes >= 10) { sal_Int16 z = GetInt16(gd->ptr, 2); if (z < xMin) xMin = z;
