]> git.ipfire.org Git - thirdparty/sqlite.git/commit
When saving the position of a cursor at the b-tree layer, allocate a few extra
authordan <dan@noemail.net>
Fri, 14 Dec 2018 13:18:35 +0000 (13:18 +0000)
committerdan <dan@noemail.net>
Fri, 14 Dec 2018 13:18:35 +0000 (13:18 +0000)
commitfffaf2301346190479d9febd4b563cf117bd47cb
tree28e2af6fe643da2c7d07dd4020a18b43cf02a69d
parent5a1ce4369f95cb09960e664e80a551f1f968c5f8
When saving the position of a cursor at the b-tree layer, allocate a few extra
bytes at the end of the buffer used to save the key. Otherwise, if the key is
corrupt, the code that restores the cursor position may overread the buffer by a
little.

FossilOrigin-Name: 160b1e31c0f27257c06c2987af9ec3a64abfacb2150325b72e8ccd3d217b5baa
manifest
manifest.uuid
src/btree.c
test/dbfuzz001.test