mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Allow values for limitInputPixels larger than 32-bit #3238
This commit is contained in:
@@ -706,6 +706,12 @@ describe('Input/output', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('Invalid fails - integer overflow', () => {
|
||||
assert.throws(() => {
|
||||
sharp({ limitInputPixels: Number.MAX_SAFE_INTEGER + 1 });
|
||||
});
|
||||
});
|
||||
|
||||
it('Invalid fails - string', () => {
|
||||
assert.throws(() => {
|
||||
sharp({ limitInputPixels: 'fail' });
|
||||
|
||||
Reference in New Issue
Block a user