1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00
serenity/Userland/Libraries/LibGfx/ImageFormats
Lucas CHOLLET dc9e783608 LibGfx/JPEG: Remove the ensure_bounds_okay function
This function has probably been added when we weren't as good with error
propagations as we are now. We can safely remove it and let future
calls to `read` fail if the file is corrupted.

This can be tested with the following bytes (already used in 9191829a):
ffd8ffc000000800080ef701101200ffda00030100
2023-04-03 09:19:15 -04:00
..
BMPLoader.cpp
BMPLoader.h
BMPWriter.cpp
BMPWriter.h
DDSLoader.cpp
DDSLoader.h
GIFLoader.cpp
GIFLoader.h
ICOLoader.cpp
ICOLoader.h
ImageDecoder.cpp
ImageDecoder.h
JPEGLoader.cpp LibGfx/JPEG: Remove the ensure_bounds_okay function 2023-04-03 09:19:15 -04:00
JPEGLoader.h
PBMLoader.cpp LibGfx/PortableFormat: Propagate errors from read_image_data() 2023-03-24 10:56:58 +01:00
PBMLoader.h LibGfx/PortableFormat: Propagate errors from read_image_data() 2023-03-24 10:56:58 +01:00
PGMLoader.cpp LibGfx/PortableFormat: Use static_cast instead of C-style casts 2023-03-24 10:56:58 +01:00
PGMLoader.h LibGfx/PortableFormat: Propagate errors from read_image_data() 2023-03-24 10:56:58 +01:00
PNGLoader.cpp
PNGLoader.h
PNGShared.h
PNGWriter.cpp
PNGWriter.h
PortableFormatWriter.cpp
PortableFormatWriter.h
PortableImageLoaderCommon.h LibGfx/PortableFormat: Propagate errors from decode() 2023-03-24 10:56:58 +01:00
PortableImageMapLoader.h LibGfx/PortableFormat: Propagate errors from decode() 2023-03-24 10:56:58 +01:00
PPMLoader.cpp LibGfx/PortableFormat: Use static_cast instead of C-style casts 2023-03-24 10:56:58 +01:00
PPMLoader.h LibGfx/PortableFormat: Propagate errors from read_image_data() 2023-03-24 10:56:58 +01:00
QOILoader.cpp
QOILoader.h
QOIWriter.cpp
QOIWriter.h
TGALoader.cpp
TGALoader.h
WebPLoader.cpp
WebPLoader.h