Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
d276bcb7
by Werner Lemberg at 2022-01-09T07:48:59+01:00
1 changed file:
Changes:
... | ... | @@ -481,7 +481,9 @@ |
481 | 481 |
FT_ZERO( stream );
|
482 | 482 |
stream->memory = memory;
|
483 | 483 |
|
484 |
- if ( !FT_QNEW( zip ) )
|
|
484 |
+ /* Don't use `FT_QNEW` here to avoid problems with uninitialized */
|
|
485 |
+ /* memory later on if the font is malformed. */
|
|
486 |
+ if ( !FT_NEW( zip ) )
|
|
485 | 487 |
{
|
486 | 488 |
error = ft_bzip2_file_init( zip, stream, source );
|
487 | 489 |
if ( error )
|