• Show log

    Commit

  • Hash : d2544433
    Author : Alexei Podtelezhnikov
    Date : 2023-04-08T23:15:41

    [sfnt] Clean up CMAP{4,12,13} handling.
    
    This moves the charcode overflow checks upstream and turns some
    while-loops into the do-while ones to avoid the uninitialized warnings.
    This should slightly reduce the number of checks and jumps.
    
    * src/sfnt/ttcmap.c (tt_cmap{4,12,13}_next,
    tt_cmap{4.12.13}_char_map_linear): Remove the charcode overflow check.
    (tt_cmap{4,12,13}_char_map_binary): Ditto and use do-while.
    (tt_cmap{12,13}_char_next): Add the overflow check.