Commit Graph

8 Commits

Author SHA1 Message Date
Jakob Borg
904664d0b0 avoid out of bounds write in unlock_notify_wait on 64 bit platforms
While `C.sizeof_unit` is 4, we convert to a Go uint and write it to the
pointer. The Go uint is eight bytes on 64 bit platforms.

Signed-off-by: Jakob Borg <jakob@kastelo.net>
2026-05-19 12:47:48 +02:00
nina
7658c06970 Fix sqlite3_opt_unlock_notify with USE_LIBSQLITE3 (#1262)
A valid sqlite header must always be included (like in the other
files) but sqlite3-binding.h explicitly guards against the system
library case.
2024-12-08 23:36:34 -05:00
Yasuhiro Matsumoto
1f0dc0a0ef go fmt ./... 2024-01-25 22:55:22 +09:00
Hanzhen Yi
2b131e01c1 change angle bracket import to quotes (#868) 2021-10-26 00:23:19 +09:00
Yasuhiro Matsumoto
fc06e55305 Add build constraints for non cgo 2019-11-18 18:03:31 +09:00
Mura Li
576a2cb9f5 Fix build failure of incorrect expression for unsafe.Sizeof 2018-10-24 09:55:24 +08:00
Mura Li
d12a1386ff Fix build failure on Windows/386
The array size exceeds the address space of 32-bit platform.
See https://github.com/mattn/go-sqlite3/issues/238
2018-10-24 00:12:27 +08:00
Mura Li
eb08795f52 Add support for sqlite3_unlock_notify 2018-10-20 10:15:13 +08:00