[webkit-changes] [WebKit/WebKit] 3a311f: Fix integer overflow (-INT_MIN) in BMPImageReader:...

Ahmad Saleem noreply at github.com
Sat Jul 15 09:44:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3a311fd2cd7e267ba71dca49060ad2c6be31f36d
      https://github.com/WebKit/WebKit/commit/3a311fd2cd7e267ba71dca49060ad2c6be31f36d
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-07-15 (Sat, 15 Jul 2023)

  Changed paths:
    M Source/WebCore/platform/image-decoders/bmp/BMPImageReader.cpp

  Log Message:
  -----------
  Fix integer overflow (-INT_MIN) in BMPImageReader::readInfoHeader

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

Reviewed by Don Olmstead.

Merge: https://chromium.googlesource.com/chromium/src.git/+/cbe3909f4f64e0f00e2eea6898395ece4672c913

For non-Apple platforms, this patch just rejects bitmap in 'redInfoHeader' to
avoid integer overflow.

NOTE: We don't have C++ tests similar to Blink so I am just merging 'change'.

* Source/WebCore/platform/image-decoders/bmp/BMPImageReader.cpp:
(BMPImageReader::processInfoHeader): As above

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




More information about the webkit-changes mailing list