diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/smooth/ftsmooth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c index 3ce1cea24..eb5928f6f 100644 --- a/src/smooth/ftsmooth.c +++ b/src/smooth/ftsmooth.c @@ -379,6 +379,11 @@ TOrigin target; + /* Reject outlines that are too wide for 16-bit FT_Span. */ + /* Other limits are applied upstream with the same error code. */ + if ( bitmap->width * SCALE > 0x7FFF ) + return FT_THROW( Raster_Overflow ); + /* Set up direct rendering to average oversampled spans. */ params.target = bitmap; params.source = outline; |