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

tarantool / luajit / 8239484615
93%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: skaplun/lj-1418-1422-dualnum-narrowing-0
DEFAULT BRANCH: tarantool/master
Ran 11 Mar 2024 08:47PM 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

11 Mar 2024 08:43PM UTC coverage: 92.534% (-0.1%) from 92.629%
8239484615

push

github

mkokryashkin
Handle stack reallocation in debug.setmetatable() and lua_setmetatable().

Thanks to Sergey Kaplun.

(cherry picked from commit 88ed9fdbb)

When we use the aforementioned functions to set a metatable for types
with one shared metatable, we must flush all traces since they are
specialized to base metatables. If we have enabled vmevent handlers,
they invoke a callback on trace flushing. This callback may reallocate
the Lua stack. Thus invalidates the reference to the `TValue *` object
`o` by the given index in the `lua_setmetatable()` and leads to a
heap-use-after-free error.

This patch fixes the behaviour by recalculating the address by the given
index after possible stack reallocation.

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

Part of tarantool/tarantool#9595

5653 of 6016 branches covered (93.97%)

Branch coverage included in aggregate %.

21575 of 23409 relevant lines covered (92.17%)

2816108.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8239484615.1 11 Mar 2024 08:47PM UTC 0
92.53
GitHub Action Run
Source Files on build 8239484615
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8239484615
  • 55f18ac4 on github
  • Prev Build on tarantool/master (#8093907727)
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