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

tarantool / luajit / 10452023371
93%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: tarantool/release/2.11
DEFAULT BRANCH: tarantool/master
Ran 19 Aug 2024 10:58AM 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

19 Aug 2024 10:54AM UTC coverage: 92.752% (-0.04%) from 92.796%
10452023371

push

github

Buristan
FFI: Fix __tostring metamethod access to enum cdata value.

Thanks to Sergey Kaplun.

(cherry picked from commit f2a1cd432)

On a 64-bit host, `*(uint32_t **)p` (in the
`lj_cf_ffi_meta___tostring()`) is the read of 8 bytes, while the size of
the cdata tail for the enum is only 4. This leads to heap-buffer-overflow
during the call of `tostring()` on the corresponding cdata.

This patch fixes the pointer cast to `(uint32_t *)p`, which is correct.

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

Part of tarantool/tarantool#10199

5676 of 6025 branches covered (94.21%)

Branch coverage included in aggregate %.

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

15 existing lines in 4 files now uncovered.

21645 of 23431 relevant lines covered (92.38%)

2946642.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10452023371.1 19 Aug 2024 10:58AM UTC 0
92.75
GitHub Action Run
Source Files on build 10452023371
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10452023371
  • 7969a9ba on github
  • Prev Build on tarantool/master (#10402067911)
  • Next Build on skaplun/lj-1232-fix-enum-tostring (#11344447181)
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