Skip to content
  • Dominik Röttsches's avatar
    Reject 'COLR' table if version is 1 but header too small. · 33ceac2a
    Dominik Röttsches authored and Werner Lemberg's avatar Werner Lemberg committed
    * src/sfnt/ttcolr.c (tt_face_load_colr): If the version is determined to
    be 1, then the table size has to be at least the size of the v1 header.
    Also, for peeking the number of base glyphs and entries in the layer list,
    ensure that the table is sufficiently long.
    
    Fixes #1179.  Original patch by Sergey Temnikov.
    33ceac2a