Commit 189e49d
committed
libsql: error on invalid frame_no on wal read
This prevents a potential panic that can happen in our ffi code when it
expects a NonZero value but the input type into the unsafe function is a
u32, meaning the compiler will not enforce the value and will result in
a panic. This changes it so that when the code is called via the sys
crate safe code it will return a sqlite failure.
Closes #18681 parent 0c5b83f commit 189e49d
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
465 | 472 | | |
466 | 473 | | |
467 | 474 | | |
| |||
0 commit comments