From ee2683389496edeb5b58374cdd116c32cd32911c Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Wed, 4 Mar 2020 14:37:20 -0500 Subject: [PATCH] Avoid OOB access of the line table during codegen. (#34973) --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index 43d4ac9b6e635..8847401a680ef 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5899,7 +5899,7 @@ static std::pair, jl_llvm_functions_t> if (do_coverage(mod_is_user_mod)) { coverageVisitLine(ctx, ctx.file, toplineno); - if (linetable.size() >= 1) { + if (linetable.size() >= 2) { // avoid double-counting the entry line const auto &info = linetable.at(1); if (info.file == ctx.file && info.line == toplineno && info.is_user_code == mod_is_user_mod)