mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-03 11:34:35 -04:00
A validated model path does not validate its adjacent hash metadata. Reject symlinked metadata on reads and replace sidecars atomically through a directory handle, without writing to symlink targets. Regression tests reproduce forged hashes from external sidecars. Focused file-transfer tests pass. The targeted gosec scan reports 20 fewer findings; remaining findings are not suppressed. Assisted-by: Codex:gpt-6