EQMG / Acid

A high speed C++17 Vulkan game engine
https://equilibrium.games
MIT License
1.75k stars 153 forks source link

Fixed a heap corruption caused by out of bounds array element assignm… #89

Closed dreadris closed 4 years ago

dreadris commented 4 years ago

…ent. In the case when contour_count == 1 the j variable got incremented to 1 and the value of variable i was assigned into unallocated memory causing heap corruption (crashed when variable contours was freed at the end of the function)

mattparks commented 4 years ago

This change should also be made in https://github.com/exezin/msdf-c.