mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 21:38:02 +02:00
fixing a "bug" that affected the Postscript hinter: growing a memory block
though "realloc" didn't clear the new bytes of memory..
This commit is contained in:
parent
e65e9b13c2
commit
de3fb83c68
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@
|
|||
if ( !Q )
|
||||
goto Fail;
|
||||
|
||||
if ( size > current )
|
||||
memset( (char*)Q + current, 0, size - current );
|
||||
|
||||
*P = Q;
|
||||
return FT_Err_Ok;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue