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

Alan-Jowett / ubpf / 21533917087 / 6
78%
master: 92%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-2d7c865d12
DEFAULT BRANCH: master
Ran 30 Jan 2026 11:38PM UTC
Files 70
Run time 2s
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 Jan 2026 04:02AM UTC coverage: 58.851% (+1.8%) from 57.051%
21533917087.6

push

github

web-flow
Fix MSVC C6262 warning: reduce ubpf_exec_ex stack usage (#752)

* Fix MSVC C6262 warning: reduce ubpf_exec_ex stack usage

Addresses issue #751 where ubpf_exec_ex exceeded MSVC's 1024-byte stack
threshold (was 1324 bytes).

Changes:
- Reduce _reg array from 16 to 11 elements (R0-R10 per RFC 9669)
- Reduce saved_registers array from 5 to 4 elements (R6-R9 callee-saved)
- Hoist dividend/divisor locals from signed div/mod switch cases
- Hoist _base_addr/_offset/_eff_addr/_ptr from BOUNDS_CHECK macros
- Hoist atomic operation locals (fetch, dest, val, res) to function scope

Estimated stack reduction: ~250-316 bytes.

Fixes #751

* Initialize hoisted variables to fix sanitizer warnings

The uninitialized hoisted variables triggered maybe-uninitialized warnings
in sanitizer builds. Initialize all hoisted locals to zero/NULL.

* Revert _reg[11] to _reg[16] for API compatibility

The ubpf_debug_fn callback signature in the public API uses registers[16],
so we must keep 16 elements in the _reg array. The other stack reduction
optimizations remain in place.

---------

Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>

3850 of 6542 relevant lines covered (58.85%)

20026.98 hits per line

Source Files on job run-Debug-ubuntu-24.04-arm-arm64 - 21533917087.6
  • Tree
  • List 70
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21533917087
  • b09f6b6e on github
  • Prev Job for on main (#21530943565.5)
  • Next Job for on main (#21550979206.2)
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