]> git.tuebingen.mpg.de Git - paraslash.git/commit
buffer_tree: Assert that we don't pass NULL to memcpy().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 20 May 2025 20:47:46 +0000 (22:47 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 22 May 2025 14:44:39 +0000 (16:44 +0200)
commit24c1b93962fc54d716d15ec914f6ca35b4b50b8b
tree9f69ad7e4049d99240b3130730c18263bb8e6124
parent094af0d6526ef2bc502daf1aad3a544bbe4e89eb
buffer_tree: Assert that we don't pass NULL to memcpy().

The buffer pointer cannot be NULL here because this only happens when the
buffer tree area is full, which is not the case thanks to the previous n <=
btr_pool_unused(btrp) check.
buffer_tree.c