chore: Handled decoding errors.

This commit is contained in:
2026-06-24 11:40:24 -04:00
parent a11925e720
commit 9256d94f70
2 changed files with 9 additions and 5 deletions

View File

@@ -10,7 +10,7 @@
5. Generate md and man pages again.
6. **db.odin:324-327** — Map iteration (`remote_set`) is non-deterministic. Same file can produce different JSON on each backup, causing spurious DB diffs. Sort remotes before storing.
6. Json may be an expensive encoding for remotes. Confirm with spall, and use null terminated strings if necessary.
7. Make sure official path separators are used when appropriate, rather than '/'.
@@ -20,8 +20,6 @@
10. **config.odin:178**`search_paths` silently ignores `os.user_home_dir` error. If home is empty, `~` isn't expanded. Same class of bug as issue 3.
11. **db.odin:115**`json.unmarshal_string` error not checked. Malformed JSON silently produces empty/partial data.
12. **db.odin:352-353**`hex.encode` error ignored. `string(hex_bytes)` aliases the byte slice.
13. **cmd_sync.odin:80, cmd_list.odin:33**`make([]string, 2)` for table rows never freed. Leaks per row. Defer to memory pass.