Add safe type assertions in event processing #5

Closed
opened 2026-02-02 10:00:56 +01:00 by qwc · 0 comments
Owner

Phase 1: Security Hardening

message["data"].(map[string]interface{}) and v.(string) panic on unexpected types.

Tasks

  • Use comma-ok pattern for all type assertions
  • Add input length validation on socket reads

Files

  • events.go
## Phase 1: Security Hardening `message["data"].(map[string]interface{})` and `v.(string)` panic on unexpected types. ### Tasks - Use comma-ok pattern for all type assertions - Add input length validation on socket reads ### Files - `events.go`
qwc closed this issue 2026-02-02 14:09:19 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwc-open/backive#5
No description provided.