Skip to content
Myr

stb_truetype: fix bug in handling of stbtt_hheap that could cause severe badness

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent db4d928 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:stb_truetype.h+2 added-2 removed
41 unmodified lines
42// Johan Duparc Thomas Fields43// Hou Qiming Derek Vinyard44// Rob Loach Cort Stratton45// Kenney Phillis Jr. github:oyvindjam46// github:vassvik46// Brian Costabile github:vassvik47// 48// VERSION HISTORY49//50// 1.18 (2018-01-29) add missing function
2360 unmodified lines
2411 hh->head = c;2412 hh->num_remaining_in_head_chunk = count;2413 }2414 --hh->num_remaining_in_head_chunk;2415 return (char *) (hh->head) + size * hh->num_remaining_in_head_chunk;2415 return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk;2416 }2417}24182419static void stbtt__hheap_free(stbtt__hheap *hh, void *p)
2170 unmodified lines