Files
Xray-core/proxy
copilot-swe-agent[bot] c00c697b65 Address code review feedback - improve robustness
- Use named constant for dataChan buffer size
- Add bounds checking to prevent panic if n > len(data)
- Only send valid data portion (buf[:n]) to dataChan
- Use sync.Once to prevent double-close panic in Close()
- Add comment explaining data loss risk (acceptable for UDP-like behavior)

All tests pass, no security vulnerabilities found.

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
2026-01-11 09:23:33 +00:00
..
2024-11-09 11:16:11 +00:00
2025-09-05 08:15:16 +00:00
2024-11-09 11:16:11 +00:00