Commit e614620
committed
fix: zero-initialize column arrays to prevent crash on error cleanup
col_merge_stmt and col_value_stmt were allocated with
cloudsync_memory_alloc (unzeroed). If an error occurred before
the prepared statements were assigned, the cleanup handler called
databasevm_finalize on uninitialized garbage pointers, causing a
SIGSEGV. Changed all four column arrays to cloudsync_memory_zeroalloc
to match col_algo and col_delimiter.1 parent b652757 commit e614620
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | | - | |
| 1082 | + | |
1083 | 1083 | | |
1084 | | - | |
1085 | | - | |
| 1084 | + | |
| 1085 | + | |
1086 | 1086 | | |
1087 | | - | |
1088 | | - | |
| 1087 | + | |
| 1088 | + | |
1089 | 1089 | | |
1090 | | - | |
1091 | | - | |
| 1090 | + | |
| 1091 | + | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| |||
0 commit comments