Skip to content

[cff] Commit vstore data and regions on allocation

Ben Wagner requested to merge bungeman/freetype:cff_vstore_load_cleanup into master

The vstore->regionCount and vstore->dataCount were read directly from the data. However, vstore->varRegionList and vstore->varData would still contain uninitialized entries with uninitialized pointers in the event of an error, leading to issues when attempting to clean up.

  • src/cff/cffload.c (cff_vstore_load): read the region and data counts into locals and update the vstore counts immediately after each entry becomes free-able.

Merge request reports