From f5df7f91f70234850484d26caf24e71e001e5304 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 5 Mar 2021 12:10:34 -0300 Subject: Wrong assertion in 'getbaseline' The assertion cannot compute 'f->abslineinfo[i]' when the initial estimate 'i' is -1. --- testes/errors.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testes/errors.lua') diff --git a/testes/errors.lua b/testes/errors.lua index fd02806e..a3d0676b 100644 --- a/testes/errors.lua +++ b/testes/errors.lua @@ -420,6 +420,14 @@ if not b then end end]], 5) +do + -- Force a negative estimate for base line. Error in instruction 2 + -- (after VARARGPREP, GETGLOBAL), with first absolute line information + -- (forced by too many lines) in instruction 0. + local s = string.format("%s return __A.x", string.rep("\n", 300)) + lineerror(s, 301) +end + if not _soft then -- several tests that exaust the Lua stack -- cgit v1.2.3-55-g6feb