|o||keeping your libraries up to date|
|o||limiting the amount of memory used to store images|
Image file format libraries such as libpng or libtiff have relatively frequent security updates, keeping your libraries up to date is basic security.
If youre using user supplied fonts, you will need to keep your font libraries up to date too.
With compression, and especially with pointer formats like TIFF, its possible to store very large images in a relatively small file.
You may also want to limit the maximum width and height of images read from files:
This has no effect on images created without a file:
# succeeds my $image = Imager->new(xsize => 10_001, ysize => 10_001);
You can reset to the defaults with:
Imager->set_file_limits(reset => 1);
Tony Cook <email@example.com>
|perl v5.20.3||IMAGER::SECURITY (3)||2014-01-10|