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

tarantool / luajit / 30472646469
93%

Build:
DEFAULT BRANCH: tarantool/master
Ran 29 Jul 2026 05:02PM UTC
Jobs 1
Files 89
Run time 1min
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 Jul 2026 04:29PM UTC coverage: 93.392% (+0.05%) from 93.344%
30472646469

push

github

Buristan
Fix stack overflow relimit handling.

Thanks to Sergey Kaplun.

(cherry picked from commit d2c1327f5)

If the error handler can't fit to the top of the Lua stack, the stack is
resized up to `LJ_STACK_MAXEX + 1 + 2 * LUA_MINSTACK` hoping that
`lj_state_relimitstack()` shrinks it back. In case when another error is
(gently) handled in the error handler (`pcall(error)` or failed
`load()`) the stack is shrunk to `LJ_STACK_MAX` leaving the rest of the
handler to be executed on the clipped stack, which leads to the
heap-overflow or a crash.

This patch fixes the issue by hardening the relimiting border to match
the extra space allocated before the stack overflow. Also, it fixes some
typos in the comments.

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

Part of tarantool/tarantool#12880

Reviewed-by: Evgeniy Temirgaleev <e.temirgaleev@tarantool.org>
Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org>
Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>

5741 of 6059 branches covered (94.75%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

21918 of 23557 relevant lines covered (93.04%)

3970606.12 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
77.03
0.16% src/lj_opt_fold.c
1
96.71
-0.05% src/lj_record.c
Jobs
ID Job ID Ran Files Coverage
1 30472646469.1 29 Jul 2026 05:02PM UTC 89
93.39
GitHub Action Run
Source Files on build 30472646469
  • Tree
  • List 89
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30472646469
  • dee62c91 on github
  • Prev Build on tarantool/master (#30441300954)
  • Next Build on tarantool/master (#30530159357)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc