mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Fix logic inversion bug in ntfs_extent_inode_open().
Spotted and fixed by Szaka. This one was particularly dumb as it has been fixed in the NTFS kernel driver for over half a year but the fix was never propagated into the library. )-: (Logical change 1.39)
This commit is contained in:
parent
e1e3e56c54
commit
f34b2fa185
@ -284,7 +284,7 @@ ntfs_inode *ntfs_extent_inode_open(ntfs_inode *base_ni, const MFT_REF mref)
|
||||
ni->nr_extents = -1;
|
||||
ni->base_ni = base_ni;
|
||||
/* Attach extent inode to base inode, reallocating memory if needed. */
|
||||
if (!(base_ni->nr_extents & ~3)) {
|
||||
if (!(base_ni->nr_extents & 3)) {
|
||||
i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
|
||||
|
||||
extent_nis = (ntfs_inode**)malloc(i);
|
||||
|
Loading…
Reference in New Issue
Block a user