Ticket #2623: vfs: use data after free.
commit664b3efcda1c25a23b1af8766a272c30fad76337
authorAndrew Borodin <aborodin@vmail.ru>
Wed, 19 Oct 2011 08:45:28 +0000 (19 12:45 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 19 Oct 2011 08:45:28 +0000 (19 12:45 +0400)
tree9165d1e6214aca337ad7e05407099fe23352af64
parent50574c687a011b5922abbf63035a63b6f001d24e
Ticket #2623: vfs: use data after free.

(vfs_s_close): vfs-specific data of file handler
vfs_file_handler_t::data is freed in vfs_s_subclass::fh_close method and
then can be used in vfs_s_subclass::file_store_one. Bug is related to
ftp and fish VFSes.

Added new vfs_s_subclass::fh_free_data method to free vfs-specific data
of file handler vfs_file_handler_t::data. Use it in ftp and vfs VFSes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/vfs/direntry.c
lib/vfs/xdirentry.h
src/vfs/fish/fish.c
src/vfs/ftpfs/ftpfs.c