pdf.js/src
Jonas Jenwald 829d6ba2dc Ensure that the peekByte methods, on the various Streams, handles end of data correctly (PR 5286 follow-up)
When the end of data has already been reached for the various Streams, the `getByte` methods will return `-1` to signal that to the caller. Note however that the current position obviously won't be incremented in this case, meaning that the `peekByte` methods will in this case *incorrectly* decrement the position.

Thankfully the corresponding `peekBytes` shouldn't be affected by this bug, since they decrement the current position with the *actually* returned number of bytes.

I'm not aware of any bugs caused by this blatant oversight, but that doesn't mean this shouldn't be fixed :-)
2019-11-01 18:22:33 +01:00
..
core Ensure that the peekByte methods, on the various Streams, handles end of data correctly (PR 5286 follow-up) 2019-11-01 18:22:33 +01:00
display Remove some unused require statements, used when loading fake workers, in non-PRODUCTION mode 2019-10-31 12:08:07 +01:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared [MessageHandler] Convert the code to a proper class 2019-10-30 23:22:59 +01:00
doc_helper.js [api-major] Completely remove the global PDFJS object 2018-03-01 18:13:27 +01:00
interfaces.js Consistently use @type for getter data types in JSDoc comments 2019-10-13 13:58:17 +02:00
license_header_libre.js Update the year in the license_header files 2019-02-24 00:35:42 +01:00
license_header.js Update the year in the license_header files 2019-02-24 00:35:42 +01:00
pdf.image_decoders.js Add a gulp image_decoders command to allow packaging/distributing the image decoders (i.e. jpg.js, jpx.js, jbig2.js) separately from the main PDF.js library 2018-06-16 17:56:54 +02:00
pdf.js Replace our URL polyfill with the one from core-js 2019-09-19 14:09:51 +02:00
pdf.worker.entry.js Rename the globals to shorter names. 2018-03-16 11:08:56 -07:00
pdf.worker.js Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up) 2019-01-23 20:33:20 +01:00
worker_loader.js Moves global scope out of shared/util. 2017-08-22 18:20:52 -05:00