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

dangernoodle-io / breadboard / 30592091684
97%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2026 11:59PM UTC
Jobs 1
Files 208
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

30 Jul 2026 11:57PM UTC coverage: 96.602%. Remained the same
30592091684

push

github

web-flow
fix: share one scratch buffer in diag_section_dispatch to stop httpd stack overflow (#1154)

diag_section_dispatch() (platform/espidf/bb_diag_http/bb_diag_http_section_dispatch.c)
declared two BB_DIAG_SECTION_SCRATCH_BYTES-sized locals in mutually
exclusive branches of the same function -- dst in the sec->iter
two-phase path (which always returns before falling through) and
scratch in the direct sec->fill path. They are never simultaneously
live, but at -Og (CONFIG_COMPILER_OPTIMIZATION_DEBUG=y) the compiler
does not coalesce same-sized locals in disjoint lexical scopes of one
function -- it reserved stack for both, making this the largest frame
in the whole httpd call graph (measured 3344B via DWARF
DW_CFA_def_cfa_offset) and overflowing CONFIG_BB_HTTP_TASK_STACK_SIZE
on a real GET /api/diag/meminfo request (reproduced twice on hardware).

Replaced both locals with one render_scratch buffer declared once at
function scope and reused by whichever branch runs, so the sharing is
explicit rather than relying on scope-exit reuse the compiler doesn't
perform. Re-measured frame: 3344B -> 1808B, a 1536B drop (exactly
BB_DIAG_SECTION_SCRATCH_BYTES), confirming the double reservation is
gone. This dispatcher backs the single wildcard route for every
/api/diag/* section, so the fix benefits all of them, not just meminfo.

No wire-format change: same buffer size, same fill/iter/serialize call
order: all 5293 host tests pass unchanged, including the diag wire-
schema golden-content tests.

7979 of 8582 branches covered (92.97%)

Branch coverage included in aggregate %.

13568 of 13723 relevant lines covered (98.87%)

2606.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30592091684.1 30 Jul 2026 11:59PM UTC 208
96.6
GitHub Action Run
Source Files on build 30592091684
  • Tree
  • List 208
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30592091684
  • acbae6ed on github
  • Prev Build on main (#30591377870)
  • Next Build on main (#30592839699)
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