Skip to content
  • Matthias Clasen's avatar
    ico: Be more careful when parsing headers · 88af50a8
    Matthias Clasen authored
    There is some redundancy between the ico directory and the
    bitmap image header. If the two disagree on the icon dimensions,
    just toss the image, instead of risking crashes or OOM later. Also
    add some more debug spew that helped in tracking this down, and
    make error messages more unique.
    
    The commit also includes a test image that has an example of
    this discrepancy and triggers the early exit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769170
    88af50a8