From 71dd68731057d79a2e58775cd93e09b67fb0ee24 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 27 Jul 2007 04:44:36 +0000 Subject: [PATCH] * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before first usage. From Savannah patch #6115. --- ChangeLog | 5 +++++ src/base/ftoutln.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3079fed7c..9db3be5c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-27 Werner Lemberg + + * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before + first usage. From Savannah patch #6115. + 2007-07-16 Werner Lemberg * docs/CHANGES: Updated. diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c index 6926f3a09..397a0a62e 100644 --- a/src/base/ftoutln.c +++ b/src/base/ftoutln.c @@ -474,12 +474,14 @@ FT_Pos yOffset ) { FT_UShort n; - FT_Vector* vec = outline->points; + FT_Vector* vec; if ( !outline ) return; + vec = outline->points; + for ( n = 0; n < outline->n_points; n++ ) { vec->x += xOffset;