We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0c5b83f + 189e49d commit 3f5ccaeCopy full SHA for 3f5ccae
1 file changed
libsql/src/local/connection.rs
@@ -462,6 +462,13 @@ impl Connection {
462
// and more efficient buffer usage for extracting wal frames and spliting them off.
463
let mut buf = bytes::BytesMut::with_capacity(frame_size);
464
465
+ if frame_no == 0 {
466
+ return Err(errors::Error::SqliteFailure(
467
+ 1,
468
+ "frame_no must be non-zero".to_string(),
469
+ ));
470
+ }
471
+
472
let rc = unsafe {
473
libsql_sys::ffi::libsql_wal_get_frame(
474
self.handle(),
0 commit comments