Skip to content

Audit/codebase review#355

Merged
0pcom merged 4 commits intoskycoin:developfrom
0pcom:audit/codebase-review
Mar 29, 2026
Merged

Audit/codebase review#355
0pcom merged 4 commits intoskycoin:developfrom
0pcom:audit/codebase-review

Conversation

@0pcom
Copy link
Copy Markdown
Collaborator

@0pcom 0pcom commented Mar 29, 2026

No description provided.

0pcom added 4 commits March 29, 2026 12:14
- Replace panic with error return in updateServerEntry for empty addr
- Fix integer underflow in available sessions calculation (clamp to 0)
- Fix deadlock risk: move session callbacks outside sessionsMx lock,
  have callbacks acquire lock themselves to avoid recursive locking
- Fix double-close in SessionCommon.Close: use else-if so only the
  active mux (smux or yamux) is closed, not both
- Fix unbounded backoff growth when maxBO is 0
- Add logging when listener accept buffer is full (was silent drop)
- Log when error channel is full and errors are dropped
- Replace panic() with error return in hostMux.Handle and ServeConn
  path match — prevents crashes from malformed URL patterns
- Cap PtyGateway.Read allocation to 64KB to prevent memory exhaustion
  from malicious or buggy RPC requests
- Add MaxHeaderBytes (16KB) to dmsghttp server to mitigate slowloris
- Remove stray println() debug output in dmsgpty-cli
- Fix context.Background() replacing parent context in dmsghttp proxy
  setup — signal cancellation was being lost
- Add 50ms backoff on temporary accept errors in dmsgpty host to
  prevent CPU spin on persistent transient errors
When output is a directory, the URL path was joined directly without
sanitization, allowing paths like ../../etc/passwd to escape the
intended output directory. Use filepath.Base to extract only the
filename component.
Update github.com/skycoin/skywire to a5facdc74e72d4a3562e90cf7318e0f235b6d48f
Also updates skycoin, pgx, goldmark, and resolves genproto module conflict.
@0pcom 0pcom merged commit 095b25f into skycoin:develop Mar 29, 2026
3 checks passed
@0pcom 0pcom deleted the audit/codebase-review branch March 30, 2026 12:45
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