Conversation
Critical fixes: - Fix FD TOCTOU race in nif_close — move close() inside mutex - Fix cgroup path traversal — reject ".." and absolute paths - Fix 11 FD leaks in shepherd error paths (PTY + pipe modes) - Fix kill_timeout_ms integer overflow, replace atoi with strtol - Validate signal range (1-31) in CMD_KILL handler - NULL-check CMSG_FIRSTHDR return, check sigaction return Elixir error handling: - Fix resource leak in spawn_process with two-stage with cleanup - Fix stream writer crash skipping cleanup (halt then re-raise) - Add force_exit_timeout for hung shepherd (no exit status) Build hardening: - Add -fstack-protector-strong, -D_FORTIFY_SOURCE=2 - Add PIE, RELRO, noexecstack linker flags - Use pipe2(O_CLOEXEC) on Linux, set_cloexec on macOS Tests & CI: - Add leak_test.exs with 9 new tests (FD leaks, concurrent close+read, stream abort, cgroup validation, edge cases) - Add macOS to CI test matrix - Enforce :linux_only tag exclusion on non-Linux - Bump version 1.0.0 → 1.0.1
2077561 to
8cc79d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.