git: Fix null dereference bug in fuse and re-enable it.

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 13 13:30:17 PDT 2024


commit df8dfe6e4994f81f7a8a3cf7c5fbdce4451ac41b
Author: Kyle Butt <kyle at iteratee.net>
Date:   Wed Mar 13 14:04:32 2024 -0600

    Fix null dereference bug in fuse and re-enable it.
    
    There was a null dereference bug in fuse if the subtype was null.
    subtype is supposed to be optional, as demonstrated by the code, so test
    it for null before copying it in from userspace.
    
    Remove the redundant memcpy which appears to have been missed when the
    code was changed to memset/copyinstr.

Summary of changes:
 sys/vfs/Makefile           |  2 +-
 sys/vfs/fuse/fuse_vfsops.c | 15 ++++++++-------
 2 files changed, 9 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/df8dfe6e4994f81f7a8a3cf7c5fbdce4451ac41b


-- 
DragonFly BSD source repository


More information about the Commits mailing list