git: lib/libhammer: Fix segmentation fault by null dereference

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Aug 23 08:13:34 PDT 2016


commit 4f82a29aabd65cb99b954188c910fb13fd5c42c4
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 23 23:48:35 2016 +0900

    lib/libhammer: Fix segmentation fault by null dereference
    
    If libhammer cares about mountpoints of hammer and null,
    it needs to care about the case where pfs0 happens to be NULL.
    This occurs when a PFS(>#0) is null mounted on the mountpoint of PFS#0.
    
    This commit avoids segmentation fault, but that doesn't mean the
    result is correct. It's basically that this library doesn't fully
    consider the complexity of ondisk PFS data within HAMMER's B-Tree.

Summary of changes:
 lib/libhammer/snapshot.c | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f82a29aabd65cb99b954188c910fb13fd5c42c4


-- 
DragonFly BSD source repository


More information about the Commits mailing list