1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00
pdf.js/test/unit
Jonas Jenwald c9b6de3b16 Prevent adding invalid values in CFFDict_setByKey (bug 1068432)
In the font in question, there are a couple of `topDict` entries that have invalid values (`0xF 0xF`, i.e. just eof markers without any actual numbers).
This causes the `parseFloatOperand` function, inside `CFFParser_parseDict`, to return `NaN`. Currently we pass this broken font onto the browser, which OTS unsurprisingly rejects.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1068432.
2016-05-07 21:09:58 +02:00
..
annotation_layer_spec.js Add a couple of LinkAnnotation unit-tests 2016-04-15 22:59:08 +02:00
api_spec.js Removes hijack describe() hack from unit tests. 2016-04-11 07:37:35 -05:00
cff_parser_spec.js Prevent adding invalid values in CFFDict_setByKey (bug 1068432) 2016-05-07 21:09:58 +02:00
cmap_spec.js Remove the remaining usages of new {Name,Cmd} in favor of {Name,Cmd}.get 2016-04-08 12:14:05 +02:00
crypto_spec.js Add a couple of CipherTransformFactory unit-tests to check that blank passwords are correctly rejected 2016-04-16 20:24:55 +02:00
dom_utils_spec.js Use beforeAll/afterAll in isExternalLinkTargetSet in dom_utils_spec.js (issue 6905) 2016-04-07 14:00:40 +02:00
evaluator_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
function_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
jasmine-boot.js Merge pull request #7172 from yurydelendik/umd-web 2016-04-13 10:23:23 -05:00
metadata_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
network_spec.js Removes hijack describe() hack from unit tests. 2016-04-11 07:37:35 -05:00
parser_spec.js Ensure that Lexer_getName does not fail if a Name contains in invalid usage of the NUMBER SIGN (#) (issue 6692) 2015-11-28 11:59:09 +01:00
primitives_spec.js Move isDict unit-tests from util_spec.js to primitives_spec.js 2016-04-16 20:32:46 +02:00
stream_spec.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
testreporter.js Updates Jasmine version. 2016-03-29 09:34:13 -05:00
type1_parser_spec.js Split the font_spec.js unit-tests into cff_parser_spec.js and type1_parser_spec.js 2016-05-03 09:37:36 +02:00
ui_utils_spec.js Adds EventBus. 2016-04-28 06:57:24 -05:00
unit_test.html Split the font_spec.js unit-tests into cff_parser_spec.js and type1_parser_spec.js 2016-05-03 09:37:36 +02:00
util_spec.js Move isDict unit-tests from util_spec.js to primitives_spec.js 2016-04-16 20:32:46 +02:00