qing
3c50a862d3
fix(libmsg): complete security audit round 2 - fix P0 race + harden input validation
- P0: fix _close_all_clients() race condition (CWE-362) - hold per-connection send_lock
before close() to prevent messages being sent to wrong client after fd reuse
- P2: add comprehensive input validation for all public APIs
(timeout/port/workers/max_connections/batch_size etc. bounds checking)
- P2: add UTF-8 payload validation (isValidUtf8) aligning with Python pymsg behavior,
rejecting overlong encodings, surrogate pairs, truncated/invalid sequences
- P2: document pmsg_recv(int) precondition and recommend deadline mode
- add constructor validation for MsgClient/MsgServer/AsyncQueue/RpcClient/RpcServer
- add add_route() validation for empty route name and null handler
- update security audit report with round 2 findings and fixes (8 issues total, 100% fixed)
2026-08-07 21:01:34 +08:00
..
2026-08-03 14:12:45 +08:00
2026-08-06 15:25:07 +00:00
2026-08-03 14:12:45 +08:00
2026-08-06 15:25:07 +00:00
2026-08-03 14:12:45 +08:00
2026-08-06 15:25:07 +00:00
2026-08-07 20:48:22 +08:00
2026-08-03 14:12:45 +08:00
2026-08-03 13:21:48 +08:00
2026-08-06 15:25:07 +00:00
2026-08-03 14:12:45 +08:00
2026-08-06 15:25:07 +00:00
2026-08-06 15:25:07 +00:00
2026-08-07 21:01:34 +08:00
2026-08-06 18:14:01 +00:00
2026-08-04 19:02:22 +08:00
2026-08-03 22:30:17 +08:00
2026-08-06 15:25:07 +00:00
2026-08-04 08:26:57 +08:00
2026-08-03 22:05:02 +08:00
2026-08-03 14:12:45 +08:00