Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
de27955c
by Werner Lemberg at 2022-07-01T06:33:50+02:00
3 changed files:
Changes:
... | ... | @@ -2215,7 +2215,8 @@ |
2215 | 2215 | if ( FT_QALLOC( sfnt_data, rlen ) )
|
2216 | 2216 | return error;
|
2217 | 2217 | error = FT_Stream_Read( stream, (FT_Byte *)sfnt_data, (FT_ULong)rlen );
|
2218 | - if ( error ) {
|
|
2218 | + if ( error )
|
|
2219 | + {
|
|
2219 | 2220 | FT_FREE( sfnt_data );
|
2220 | 2221 | goto Exit;
|
2221 | 2222 | }
|
... | ... | @@ -1160,7 +1160,8 @@ |
1160 | 1160 | outerIndex,
|
1161 | 1161 | innerIndex );
|
1162 | 1162 | |
1163 | - if ( delta ) {
|
|
1163 | + if ( delta )
|
|
1164 | + {
|
|
1164 | 1165 | FT_TRACE5(( "%s value %d adjusted by %d unit%s (%s)\n",
|
1165 | 1166 | vertical ? "vertical height" : "horizontal width",
|
1166 | 1167 | *avalue,
|
... | ... | @@ -8570,7 +8570,8 @@ |
8570 | 8570 | |
8571 | 8571 | /* increment instruction counter and check if we didn't */
|
8572 | 8572 | /* run this program for too long (e.g. infinite loops). */
|
8573 | - if ( ++ins_counter > TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES ) {
|
|
8573 | + if ( ++ins_counter > TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES )
|
|
8574 | + {
|
|
8574 | 8575 | exc->error = FT_THROW( Execution_Too_Long );
|
8575 | 8576 | goto LErrorLabel_;
|
8576 | 8577 | }
|