From: Clifford Wolf Date: Sat, 5 Jan 2019 11:10:24 +0000 (+0100) Subject: Bugfix in Verilog string handling X-Git-Tag: yosys-0.9~341 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17ceab92a93f5d2ef0eb26f3fd04df65e4393f9f;p=yosys.git Bugfix in Verilog string handling Signed-off-by: Clifford Wolf --- diff --git a/frontends/verilog/verilog_lexer.l b/frontends/verilog/verilog_lexer.l index f9118e142..1b1873e24 100644 --- a/frontends/verilog/verilog_lexer.l +++ b/frontends/verilog/verilog_lexer.l @@ -274,7 +274,7 @@ YOSYS_NAMESPACE_END yystr[j++] = yystr[i++]; } yystr[j] = 0; - frontend_verilog_yylval.string = new std::string(yystr); + frontend_verilog_yylval.string = new std::string(yystr, j); free(yystr); return TOK_STRING; }