diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-04 02:58:15 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-09-04 02:58:15 +0000 |
commit | 257c2732903c8dc2a2e5edc5013da40f3b3ad8fb (patch) | |
tree | 1d6d91ceec375c0ca2e802229011625b39511007 /lib/libsqlite3 | |
parent | f9d2816e89126e3eed53e66635fa41b8b1c74efa (diff) |
fix a race when fetching files from the kernel. the number of files
might have increased between when we got the number of files and
when we requested that number of files.
now we allocate another 10ish percent on top of what the kernel
says we need, and retry if that still isnt enough.
while here use realloc instead of constantly going through free/malloc
sequences.
with input from claudio@ deraadt@
ok millert@ guenther@
Diffstat (limited to 'lib/libsqlite3')
0 files changed, 0 insertions, 0 deletions