You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: cap observer channel_capacity to prevent memory exhaustion
observe() passed user-supplied channel_capacity directly to
tokio::sync::broadcast::channel() without bounds. A capacity of 0
panics, and a very large value pre-allocates an enormous ring buffer.
Add an assertion in ObservationBroker::new() to reject zero capacity at
the crate level, preventing a panic regardless of how the crate is used.
In the plugin layer, validate that channel_capacity is between 1 and
10,000 before applying it, returning an INVALID_CONFIG error otherwise.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments