• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / luajit / 6109128487
88%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: skaplun/luajit-performance-tests
DEFAULT BRANCH: tarantool/master
Ran 07 Sep 2023 11:31AM UTC
Jobs 1
Files 89
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Sep 2023 11:09AM UTC coverage: 88.167% (+0.1%) from 88.047%
6109128487

push

github

igormunkin
Fix predict_next() in parser (again).

Reported by Sergey Bronnikov.

(cherry picked from commit 309fb42b8)

The following Lua snippet triggers out-of-boundary access to a stack:

```
a, b, c = 1, 2, 3
local d
for _ in nil do end
```

During the execution of this snippet with LuaJIT instrumented by ASAN,
it leads to a heap-based buffer overflow.

In function `predict_next()` variable `exprpc` looks forward and expects
extra bytecodes on the stack. However, `KPRI` is merged to `KNIL` and
there is no new bytecode to add, so `exprpc == fs->bclim`, and it leads
to out-of-boundary access. Issue has been fixed by an early return when
`pc >= fs->bclim`.

Sergey Bronnikov:
* added the description and the test for the problem

Part of tarantool/tarantool#8825

5335 of 5969 branches covered (0.0%)

Branch coverage included in aggregate %.

20459 of 23287 relevant lines covered (87.86%)

1285815.48 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.64
-0.05% src/lj_record.c
2
91.11
-0.32% src/lj_alloc.c
6
88.38
0.25% src/lj_ffrecord.c
6
82.22
17.78% src/lj_sysprof.c
7
75.14
-0.63% src/lj_opt_fold.c
Jobs
ID Job ID Ran Files Coverage
1 6109128487.1 07 Sep 2023 11:31AM UTC 89
88.17
GitHub Action Run
Source Files on build 6109128487
  • Tree
  • List 89
  • Changed 85
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #6109128487
  • 9d978d96 on github
  • Prev Build on tarantool/master (#6109042627)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc