mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-20 21:28:16 -04:00
fix(security): justify the last two gosec findings in new code
The frame length conversion is already bounded by the guard three lines above it, which caps a payload at 1024 bytes and so cannot truncate a uint16. The agent pick spreads work across workers that are equivalent by construction, and predicting it buys an attacker nothing. Both carry a #nosec naming the rule and the reason rather than a silent suppression, matching the rest of the tree. Assisted-by: Claude Opus 5 [claude-code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f