vcl/source/fontsubset/ttcr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2c1382a4e41fd5a9a6617685c210f2f74f7913cb Author: Caolán McNamara <[email protected]> AuthorDate: Tue Mar 1 09:35:34 2022 +0000 Commit: Thorsten Behrens <[email protected]> CommitDate: Wed Mar 2 22:27:00 2022 +0100 ofz: glyph data must be at least 10 bytes long to be useful Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130767 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins (cherry picked from commit b228045cf3fb50128fd40a8f26376443ad22f874) Change-Id: I312c33c598013feced15c6f2dbcc66e493b703e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130874 Tested-by: Michael Stahl <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx index 44d53ff10a23..e80260160c45 100644 --- a/vcl/source/fontsubset/ttcr.cxx +++ b/vcl/source/fontsubset/ttcr.cxx @@ -1251,7 +1251,7 @@ static void ProcessTables(TrueTypeCreator *tt) /* printf("IDs: %d %d.\n", gd->glyphID, gd->newID); */ - if (gd->nbytes != 0) { + if (gd->nbytes >= 10) { z = GetInt16(gd->ptr, 2); if (z < xMin) xMin = z;
