Fix a fuzzing bug and add Cargo.lock to the fuzzing directory

This commit is contained in:
DJMcNab 2018-12-29 12:40:08 +00:00
parent f3f073804c
commit 054f22f231
3 changed files with 532 additions and 2 deletions

View file

@ -82,7 +82,7 @@ impl<'a> Parser<'a> {
fn parse_escape(&mut self, start: TextUnit) -> StringComponent {
if self.peek().is_none() {
return StringComponent::new(TextRange::from_to(start, start), AsciiEscape);
return StringComponent::new(TextRange::from_to(start, self.get_pos()), AsciiEscape);
}
let next = self.advance();