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

tarantool / luajit / 6036986769
89%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: tarantool/release/2.11
DEFAULT BRANCH: tarantool/master
Ran 31 Aug 2023 12:01PM UTC
Jobs 1
Files 89
Run time 5s
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

31 Aug 2023 11:55AM UTC coverage: 88.201% (+0.2%) from 88.01%
6036986769

push

github

ligurio
LJ_GC64: Fix lua_concat().

Reported by Mathias Westerdahl.

(cherry picked from commit 633f265f6)

Lua 5.1 Reference Manual [1] defines a function `lua_concat`, that:

> void lua_concat (lua_State *L, int n);
>
> Concatenates the n values at the top of the stack, pops them, and leaves
> the result at the top.

Without the patch lua_concat() behaved incorrectly with userdata.
Assuming we have three literals and a userdata with defined "__concat"
metamethod on top of the Lua stack:

1 [string]
2 [string]
3 [string]
4 [string]
5 [userdata] <--- top

On attempt to concatenate *two* items, lua_concat() concatenates *four*
items and leaves result at the top:

1 [string]
2 [string]
3 [string][string][string][userdata] <--- top

The patch fixes this behaviour.

1. https://www.lua.org/manual/5.1/manual.html

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 %.

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

20470 of 23288 relevant lines covered (87.9%)

1294621.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6036986769.1 31 Aug 2023 12:01PM UTC 0
88.2
GitHub Action Run
Source Files on build 6036986769
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6036986769
  • ba2baabb on github
  • Prev Build on tarantool/master (#6010772579)
  • Next Build on ligurio/lj-881-fix-concat (#6214851898)
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