Skip to content

fix: safety hardening for pointer casts, integer bounds, and magic constants#377

Merged
kacy merged 3 commits intomainfrom
fix/safety-hardening
Apr 2, 2026
Merged

fix: safety hardening for pointer casts, integer bounds, and magic constants#377
kacy merged 3 commits intomainfrom
fix/safety-hardening

Conversation

@kacy
Copy link
Copy Markdown
Owner

@kacy kacy commented Apr 2, 2026

Summary

  • add upper bound check to inotify event offset validation in dev watcher processEvents, matching the existing check in processEventsMulti
  • add explicit maxInt upper bound checks before @intcast for cpu_cores (u32), memory_mb (u64), gpu_count (u32), gpu_vram_mb (u64) in agent registration
  • extract magic buffer size 16 * 1024 to named constant stream_buffer_size in http2 passthrough

@kacy kacy merged commit 0db3578 into main Apr 2, 2026
6 of 7 checks passed
@kacy kacy deleted the fix/safety-hardening branch April 2, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant