mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[shape-plan] Return empty plan if buffer direction is invalid
Happens if buffer creation failed.
This commit is contained in:
1 parent
a441c6c16b
commit
eba626ff6a
1 file changed
+2
-1
@@ -231,7 +231,8 @@ hb_shape_plan_create2 (hb_face_t *face,
|
||||
num_coords,
|
||||
shaper_list);
|
||||
|
||||
assert (props->direction != HB_DIRECTION_INVALID);
|
||||
if (unlikely (props->direction == HB_DIRECTION_INVALID))
|
||||
return hb_shape_plan_get_empty ();
|
||||
|
||||
hb_shape_plan_t *shape_plan;
|
||||
|
||||
|
||||
Reference in new issue
Block a user