]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfscommon/BTree/BTreeMiscOps.c
xnu-517.tar.gz
[apple/xnu.git] / bsd / hfs / hfscommon / BTree / BTreeMiscOps.c
index bd4282a1286c69575f49bf06ff0e4286bc108a72..156d84020905bb7c44783f1153a7e419f55022f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -176,7 +176,7 @@ OSStatus    VerifyHeader    (FCB                            *filePtr,
 
        forkSize = (UInt64)totalNodes * (UInt64)header->nodeSize;
        
 
        forkSize = (UInt64)totalNodes * (UInt64)header->nodeSize;
        
-       if ( forkSize != filePtr->fcbEOF )
+       if ( forkSize > filePtr->fcbEOF )
                return fsBTInvalidHeaderErr;
        
        if ( header->freeNodes >= totalNodes )
                return fsBTInvalidHeaderErr;
        
        if ( header->freeNodes >= totalNodes )