v8: fix template literal NULL pointer deref
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 21 Jan 2015 00:55:19 +0000 (01:55 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 21 Jan 2015 12:35:01 +0000 (13:35 +0100)
commit803883bb1a701da12c285fd735233eed7627eada
tree26b3a8ef13fd6d6fedc03251b28d75c2bd118335
parent5435cf2f1619721745c7a8ac06b4f833d0b80d25
v8: fix template literal NULL pointer deref

Fixes a NULL pointer dereference with unterminated template literals.

This is a back-port of commit v8/v8-git-mirror@02218ad from the V8
master branch, see https://code.google.com/p/v8/issues/detail?id=3820.

PR-URL: https://github.com/iojs/io.js/pull/534
Reviewed-By: Caitlin Potter <caitpotter88@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
deps/v8/src/preparser.h
deps/v8/test/cctest/test-parsing.cc