Minimal SQLite key-value store for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(sqlite): zero reserved header bytes 72-91 per spec section 1.2

The 20-byte reserved-for-expansion region was not being zeroed,
causing non-zero bytes from the reused page buffer to leak into
the database header. Found by the spec header values test.

+2
+2
lib/sqlite.ml
··· 302 302 Btree.Page.set_u32_be buf 60 0; 303 303 Btree.Page.set_u32_be buf 64 0; 304 304 Btree.Page.set_u32_be buf 68 0; 305 + (* Offsets 72-91: reserved for expansion, must be zero (spec section 1.2) *) 306 + Bytes.fill buf 72 20 '\x00'; 305 307 Btree.Page.set_u32_be buf 92 1; 306 308 Btree.Page.set_u32_be buf 96 3046000 307 309