Commit 28a22ea
fix: add memmove bounds check and prepare failure handling
- Add explicit bounds check before memmove header prepend in MCP tool
(prevents overflow if safety limit is raised in the future)
- Early-return with log_warn if INSERT prepare fails in write_crosslinks
(avoids silent O(n^2) no-op loop)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1242f50 commit 28a22ea
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3490 | 3490 | | |
3491 | 3491 | | |
3492 | 3492 | | |
| 3493 | + | |
3493 | 3494 | | |
3494 | 3495 | | |
3495 | 3496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| |||
0 commit comments