Commit 8fd264b
committed
fix(storage): write \u0000-free same-slot check
check:nul-bytes caught a raw NUL used as an impossible-record-id sentinel in
the copy-on-claim same-slot comparison. A raw NUL makes ripgrep treat the whole
file as binary, so it silently drops out of code search and every grep-based
lint. Replaced with an explicit null check plus a named isSameSlot helper,
which says what it means and is reused by claimFile.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHpGw3GBA9aFpfwVArRWfd1 parent f905943 commit 8fd264b
1 file changed
Lines changed: 16 additions & 11 deletions
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
130 | 142 | | |
131 | 143 | | |
132 | 144 | | |
| |||
229 | 241 | | |
230 | 242 | | |
231 | 243 | | |
232 | | - | |
233 | | - | |
234 | | - | |