Commit d04e2ae
Fix remaining fuzzer issues: leaks and macOS SDK headers
sqlite-vec.c:
- vec0_free: add loops to free partition, auxiliary, and metadata
column names (previously leaked on error paths)
- vec0_init: update pNew->numXxxColumns incrementally in the parse
loop so vec0_free sees correct counts on early goto-error paths
(previously the counts were only written after the loop, so vec0_free
would loop 0 times and leak names allocated inside the loop)
fuzz.yaml:
- macOS: pass -isysroot $(xcrun --sdk macosx --show-sdk-path) so
Xcode clang can find system headers (stdio.h, assert.h, etc.)
- Fix artifact upload paths: libFuzzer writes crash-*/leak-* to
the cwd (repo root), not tests/fuzz/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e4b1e26 commit d04e2ae
2 files changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3659 | 3659 | | |
3660 | 3660 | | |
3661 | 3661 | | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
3662 | 3677 | | |
3663 | 3678 | | |
3664 | 3679 | | |
| |||
4742 | 4757 | | |
4743 | 4758 | | |
4744 | 4759 | | |
| 4760 | + | |
4745 | 4761 | | |
4746 | 4762 | | |
4747 | 4763 | | |
| |||
4770 | 4786 | | |
4771 | 4787 | | |
4772 | 4788 | | |
| 4789 | + | |
4773 | 4790 | | |
4774 | 4791 | | |
4775 | 4792 | | |
| |||
4815 | 4832 | | |
4816 | 4833 | | |
4817 | 4834 | | |
| 4835 | + | |
4818 | 4836 | | |
4819 | 4837 | | |
4820 | 4838 | | |
| |||
4842 | 4860 | | |
4843 | 4861 | | |
4844 | 4862 | | |
| 4863 | + | |
4845 | 4864 | | |
4846 | 4865 | | |
4847 | 4866 | | |
| |||
0 commit comments