diff --git a/ChangeLog b/ChangeLog index f96d5546..e085112c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +xx/xx/xxxx - 1.10.1-WIP + + - Fix memory managament error in ntfs_inode_close. (Yura) + 20/06/2005 - 1.10.0 - Lots of new features, enhancements, and bug fixes. - Add start_vcn parameter to ntfs_get_size_for_mapping_pairs() and diff --git a/libntfs/inode.c b/libntfs/inode.c index cbab29fe..cc0ead1b 100644 --- a/libntfs/inode.c +++ b/libntfs/inode.c @@ -255,7 +255,8 @@ int ntfs_inode_close(ntfs_inode *ni) */ if (--base_ni->nr_extents) { /* Resize the memory buffer. */ - tmp_nis = realloc(tmp_nis, base_ni->nr_extents * + tmp_nis = realloc(tmp_nis, ((base_ni-> + nr_extents + 3) & ~3) * sizeof(ntfs_inode *)); /* Ignore errors, they don't really matter. */ if (tmp_nis)