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

starwing / lua-protobuf
99%

Build:
DEFAULT BRANCH: master
Repo Added 24 Jan 2018 02:16PM UTC
Files 2
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • lua54
  • master
  • new

12 Nov 2026 05:06PM UTC coverage: 99.167% (-0.4%) from 99.582%
43266354393

push

github

starwing
fix: limit message nesting depth when encoding

lpbE_field() recursed into lpbE_encode() for message fields without
using the LPB_NESTLIMIT budget, so a cyclic table or a deeply nested
table exhausted the C stack (SIGSEGV, which pcall()/xpcall() cannot
catch).

Guard the recursion with e->levels, mirroring the decoder: the 1000th
nested message field now raises "message too complex", while 999 levels
still encode and round-trip through pb.decode().

Fixes #292

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

9 existing lines in 2 files now uncovered.

1904 of 1920 relevant lines covered (99.17%)

11340.58 hits per line

Relevant lines Covered
Build:
Build:
1920 RELEVANT LINES 1904 COVERED LINES
11340.58 HITS PER LINE
Source Files on master
  • Tree
  • List 2
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
43266354393 master fix: limit message nesting depth when encoding lpbE_field() recursed into lpbE_encode() for message fields without using the LPB_NESTLIMIT budget, so a cyclic table or a deeply nested table exhausted the C stack (SIGSEGV, which pcall()/xpcall() c... push 12 Nov 2026 05:09PM UTC starwing github
99.17
41325473982 master build: fix MSVC C4267 and add a Windows build script pb_Buffer.size is unsigned, but oldlen in both encoders was size_t, so MSVC warned C4267 at `pb_bufflen(...) = oldlen`. Declare oldlen as unsigned; len stays size_t because it receives pb_add*... push 01 Nov 2026 04:16PM UTC starwing github
99.58
41321898727 master fix: initialize the packed-field slice before decoding Static analysis (SonarCloud) flags `p` as possibly uninitialized: lpb_readbytes() always raises on bad input instead of returning, but that is not visible to the analyzer. Start the slice em... push 01 Nov 2026 03:34PM UTC starwing github
99.58
41320810709 master style: shrink long signatures, compact bodies, fix analyzer findings Follow-up to 4e9edf0: the 80-column pass left the signatures that clang-format cannot break, and this commit reworks them instead of folding lines, keeps the compact single-stat... push 01 Nov 2026 03:21PM UTC starwing github
99.58
28603515184 master fix: `buffer.pack("c")` with zero-length slice push 02 Jul 2026 03:54PM UTC starwing github
99.66
28255608145 master fix: add recursion depth limit for message decoding This commit addresses the DoS vulnerability caused by unbounded mutual recursion when processing deeply nested unknown SGROUP/EGROUP tags or length delimited messages. This fix introduces a pre... push 26 Jun 2026 05:52PM UTC starwing github
99.65
21317018158 master fix `buffer:result()` for empty buffer push 24 Jan 2026 03:03PM UTC starwing github
99.65
20958394490 master remove PBT_DEADKEY to save `-1` in table push 13 Jan 2026 01:26PM UTC starwing github
99.65
20957122834 master add Lua 5.5 support - fix "out of memory" issue. - add `lua_pushexternalstring` support. push 13 Jan 2026 12:42PM UTC starwing github
99.65
15313319758 master improve documents push 29 May 2025 12:30AM UTC starwing github
99.66
See All Builds (327)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc