]> 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:21:07 +0000 (16:21 +0000)
committerdrh <>
Tue, 23 Jan 2024 16:21:07 +0000 (16:21 +0000)
commitda3c2bb7dbf8434b4abfe80442d04c8f001a0bf4
treedbef1948def95a632421d1fcabe172e3a65eb49d
parent2295e72ef698205390dc12aeea31872b166821f4
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: 198a1daae01dd9308f91eec1087279481ce0ff632bb3e5ab54cbf3738a903811
manifest
manifest.uuid
src/os_unix.c
src/os_win.c
test/mmap1.test
test/mmapcorrupt.test [new file with mode: 0644]