More nicely truncate args array

This commit is contained in:
Chris Jones 2011-05-04 23:53:55 -05:00
parent 3b558229c1
commit 07119364fc

2
pdf.js
View File

@ -721,7 +721,7 @@ var Interpreter = (function() {
while (!((obj = parser.getObj()).isEOF())) {
if (obj.isCmd()) {
this.dispatch(obj, args);
args = [ ]; // yuck
args.length = 0;
} else if (MAX_ARGS == args.length) {
this.error("Too many arguments");
} else {