)]}' { "commit": "11975fe9f6ed92b7630698e599b936a0186d965d", "tree": "dde1eee4d075b2b989578a717fb54746d94c9cc2", "parents": [ "149b9055e61d9c46937d3b0cc5727e75484ed042" ], "author": { "name": "Ben Wagner", "email": "bungeman@google.com", "time": "Sat Feb 29 20:18:00 2020 +0100" }, "committer": { "name": "Werner Lemberg", "email": "wl@gnu.org", "time": "Sat Feb 29 20:29:14 2020 +0100" }, "message": "Fix state of `FT_Face\u0027 for buggy `gvar\u0027 tables (#57923).\n\nBy resetting the blend as implemented with this commit fonts with\ninvalid `gvar\u0027 tables may keep calling into `ft_var_load_gvar\u0027 from\n`tt_set_mm_blend\u0027 and failing, but the font was invalid anyway and\nwe want to keep seeing the failure in `tt_set_mm_blend\u0027.\n\n* src/truetype/ttgxvar.c (ft_var_load_gvar): Calculate length of\noffset array once.\nAllocate arrays after `FT_FRAME_ENTER\u0027 (extra check before\nallocating and avoid needing to free array later if error entering\nframe).\nAlways call `FT_FRAME_EXIT\u0027.\nConsistently set counts immediately after array initialized.\nReset the blend (particularly `blend-\u003eglyphoffsets\u0027) on failure.\n", "tree_diff": [ { "type": "modify", "old_id": "2886b700042b20bf01b378e88beeb7c1d2844a52", "old_mode": 33188, "old_path": "ChangeLog", "new_id": "6bbb9576ab78f9ac0c594e9cb7d6d137d88d0688", "new_mode": 33188, "new_path": "ChangeLog" }, { "type": "modify", "old_id": "ce6b62e1f3a31412cc6774534c32d9e326fc8298", "old_mode": 33188, "old_path": "src/truetype/ttgxvar.c", "new_id": "110f24a11612561434996d9f166c1e3a9b8ca75c", "new_mode": 33188, "new_path": "src/truetype/ttgxvar.c" } ] }