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

tarantool / luajit / 13108700322
93%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: tarantool/release/3.7
DEFAULT BRANCH: tarantool/master
Ran 03 Feb 2025 07:50AM 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

03 Feb 2025 07:46AM UTC coverage: 92.947% (-0.04%) from 92.983%
13108700322

push

github

Buristan
Reject negative getfenv()/setfenv() levels to prevent compiler warning.

Thanks to Sergey Kaplun.

(cherry picked from commit 9d777346b)

When the number represented the level value is given to the
`getfenv()`/`setfenv()`, it is cast to the `int`. Assume the given value
is `2^31`, i.e. the resulting value after the cast is `INT_MIN`. After
this, it will be decremented in `lj_debug_level()` and underflowed to
the `INT_MAX`. That produces the UBSan warning about signed integer
overflow.

This patch raises the error early in the aforementioned functions, since
a negative level value is meaningless.

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

Part of tarantool/tarantool#11055

5696 of 6035 branches covered (94.38%)

Branch coverage included in aggregate %.

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

16 existing lines in 5 files now uncovered.

21702 of 23442 relevant lines covered (92.58%)

2962933.74 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
94.74
-4.31% src/lj_str.c
5
85.71
-2.16% src/lj_sysprof.c
2
78.42
-0.16% src/lj_opt_fold.c
2
96.98
-0.38% src/lj_snap.c
1
99.22
-0.78% src/lj_func.c
Jobs
ID Job ID Ran Files Coverage
1 13108700322.1 03 Feb 2025 07:50AM UTC 89
92.95
GitHub Action Run
Source Files on build 13108700322
  • Tree
  • List 89
  • Changed 86
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13108700322
  • c0aa4548 on github
  • Prev Build on tarantool/master (#13029543298)
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