mozilla/pdf.js — pull request #2292 by saebekassebil (2012-10-22 15:41:02+00:00)
Title: Implement NullStream, fixes #1832

As title says, this PR fixes #1832.

The file had a stream, which tried to apply FlateDecode on an empty stream (`/Length 0`):

60 0 obj
<<
/Length 0
/LC /iSQP
/Filter /FlateDecode
>>
stream

endstream
endobj

This PR just implements a Stream that does nothing - NullStream, which is returned from the `makeFilter` method if the length of the stream is zero.