diff options
-rw-r--r-- | chromium/third_party/freetype/src/src/sfnt/sfobjs.c | 2 | ||||
-rw-r--r-- | chromium/third_party/freetype/src/src/sfnt/sfwoff2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/freetype/src/src/sfnt/sfobjs.c b/chromium/third_party/freetype/src/src/sfnt/sfobjs.c index cf730717eb0..553d5e85232 100644 --- a/chromium/third_party/freetype/src/src/sfnt/sfobjs.c +++ b/chromium/third_party/freetype/src/src/sfnt/sfobjs.c @@ -553,7 +553,7 @@ face_index = FT_ABS( face_instance_index ) & 0xFFFF; /* value -(N+1) requests information on index N */ - if ( face_instance_index < 0 ) + if ( face_instance_index < 0 && face_index > 0 ) face_index--; if ( face_index >= face->ttc_header.count ) diff --git a/chromium/third_party/freetype/src/src/sfnt/sfwoff2.c b/chromium/third_party/freetype/src/src/sfnt/sfwoff2.c index df04072382e..75c0ffb0d77 100644 --- a/chromium/third_party/freetype/src/src/sfnt/sfwoff2.c +++ b/chromium/third_party/freetype/src/src/sfnt/sfwoff2.c @@ -2102,7 +2102,7 @@ /* Validate requested face index. */ *num_faces = woff2.num_fonts; /* value -(N+1) requests information on index N */ - if ( *face_instance_index < 0 ) + if ( *face_instance_index < 0 && face_index > 0 ) face_index--; if ( face_index >= woff2.num_fonts ) |