Jonas Jenwald a930f9af15 For commands with with too few arguments, clear out args if it's an Array instead of replacing it with null in EvaluatorPreprocessor_read (issue 7804)
For `PartialEvaluator_getTextContent`, the same `args` Array should be re-used for every `EvaluatorPreprocessor_read` call. Hence we want to ensure that it's not accidentally replaced with `null` in `EvaluatorPreprocessor_read`, since otherwise corrupt PDF files (with too few arguments for certain commands) will cause errors in `PartialEvaluator_getTextContent`.

Perhaps a micro-optimization, but this patch also changes two `!args` comparisons to `args === null`, since that should be a tiny bit more efficient.
2016-11-16 10:20:29 +01:00
..
2016-04-27 16:14:33 -05:00
2016-05-11 16:11:13 +02:00
2016-11-01 15:04:21 +01:00
2016-01-28 11:32:59 -06:00
2016-01-28 11:32:59 -06:00
2016-07-17 14:33:41 +02:00
2015-12-16 23:52:16 +01:00
2016-11-01 15:04:21 +01:00
2016-11-01 15:04:21 +01:00
2016-01-28 12:11:46 -06:00