DragonFly-2.1.1.108.g46098a master sys/vfs/ntfs ntfs_vfsops.c

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Dec 20 13:54:24 PST 2008


commit 46098a9d0923033bb7fa4caa14ce5e1576bb2bb7
Author: Sascha Wildner <saw at online.de>
Date:   Sat Dec 20 22:52:06 2008 +0100

    Fix a dereference of an undefined value.
    
    ntmp was being accessed (via ntfs_bntodoff()) before it was allocated.
    The whole thing only worked because BBLOCK is 0 and the dereference was
    optimized away (though not with -O0).
    
    Found-by: LLVM/Clang Static Analyzer

Summary of changes:
 sys/vfs/ntfs/ntfs_vfsops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/?p=dragonfly.git;a=commitdiff;h=46098a9d0923033bb7fa4caa14ce5e1576bb2bb7


-- 
DragonFly BSD source repository





More information about the Commits mailing list