• F
    stb_image: Relax raw_len validation for non-interlaced PNGs. · 06746604
    Fabian Giesen 提交于
    We used to require exact match between img_len and raw_len for
    non-interlaced PNGs, but the PNG in issue #276 has extra bytes
    (all zeros) at the end of the compressed DEFLATE stream.
    
    The PNG spec doesn't have anything to say about it (that I
    can tell), and if libpng accepts this, who are we to judge.
    
    Fixes issue #276.
    06746604
stb_image.h 244.2 KB