mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Guard against InitImage failure #150
Protects against truncated image headers
This commit is contained in:
BIN
test/fixtures/corrupt-header.jpg
vendored
Normal file
BIN
test/fixtures/corrupt-header.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
1
test/fixtures/index.js
vendored
1
test/fixtures/index.js
vendored
@@ -14,6 +14,7 @@ module.exports = {
|
||||
inputJpgWithGammaHoliness: getPath('gamma_dalai_lama_gray.jpg'), // http://www.4p8.com/eric.brasseur/gamma.html
|
||||
inputJpgWithCmykProfile: getPath('Channel_digital_image_CMYK_color.jpg'), // http://en.wikipedia.org/wiki/File:Channel_digital_image_CMYK_color.jpg
|
||||
inputJpgWithCmykNoProfile: getPath('Channel_digital_image_CMYK_color_no_profile.jpg'),
|
||||
inputJpgWithCorruptHeader: getPath('corrupt-header.jpg'),
|
||||
|
||||
inputPng: getPath('50020484-00001.png'), // http://c.searspartsdirect.com/lis_png/PLDM/50020484-00001.png
|
||||
inputPngWithTransparency: getPath('blackbug.png'), // public domain
|
||||
|
||||
Reference in New Issue
Block a user