发布

  • server: validate local path on safetensor create (#9379)

    frostbyte_neo 发布于 2025-03-01 00:10:43 +00:00

    More validation during the safetensor creation process.
    Properly handle relative paths (like ./model.safetensors) while rejecting absolute paths
    Add comprehensive test coverage for various paths
    No functionality changes for valid inputs - existing workflows remain unaffected
    Leverages Go 1.24's new os.Root functionality for secure containment

    下载附件