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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-2d7c865d12
DEFAULT BRANCH: master
Ran 30 Jan 2026 11:38PM UTC
Files 85
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: 75.917% (+0.6%) from 75.28%
21533917087.3

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>

3663 of 4825 relevant lines covered (75.92%)

375266.04 hits per line

Source Files on job run-Debug-macos-latest-x86_64 - 21533917087.3
  • Tree
  • List 85
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21533917087
  • b09f6b6e on github
  • Prev Job for on main (#21530943565.2)
  • 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