]> git.ipfire.org Git - thirdparty/sqlite.git/commit
In os_unix.c and os_win.c, do not allow xFetch() to return a pointer to a page buffer...
authordrh <>
Tue, 23 Jan 2024 16:17:00 +0000 (16:17 +0000)
committerdrh <>
Tue, 23 Jan 2024 16:17:00 +0000 (16:17 +0000)
commita8556eef911f0b428f74afa1cc7ad53f5524eb49
treeaaca07b6e0a9be71c37844ea862434fea403fead
parente8df88eae9678988b718f47649b981d1efd2a1ff
In os_unix.c and os_win.c, do not allow xFetch() to return a pointer to a page buffer that is right at the end of the mapped region - if the database is corrupted in a specific way such a page buffer might be overread by several bytes.

FossilOrigin-Name: d131cab652ac11795322af13d0b330e7e44ab91587a1a3e73fe7b9a14b2dd531
manifest
manifest.uuid
src/os_unix.c
src/os_win.c
test/mmap1.test
test/mmapcorrupt.test [new file with mode: 0644]