Edit

kc3-lang/freetype/src/pfr

Branch :

  • Show log

    Commit

  • Author : Alexei Podtelezhnikov
    Date : 2022-07-26 12:23:15
    Hash : 284956b5
    Message : [pfr] Fortify the kerning code. Any array index must be strictly less then the array size. Therefore, we must reject indexes that are equal to the array size. Alternatively, we should move the bounds check before the index decrement but that would be confusing. In addition, it is ok to decrement zero (.notdef) and get UINT_MAX, which is then automatically rejected in the bounds check. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix the bounds checking.