pdf.js/src/core
Jonas Jenwald cf7978d507 XFA - Prevent breaking errors in Binder, when searchNode doesn't return data (issue 13756)
As can be seen in the code (see below), the `searchNode` helper function will return `null` in some cases and all of its call-sites should protect against that before attempting to access the returned data.
While only one of these changes were necessary to fix the breaking errors in issue 13756, in order to prevent future bugs I've added similar defensive code throughout this file.

 - 07955fa1d3/src/core/xfa/som.js (L169)
 - 07955fa1d3/src/core/xfa/som.js (L239)
 - 07955fa1d3/src/core/xfa/som.js (L254)
2021-07-19 18:07:07 +02:00
..
xfa XFA - Prevent breaking errors in Binder, when searchNode doesn't return data (issue 13756) 2021-07-19 18:07:07 +02:00
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
annotation.js Merge pull request #13735 from Snuffleupagus/bug-1720411 2021-07-18 13:48:34 +02:00
arithmetic_decoder.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
ascii_85_stream.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
ascii_hex_stream.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
base_stream.js Add a new BaseStream.getString(...) method to replace manual bytesToString(BaseStream.getBytes(...)) calls 2021-05-01 19:20:36 +02:00
bidi.js Enable the no-var linting rule in src/core/bidi.js 2021-05-16 14:14:26 +02:00
calibri_factors.js XFA - Fix text positions (bug 1718741) 2021-07-09 18:11:12 +02:00
catalog.js XFA - An image can be a stream in the pdf (bug 1718521) - hrefs can be found in catalog > Names > XFAImages 2021-07-05 14:06:23 +02:00
ccitt_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
ccitt.js Convert src/core/ccitt.js to use standard classes 2021-04-27 13:29:09 +02:00
cff_font.js Include and use the 14 standard fonts files. 2021-06-07 11:10:11 -07:00
cff_parser.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
charsets.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
chunked_stream.js Let ChunkedStream extend Stream, rather than BaseStream directly 2021-04-28 14:05:25 +02:00
cmap.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
colorspace.js Use Math.hypot, instead of Math.sqrt with manual squaring (#12973) 2021-02-10 12:28:49 +01:00
core_utils.js Enable the unicorn/no-array-push-push ESLint plugin rule 2021-05-25 13:54:46 +02:00
crypto.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
decode_stream.js Improve the handling getBaseStreams, on the various Stream implementations 2021-04-28 13:44:47 +02:00
decrypt_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
default_appearance.js [api-minor] Change the format of the fontName-property, in defaultAppearanceData, on Annotation-instances (PR 12831 follow-up) 2021-04-01 16:47:30 +02:00
document.js [api-minor] Add intent support to the PDFPageProxy.getOperatorList method (issue 13704) 2021-07-16 17:16:30 +02:00
encodings.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
evaluator.js Re-factor the handling of *empty* Name-instances (PR 13612 follow-up) 2021-07-15 12:00:42 +02:00
file_spec.js Enable the no-var rule in the src/core/file_spec.js file 2021-04-13 21:00:30 +02:00
flate_stream.js Remove some, with Prettier 2.3.0, unnecessary // prettier-ignore comments 2021-05-19 11:36:03 +02:00
font_renderer.js Enable the unicorn/no-array-push-push ESLint plugin rule 2021-05-25 13:54:46 +02:00
fonts_utils.js Include and use the 14 standard fonts files. 2021-06-07 11:10:11 -07:00
fonts.js XFA - Fix text positions (bug 1718741) 2021-07-09 18:11:12 +02:00
function.js Convert PDFFunction to a standard class with static methods 2021-07-17 16:46:57 +02:00
glyf.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
glyphlist.js Enable the no-var linting rule in src/core/glyphlist.js 2021-02-27 12:46:57 +01:00
helvetica_factors.js XFA - Fix text positions (bug 1718741) 2021-07-09 18:11:12 +02:00
image_utils.js Re-factor the handling of *empty* Name-instances (PR 13612 follow-up) 2021-07-15 12:00:42 +02:00
image.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
jbig2_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jbig2.js Fix the remaining ESLint operator-assignment errors 2021-07-04 15:23:56 +02:00
jpeg_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jpg.js Remove some, with Prettier 2.3.0, unnecessary // prettier-ignore comments 2021-05-19 11:36:03 +02:00
jpx_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jpx.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
liberationsans_widths.js Merge the supplemental font data files used with XFA documents 2021-07-07 11:56:34 +02:00
lzw_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
metadata_parser.js Move the XML-parser to the src/core/-folder 2021-02-17 13:12:01 +01:00
metrics.js Enable the no-var linting rule in src/core/metrics.js 2021-02-27 12:44:45 +01:00
murmurhash3.js Ensure that MurmurHash3_64.update handles ArrayBuffer input correctly, to avoid hash-collisions (issue 12533) 2020-10-26 16:27:33 +01:00
myriadpro_factors.js XFA - Fix text positions (bug 1718741) 2021-07-09 18:11:12 +02:00
name_number_tree.js Improve handling of named destinations in out-of-order NameTrees (PR 10274 follow-up) 2021-05-21 15:48:37 +02:00
object_loader.js Improve the handling getBaseStreams, on the various Stream implementations 2021-04-28 13:44:47 +02:00
opentype_file_builder.js Convert src/core/opentype_file_builder.js to use standard classes 2021-05-02 21:00:28 +02:00
operator_list.js [api-minor] Add intent support to the PDFPageProxy.getOperatorList method (issue 13704) 2021-07-16 17:16:30 +02:00
parser.js Re-factor the handling of *empty* Name-instances (PR 13612 follow-up) 2021-07-15 12:00:42 +02:00
pattern.js Modernize the Shadings structure, in src/core/pattern.js, to use standard classes 2021-05-14 21:44:41 +02:00
pdf_manager.js XFA - An image can be a stream in the pdf (bug 1718521) - hrefs can be found in catalog > Names > XFAImages 2021-07-05 14:06:23 +02:00
predictor_stream.js [Regression] Move the super-call in the PredictorStream-constructor to prevent errors (PR 13303) 2021-05-05 13:24:12 +02:00
primitives.js Re-factor the handling of *empty* Name-instances (PR 13612 follow-up) 2021-07-15 12:00:42 +02:00
ps_parser.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
run_length_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
segoeui_factors.js XFA - Fix text positions (bug 1718741) 2021-07-09 18:11:12 +02:00
standard_fonts.js XFA - Add Liberation-Sans font as a substitution for some missing fonts 2021-06-09 16:55:45 +02:00
stream.js Add an abstract base-class, which all the various Stream implementations inherit from 2021-04-28 13:44:45 +02:00
struct_tree.js Move NameTree/NumberTree from src/core/obj.js and into its own file 2021-04-13 21:00:30 +02:00
to_unicode_map.js Convert src/core/to_unicode_map.js to use standard classes 2021-05-02 21:00:29 +02:00
type1_font.js Remove unnecessary MissingDataException check from getHeaderBlock 2021-05-03 13:57:30 +02:00
type1_parser.js Enable the ESLint operator-assignment rule 2021-07-04 12:57:45 +02:00
unicode.js Use a buffer instead of string concatenation in reverseIfRtl in src/core/unicode.js 2021-02-27 13:20:09 +01:00
worker_stream.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
worker.js XFA - An image can be a stream in the pdf (bug 1718521) - hrefs can be found in catalog > Names > XFAImages 2021-07-05 14:06:23 +02:00
writer.js XFA - Save filled data in the pdf when downloading the file (Bug 1716288) 2021-06-25 18:57:01 +02:00
xfa_fonts.js XFA - Use fake MyriadPro as a fallback for missing fonts 2021-07-11 13:52:13 +02:00
xml_parser.js Handle PI with no value in xml parser 2021-05-18 10:22:18 +02:00
xref.js Remove some, with Prettier 2.3.0, unnecessary // prettier-ignore comments 2021-05-19 11:36:03 +02:00