pdf.js/src/core
Jonas Jenwald 23c62cc321 Consume the current character when encountering illegal characters in Lexer.getObject, in order to prevent infinite loops during reading of streams (issue 8061)
*Please note:* The rendering of the PDF file in issue 8061 first regressed in PR 7039, and then PR 7493 exacerbated the problem even further by causing an infinite loop.

In this particular case, when errors were encountered inside of the `Lexer.getObject` method *itself*, we didn't advance the stream position. This thus caused an inifinite loop in `parseCMap`, since the exact same character was then parsed over and over again.

Fixes 8061.
2017-02-11 19:32:48 +01:00
..
annotation.js Interactive forms: values for radio buttons (issue #6995) 2017-02-07 23:42:40 +01:00
arithmetic_decoder.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
bidi.js Fix inverted calculation of RTL text percentage in bidi. 2017-01-12 23:54:06 +08:00
cff_parser.js Font ascent descent calculation fix 2017-02-11 01:25:05 -05:00
charsets.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
chunked_stream.js Adjust the brace-style ESLint rule to disallow single lines (and also enable no-iterator) 2017-02-04 15:53:08 +01:00
cmap.js Move EOF/isEOF from core/parser.js to core/primitives.js 2017-01-27 13:37:48 +01:00
colorspace.js Enable the no-else-return ESLint rule 2017-01-09 20:27:39 +01:00
crypto.js Enable the no-unused-vars ESLint rule 2017-01-29 23:23:17 +01:00
document.js Replace direct lookup of uniquePrefix/idCounters, in Page instances, with an idFactory containing an createObjId method instead 2017-01-09 23:16:25 +01:00
encodings.js Refactor Encodings 2016-01-28 11:32:59 -06:00
evaluator.js [api-minor] Add a getDocument parameter that allows disabling of the NativeImageDecoder (e.g. for use with Node.js) 2017-02-06 22:21:34 +01:00
font_renderer.js Enable the no-unused-vars ESLint rule 2017-01-29 23:23:17 +01:00
fonts.js Adjust the brace-style ESLint rule to disallow single lines (and also enable no-iterator) 2017-02-04 15:53:08 +01:00
function.js Enable the spaced-comment ESLint rule 2017-01-19 16:41:59 +01:00
glyphlist.js Add TeX-specific glyph names to glyphlist.js to improve both glyph mapping and text selection for mathematic fonts (issue 2594) 2016-10-26 16:39:58 +02:00
image.js Enable the no-else-return ESLint rule 2017-01-09 20:27:39 +01:00
jbig2.js Enable the no-unused-vars ESLint rule 2017-01-29 23:23:17 +01:00
jpg.js Enable the no-unused-vars ESLint rule 2017-01-29 23:23:17 +01:00
jpx.js Fix (most) errors reported by the no-multi-spaces ESLint rule 2016-12-12 20:35:51 +01:00
metrics.js Lazify Metrics 2016-01-28 12:11:46 -06:00
murmurhash3.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
network.js [Firefox addon] Stop bundling src/core/network.js into the FIREFOX/MOZCENTRAL builds (PR 7322 follow-up) 2017-01-23 22:23:17 +01:00
obj.js Enable the no-else-return ESLint rule 2017-01-09 20:27:39 +01:00
parser.js Consume the current character when encountering illegal characters in Lexer.getObject, in order to prevent infinite loops during reading of streams (issue 8061) 2017-02-11 19:32:48 +01:00
pattern.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
pdf_manager.js Refactor the password handling so that it's stored in the PdfManagers, instead of in the XRef 2017-01-03 20:29:52 +01:00
primitives.js Move EOF/isEOF from core/parser.js to core/primitives.js 2017-01-27 13:37:48 +01:00
ps_parser.js Move EOF/isEOF from core/parser.js to core/primitives.js 2017-01-27 13:37:48 +01:00
standard_fonts.js Improve rendering of non-embedded NuptialScript font 2016-11-22 17:56:17 +01:00
stream.js Merge pull request #7972 from Snuffleupagus/eslint_no-unused-vars 2017-02-01 23:50:23 +01:00
type1_parser.js Font ascent descent calculation fix 2017-02-11 01:25:05 -05:00
unicode.js Enable the spaced-comment ESLint rule 2017-01-19 16:41:59 +01:00
worker.js [api-minor] Add a getDocument parameter that allows disabling of the NativeImageDecoder (e.g. for use with Node.js) 2017-02-06 22:21:34 +01:00