1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Rescale the image data when they're really too large

It fixes #17190.
This commit is contained in:
Calixte Denizet 2024-11-23 20:35:30 +01:00
parent 1f6cc85134
commit 1ef670411a
7 changed files with 136 additions and 10 deletions

View file

@ -27,6 +27,8 @@ import { Dict, isName, Ref, RefSet } from "./primitives.js";
import { BaseStream } from "./base_stream.js";
const PDF_VERSION_REGEXP = /^[1-9]\.\d$/;
const MAX_INT_32 = 2 ** 31 - 1;
const MIN_INT_32 = -(2 ** 31);
function getLookupTableFactory(initializer) {
let lookup;
@ -713,6 +715,8 @@ export {
lookupMatrix,
lookupNormalRect,
lookupRect,
MAX_INT_32,
MIN_INT_32,
MissingDataException,
numberToString,
ParserEOFException,