mirror of
https://github.com/kopia/kopia.git
synced 2026-04-04 06:22:59 -04:00
Minor robustness improvements - add safety check when converting file descriptor (`os.File.Fd()`) to `int` - check that file descriptor returned by Open (on Linux) is non-negative before converting to `uintptr`. This addresses a linter warning for a most-likely-non-existent-edge-case of converting a negative file descriptor. - check that parsed content IDs (hashes) do not exceed the maximum id hash length. - add nolint annotation for safe conversion