mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Limit dimensions of all image loaders to 23000x23000
This commit is contained in:
@ -13,6 +13,13 @@ namespace irr
|
||||
namespace video
|
||||
{
|
||||
|
||||
//! check sanity of image dimensions to prevent issues later, for use by CImageLoaders
|
||||
inline bool checkImageDimensions(u32 width, u32 height)
|
||||
{
|
||||
// 4 * 23000 * 23000 is just under S32_MAX
|
||||
return width <= 23000 && height <= 23000;
|
||||
}
|
||||
|
||||
//! IImage implementation with a lot of special image operations for
|
||||
//! 16 bit A1R5G5B5/32 Bit A8R8G8B8 images, which are used by the SoftwareDevice.
|
||||
class CImage : public IImage
|
||||
|
Reference in New Issue
Block a user