0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-06-02 13:52:52 +00:00
Files
libsql/libsql-ffi
Glauber Costa 49db7d57b7 Make sure the C code doesn't segfault (#1108)
* make sure pager is valid

We have had a segfault issue recently because the pager passed down
to the c code was null. That happened because libsql-server had
encryption disabled, while libsql had encryption enabled.

To prevent issues like that in the future, the C code should be checking
if the arguments it needs are valid.

Because this function returned a pointer, we now change it so that it
can return an integer, with the pointer as a return argument.

* update generated code

We have generated code in-tree. We should either remove it, or keep it
in sync. For now, just keeping it in sync.

This patch is just the result of running tests, and seeing what changes.
2024-02-28 20:05:50 +00:00
..
2024-02-06 17:44:23 +00:00
2024-02-28 14:08:03 +00:00