ladybird/Libraries/LibGfx
Andreas Kling 7d5a369ac9 LibGfx: Fail PGM decode if there isn't enough color data in image
If we have less pixel color data than we need to fill the image, just
fail the decode.

Found by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29127
2021-01-05 15:14:29 +01:00
..
Filters LibGfx+PixelPaint: Fix distortions in convolutions with size != 4 or 5 2020-10-12 20:04:48 +02:00
AffineTransform.cpp LibGfx: Templatize Point, Size, and Rect 2020-07-27 01:06:26 +02:00
AffineTransform.h LibTTF: Fix code after rebase 2020-12-30 20:40:30 +01:00
Bitmap.cpp LibGfx: Add Gfx::Bitmap::create_shareable(format, size) 2021-01-02 16:57:31 +01:00
Bitmap.h LibGfx: Add Gfx::Bitmap::create_shareable(format, size) 2021-01-02 16:57:31 +01:00
BitmapFont.cpp LibGfx: Introduce provisional font interface 2020-12-31 23:40:27 +01:00
BitmapFont.h LibGfx: Introduce provisional font interface 2020-12-31 23:40:27 +01:00
BMPLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
BMPLoader.h Lagom: Make BMP fuzzer look like the other image loader fuzzers 2020-11-26 09:59:46 +01:00
BMPWriter.cpp LibGfx: Add BMPWriter 2020-11-22 16:07:00 +01:00
BMPWriter.h LibGfx: Add BMPWriter 2020-11-22 16:07:00 +01:00
CharacterBitmap.cpp LibGfx: Rename from LibDraw :^) 2020-02-06 12:04:00 +01:00
CharacterBitmap.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
ClassicStylePainter.cpp LibGfx: Tweak color of checkmark in disabled+checked GUI::CheckBox 2021-01-01 23:08:59 +01:00
ClassicStylePainter.h LIbGUI+LibGfx: Paint focused push buttons with a heavier look 2020-12-28 12:41:26 +01:00
ClassicWindowTheme.cpp LibGFX: Move default_xxx_font() methods from Font to FontDatabase 2020-12-30 20:40:30 +01:00
ClassicWindowTheme.h LibGfx+WindowServer: Handle taller window title fonts better 2020-10-24 00:26:13 +02:00
CMakeLists.txt LibGfx: Introduce provisional font interface 2020-12-31 23:40:27 +01:00
Color.cpp AK+Format: Remove TypeErasedFormatParams& from format function. 2020-12-30 20:33:53 +01:00
Color.h AK+Format: Remove TypeErasedFormatParams& from format function. 2020-12-30 20:33:53 +01:00
DisjointRectSet.cpp LibGfx: Small improvement for DisjointRectSet::shatter 2020-08-19 11:20:27 +02:00
DisjointRectSet.h LibGfx: Add a few convenience methods to DisjointRectSet 2020-08-18 12:12:27 +02:00
Emoji.cpp Meta+LibC through LibHTTP: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
Emoji.h Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
Font.cpp LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
Font.h LibGfx: Introduce provisional font interface 2020-12-31 23:40:27 +01:00
FontDatabase.cpp LibGFX: Move default_xxx_font() methods from Font to FontDatabase 2020-12-30 20:40:30 +01:00
FontDatabase.h LibGFX: Move default_xxx_font() methods from Font to FontDatabase 2020-12-30 20:40:30 +01:00
Forward.h LibGfx: Templatize Point, Size, and Rect 2020-07-27 01:06:26 +02:00
Gamma.h LibGfx: Simplify and refactor Gamma.h 2020-12-08 09:39:43 +01:00
GIFLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
GIFLoader.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
ICOLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
ICOLoader.h LibGfx: Initial support for ICO image files. 2020-06-21 17:41:52 +02:00
ImageDecoder.cpp LibGfx: Add PGM image file type support 2020-06-27 13:01:27 +02:00
ImageDecoder.h LibGfx: Make all image decoders reject image sizes above 16384 pixels 2020-12-25 00:19:06 +01:00
JPGLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
JPGLoader.h JPGLoader: Move JPGLoader internal structs and #defines to JPGLoader.cpp 2020-06-23 13:51:19 +02:00
Matrix.h LibGfx: Add a generic Matrix variant 2020-07-25 02:13:43 +02:00
Matrix4x4.h LibGfx: Add a generic Matrix variant 2020-07-25 02:13:43 +02:00
Orientation.h LibGfx: Rename from LibDraw :^) 2020-02-06 12:04:00 +01:00
Painter.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
Painter.h LibGUI+LibGfx+WindowServer: Auto-generate disabled action icons :^) 2020-10-27 21:25:40 +01:00
Palette.cpp AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00
Palette.h LibGfx: Add colors for highlight-searching to palette and themes 2020-10-22 15:23:45 +02:00
Path.cpp LibGfx: Add ability to get a bounding box from a Path 2020-10-10 23:28:41 +02:00
Path.h LibGfx: Add ability to get a bounding box from a Path 2020-10-10 23:28:41 +02:00
PBMLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
PBMLoader.h LibGfx: Add PBM image file type support 2020-06-21 16:42:46 +02:00
PGMLoader.cpp LibGfx: Fail PGM decode if there isn't enough color data in image 2021-01-05 15:14:29 +01:00
PGMLoader.h LibGfx: Add PGM image file type support 2020-06-27 13:01:27 +02:00
PNGLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
PNGLoader.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
Point.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
Point.h LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
PortableImageLoaderCommon.h LibGfx: Fail PGM decode if there isn't enough color data in image 2021-01-05 15:14:29 +01:00
PPMLoader.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
PPMLoader.h LibGfx: Add PPM image file type support 2020-06-22 18:11:22 +02:00
Rect.cpp LibGfx: Add TextAlignment::BottomRight 2020-08-23 01:05:22 +02:00
Rect.h AK+Format: Remove TypeErasedFormatParams& from format function. 2020-12-30 20:33:53 +01:00
ShareableBitmap.cpp LibGfx: Templatize Point, Size, and Rect 2020-07-27 01:06:26 +02:00
ShareableBitmap.h Meta+LibC through LibHTTP: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
Size.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
Size.h LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
StandardCursor.h WindowServer: Validate cursor type in SetWindowCursor message handler 2020-12-25 23:07:06 +01:00
Streamer.h LibGfx: Extraction of Streamer from P*MLoader 2020-12-21 09:58:27 +01:00
StylePainter.cpp LIbGUI+LibGfx: Paint focused push buttons with a heavier look 2020-12-28 12:41:26 +01:00
StylePainter.h LIbGUI+LibGfx: Paint focused push buttons with a heavier look 2020-12-28 12:41:26 +01:00
SystemTheme.cpp AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00
SystemTheme.h LibGUI+LibGfx+Base: Make tooltips color theme aware :^) 2020-10-23 12:01:14 +02:00
TextAlignment.h LibGfx: Add a helper to check if a TextAlignment is vertically centered 2020-09-19 19:16:22 +02:00
TextAttributes.h LibGfx: Add Gfx::TextAttributes (and use it in GUI::TextDocumentSpan) 2021-01-02 20:57:43 +01:00
TextElision.h LibGfx: Rename from LibDraw :^) 2020-02-06 12:04:00 +01:00
Triangle.cpp LibGUI: Use String::formatted() and String::number() more 2021-01-03 15:26:47 +01:00
Triangle.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
Vector3.h LibGfx+PixelPaint: Fix distortions in convolutions with size != 4 or 5 2020-10-12 20:04:48 +02:00
WindowTheme.cpp LibGfx: Correct copyright years for {Classic,}WindowTheme.{cpp,h} 2020-08-10 21:20:28 +02:00
WindowTheme.h LibGfx+WindowServer: Handle taller window title fonts better 2020-10-24 00:26:13 +02:00