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

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

Build:
Build:
LAST BUILD BRANCH: skaplun/lj-1026-arm64-invalid-hrefk-offset-check
DEFAULT BRANCH: tarantool/master
Ran 29 Aug 2023 02:40PM CUT
Jobs 1
Files 89
Run time 6s
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

29 Aug 2023 02:37PM CUT coverage: 88.215% (+0.2%) from 88.01%
6013780369

push

github

ligurio
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
```

With execution snippet by LuaJIT instrumented by ASAN it leads to
a heap-buffer-overflow.

In a function `predict_next()` variable `exprpc` looks forward and
expects extra bytecodes on the stack. However, `KPRI` is merged to the
the `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 early return when `pc >= fs->bclim`.

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

Part of tarantool/tarantool#8825

5336 of 5969 branches covered (0.0%)

Branch coverage included in aggregate %.

20473 of 23288 relevant lines covered (87.91%)

1290783.05 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.05
-0.08% src/lj_crecord.c
Jobs
ID Job ID Ran Files Coverage
1 6013780369.1 29 Aug 2023 02:39PM CUT 89
88.21
GitHub Action Run
Source Files on build 6013780369
  • Tree
  • List 89
  • Changed 86
  • Source Changed 0
  • Coverage Changed 6
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
  • ►
    88.21
    src/
  • Back to Repo
  • Github Actions Build #6013780369
  • 29fe237c on github
  • Prev Build on tarantool/master (#6010772579)
  • Next Build on ligurio/lj-1054-incorrect-pc-value-predict_next (#6014163946)
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

© 2025 Coveralls, Inc