Allow values for limitInputPixels larger than 32-bit #3238

This commit is contained in:
Lovell Fuller
2022-05-28 08:35:17 +01:00
parent 48e3ea5e29
commit a0568ec0c3
5 changed files with 17 additions and 5 deletions

View File

@@ -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' });