| Index: third_party/harfbuzz-ng/src/hb-shaper.cc
|
| diff --git a/third_party/harfbuzz-ng/src/hb-shaper.cc b/third_party/harfbuzz-ng/src/hb-shaper.cc
|
| index 580b95c84b4d0d30d9da923a6349d6a34a3ebeb6..b25566d8a7cf0e662bf3c1962b5026795e3ef7a0 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-shaper.cc
|
| +++ b/third_party/harfbuzz-ng/src/hb-shaper.cc
|
| @@ -64,7 +64,7 @@ retry:
|
| }
|
|
|
| /* Not found; allocate one. */
|
| - shapers = (hb_shaper_pair_t *) malloc (sizeof (all_shapers));
|
| + shapers = (hb_shaper_pair_t *) calloc (1, sizeof (all_shapers));
|
| if (unlikely (!shapers)) {
|
| (void) hb_atomic_ptr_cmpexch (&static_shapers, NULL, &all_shapers[0]);
|
| return (const hb_shaper_pair_t *) all_shapers;
|
|
|