crawshaw / sqlite

Go SQLite3 driver
ISC License
561 stars 67 forks source link

Update SQLite to v3.38.5 #133

Closed vrischmann closed 2 years ago

vrischmann commented 2 years ago

Fixes the following warning on GCC 11+:

# crawshaw.io/sqlite
In file included from ./static.go:19:
././c/sqlite3.c: In function ‘sqlite3Fts5IndexQuery’:
././c/sqlite3.c:226544:18: warning: ‘memcpy’ specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
226544 |     if( nToken ) memcpy(&buf.p[1], pToken, nToken);
       |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes #127

AdamSLevy commented 2 years ago

I appreciate the update but just for security reasons I've made my own commits to update the sqlite C files.