]> 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...
authordan <Dan Kennedy>
Tue, 23 Jan 2024 16:09:22 +0000 (16:09 +0000)
committerdan <Dan Kennedy>
Tue, 23 Jan 2024 16:09:22 +0000 (16:09 +0000)
commitbcf3df01928257644f91ead9a28b7b8487104508
treed7a6da8a0ebe2df8fda318bd3ee77ac770fc2644
parent1ff9a7bc8d04487c19c15b9ae1b8398ce35c075f
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: 2684feac3bc9c5463604900d72710be861527614f4957224c74a16a3b3c702f5
manifest
manifest.uuid
src/os_unix.c
src/os_win.c
test/mmap1.test
test/mmapcorrupt.test [new file with mode: 0644]