[webkit-changes] [WebKit/WebKit] 095152: Ignore unsupported disposal methods when decoding GIF

Ahmad-S792 noreply at github.com
Wed Mar 6 11:05:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 095152b0f5c6097f852de6a76aa44b2d69d3d184
      https://github.com/WebKit/WebKit/commit/095152b0f5c6097f852de6a76aa44b2d69d3d184
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp

  Log Message:
  -----------
  Ignore unsupported disposal methods when decoding GIF

https://bugs.webkit.org/show_bug.cgi?id=270572

Reviewed by Michael Catanzaro.

Merge: https://chromium.googlesource.com/chromium/blink/+/cdfed72e21acef69547a0266508067d238cd1b06

This fixes potential assertion failure about invalid disposal methods by ignoring
unsupported values when decoding GIF.

The bug is caused by some GIF images containing frames with disposal
method 5. Don't know what the author wanted.

NOTE - Due to lack of 'CPP' tests, I am unable to import test changes.

* Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp:
(GIFImageReader::parse):

Canonical link: https://commits.webkit.org/275749@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list