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

tarantool / luajit / 7799094715
93%

Build:
DEFAULT BRANCH: tarantool/master
Ran 06 Feb 2024 11:45AM UTC
Jobs 1
Files 89
Run time 8s
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

06 Feb 2024 11:26AM UTC coverage: 88.915% (+0.004%) from 88.911%
7799094715

push

github

igormunkin
Fix zero stripping in %g number formatting.

Reported by pwnhacker0x18.

(cherry picked from commit 343ce0eda)

LuaJIT uses `lj_strfmt_wfnum()` for number formatting. In the situation
when the precision (`prec`) and amount of digits (`hilen`) for the
decimal representation are the same and `ndhi` == 0, the `ndlo` part
becomes 64 (the size of the `nd` stack buffer), and the overflow occurs.

This patch adds the corresponding mask (0x3f == 63) for the `ndlo`
incrementation result.

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

Part of tarantool/tarantool#9595

Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org>
Signed-off-by: Igor Munkin <imun@tarantool.org>

5404 of 5999 branches covered (0.0%)

Branch coverage included in aggregate %.

20712 of 23373 relevant lines covered (88.62%)

2740368.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7799094715.1 06 Feb 2024 11:45AM UTC 89
88.91
GitHub Action Run
Source Files on build 7799094715
  • Tree
  • List 89
  • Changed 86
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7799094715
  • 15acf5b2 on github
  • Prev Build on tarantool/master (#7798458690)
  • Next Build on tarantool/master (#7804005274)
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

© 2025 Coveralls, Inc