DECOMPRESSION_LIMIT_WARNING
@forge/monorepo / backend/src / DECOMPRESSION_LIMIT_WARNING
Variable: DECOMPRESSION_LIMIT_WARNING
constDECOMPRESSION_LIMIT_WARNING:"Stopped decompressing: the document's streams expand past the allowed size."="Stopped decompressing: the document's streams expand past the allowed size."
Defined in: backend/src/documents/parsers/pdf.ts:46
Emitted when the inflated total is cut off.
A named constant because a test asserting on it is asserting on the bound itself. The alternative — checking that something was truncated — passes when the block or text ceiling fires instead, which is a different bound and does nothing to stop the decompression work.