qt6-bb10/src/gui/image
Eirik Aavitsland 8ce3693856 QImageReader: check allocation limit for minimum 32 bpp
Also, as a driveby, add an environment variable so the limit can be
changed at runtime.

[ChangeLog][QtGui][QImageReader] When checking allocation limit during
image reading, the memory requirements are now calculated for a
minimum of 32 bits per pixel, since Qt will typically convert an image
to that depth when it is used in GUI. This means that the effective
allocation limit is significantly smaller when reading 1 bpp and 8 bpp
images.

Pick-to: 6.2 6.2.2
Change-Id: If1b204d413973b0975eea531e29c260fdcec931d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-11-22 14:29:20 +01:00
..
qabstractfileiconengine.cpp Add scaledPixmap() override 2021-02-19 15:23:33 +01:00
qabstractfileiconengine_p.h Add scaledPixmap() override 2021-02-19 15:23:33 +01:00
qabstractfileiconprovider.cpp QAbstractFileIconProvider: Fix compilation without feature mimetype 2021-03-21 16:39:03 +01:00
qabstractfileiconprovider.h Move QFileSystemModel into QtGui 2020-08-25 06:33:44 +02:00
qabstractfileiconprovider_p.h QAbstractFileIconProvider: Fix compilation without feature mimetype 2021-03-21 16:39:03 +01:00
qbitmap.cpp gui: Fix typos in source code comments 2021-10-12 12:52:02 +02:00
qbitmap.h Deprecate implicit QPixmap conversion to QBitmap 2020-09-17 13:26:50 +02:00
qbmphandler.cpp Clean up code that handle clipboard image conversion on Windows 2021-01-06 21:53:44 +01:00
qbmphandler_p.h
qicon.cpp gui: Fix typos in source code comments 2021-10-12 12:52:02 +02:00
qicon.h Centralize the implementation of move assignment operators 2020-10-03 11:47:17 +02:00
qicon_p.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qiconengine.cpp Fix documentation links to High DPI documentation 2020-12-01 15:48:53 +01:00
qiconengine.h Get rid of Qt4 virtual hooks 2020-09-15 01:40:43 +02:00
qiconengineplugin.cpp
qiconengineplugin.h
qiconloader.cpp gui: Fix typos in documentation 2021-10-12 12:52:02 +02:00
qiconloader_p.h QIconLoader: code tidies 2021-09-18 09:41:49 +02:00
qimage.cpp Increment reference count when restoring reference 2021-11-18 20:46:41 +01:00
qimage.h Add load/fromdata() overloads taking QByteArrayView to QImage 2021-06-02 23:02:45 +02:00
qimage_conversions.cpp Rename QRgbaF to QRgbaFloat and assert the compatible types 2021-07-05 12:37:01 +02:00
qimage_darwin.mm gui: Fix typos in documentation 2021-10-12 12:52:02 +02:00
qimage_mips_dspr2.cpp
qimage_mips_dspr2_asm.S
qimage_neon.cpp
qimage_p.h Remove unused internal flag in QImage 2021-08-13 06:55:20 +00:00
qimage_ssse3.cpp
qimageiohandler.cpp QImageReader: check allocation limit for minimum 32 bpp 2021-11-22 14:29:20 +01:00
qimageiohandler.h Remove Qt6 switches from QtGui 2021-05-05 19:26:56 +02:00
qimagepixmapcleanuphooks.cpp
qimagepixmapcleanuphooks_p.h
qimagereader.cpp QImageReader: check allocation limit for minimum 32 bpp 2021-11-22 14:29:20 +01:00
qimagereader.h Make QStringList an alias to QList<QString> 2020-09-12 23:37:15 +02:00
qimagereaderwriterhelpers.cpp QFactoryLoader: continue the port from JSON to CBOR 2021-10-20 22:04:03 -07:00
qimagereaderwriterhelpers_p.h
qimagewriter.cpp Improve support for saving QImage to QSaveFile 2021-07-14 11:02:25 +00:00
qimagewriter.h
qmovie.cpp Do not notify about property changes if the value hasn't changed 2021-04-07 14:51:04 +02:00
qmovie.h Port QMovie to the new property system 2021-01-27 15:16:20 +01:00
qpaintengine_pic.cpp Fix compiler warnings from using deprecated qChecksum overload 2020-09-05 02:03:49 +02:00
qpaintengine_pic_p.h
qpicture.cpp QPicture: Improve the documentation of Picture::play() 2020-12-22 17:43:56 +01:00
qpicture.h Centralize the implementation of move assignment operators 2020-10-03 11:47:17 +02:00
qpicture_p.h Use QList instead of QVector in gui 2020-06-29 19:19:47 +02:00
qpixmap.cpp When filling a pixmap after an assignment ensure the set DPR is not lost 2021-10-15 10:27:15 +02:00
qpixmap.h Add deviceIndependentSize() to QPixmap and QImage 2021-03-08 08:27:41 +00:00
qpixmap_blitter.cpp Adjust code format, add space after 'if' 2020-11-16 12:53:37 +00:00
qpixmap_blitter_p.h Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qpixmap_raster.cpp
qpixmap_raster_p.h
qpixmap_win.cpp doc: Add brief and group for native type conversions 2020-10-13 10:44:02 +02:00
qpixmapcache.cpp Tidy up QPixmapCache to prevent potential segfault 2021-11-05 14:09:39 +01:00
qpixmapcache.h
qpixmapcache_p.h
qplatformpixmap.cpp gui: Fix typos in source code comments 2021-10-12 12:52:02 +02:00
qplatformpixmap.h
qpnghandler.cpp gui: Fix typos in source code comments 2021-10-12 12:52:02 +02:00
qpnghandler_p.h
qppmhandler.cpp Reject truncated and corrupt ascii pnm images 2021-11-16 18:54:32 +00:00
qppmhandler_p.h
qxbmhandler.cpp Add logging categories to image handlers 2020-09-30 08:39:45 +02:00
qxbmhandler_p.h
qxpmhandler.cpp Fix warning about loop variable creating a copy 2021-08-24 13:39:06 +02:00
qxpmhandler_p.h