In os_unix.c and os_win.c, do not allow xFetch() to return a pointer to a page buffer...
commita18ec0275c885d6584b1861d1658c09981d4987e
authorDan Kennedy <danielk1977@gmail.com>
Tue, 23 Jan 2024 16:09:22 +0000 (23 16:09 +0000)
committerDan Kennedy <danielk1977@gmail.com>
Tue, 23 Jan 2024 16:09:22 +0000 (23 16:09 +0000)
treebe4b098e19970fc61179b02b6b73843cbd756bbf
parent7c90dae13405b5470b2e0ab7d6713270942b86b3
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.
src/os_unix.c
src/os_win.c
test/mmap1.test
test/mmapcorrupt.test [new file with mode: 0644]