[Pkg-javascript-commits] [uglifyjs] 79/190: Do not allow newlines in string literals

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 174404c0f37bf14aff23c41889e6bab1fd87c1d7
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Sat Dec 26 15:08:37 2015 +0100

    Do not allow newlines in string literals
---
 lib/parse.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/parse.js b/lib/parse.js
index 4d06ae0..7e7b227 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -399,6 +399,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
                 if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
                 else ch = read_escaped_char(true);
             }
+            else if (ch == "\n") parse_error("Unterminated string constant");
             else if (ch == quote) break;
             ret += ch;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list