From 2c91ac0c6a4b77f268e119eb2366dbc440cbc61f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 May 2017 21:35:46 -0700 Subject: 3847 Fix a crash on an invalid program. Thanks Lakshman Swaminathan for reporting this issue. --- html/038new_text.cc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html/038new_text.cc.html') diff --git a/html/038new_text.cc.html b/html/038new_text.cc.html index 207543cc..62c63ce6 100644 --- a/html/038new_text.cc.html +++ b/html/038new_text.cc.html @@ -90,7 +90,7 @@ if ('onhashchange' in window) { 25 :(before "End NEW Check Special-cases") 26 if (is_literal_text(inst.ingredients.at(0))) break; 27 :(before "Convert 'new' To 'allocate'") - 28 if (inst.name == "new" && is_literal_text(inst.ingredients.at(0))) continue; + 28 if (inst.name == "new" && !inst.ingredients.empty() && is_literal_text(inst.ingredients.at(0))) continue; 29 :(after "case NEW" following "Primitive Recipe Implementations") 30 if (is_literal_text(current_instruction().ingredients.at(0))) { 31 ¦ products.resize(1); -- cgit 1.4.1-2-gfad0