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

tarantool / luajit / 13159888065
70%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: ligurio/gh-12215-profilers-flags
DEFAULT BRANCH: tarantool/master
Ran 05 Feb 2025 02:48PM 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

05 Feb 2025 02:05PM UTC coverage: 92.914% (-0.008%) from 92.922%
13159888065

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

Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org>
Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
(cherry picked from commit 45d7f251a)

5676 of 6016 branches covered (94.35%)

Branch coverage included in aggregate %.

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

10 existing lines in 4 files now uncovered.

21609 of 23350 relevant lines covered (92.54%)

879805.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.27
-0.2% src/lj_trace.c
2
96.34
-0.1% src/lj_record.c
2
99.16
-0.17% src/lj_gc.c
5
85.71
-2.16% src/lj_sysprof.c
Jobs
ID Job ID Ran Files Coverage
1 13159888065.1 05 Feb 2025 02:48PM UTC 89
92.91
GitHub Action Run
Source Files on build 13159888065
  • Tree
  • List 89
  • Changed 87
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13159888065
  • 599f90b7 on github
  • Prev Build on tarantool/release/2.11 (#13151992720)
  • Next Build on tarantool/release/2.11 (#13159888134)
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