ref: f8234d830e17fc5e8fe09eb76d86dad3f6233c59
parent: b3dece5f332316ea0948a3b1ca4ec650515734f8
author: Tor Andersson <tor.andersson@artifex.com>
date: Tue Sep 20 13:11:32 EDT 2016
Fix bug 697136. We were unconditionally reading the next character if we encountered a '*' in a multi-line comment; possibly reading past the end of the input.
--- a/jslex.c
+++ b/jslex.c
@@ -225,7 +225,8 @@
if (jsY_accept(J, '/'))
return 0;
}
- jsY_next(J);
+ else
+ jsY_next(J);
}
return -1;
}