From dd907a44adce222aefd760ddba3d909c4f7d0772 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 25 Apr 2022 17:41:42 +0100 Subject: [PATCH] dll: fuse: ensure MaxComponentLength is initialized --- src/dll/fuse/fuse_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dll/fuse/fuse_loop.c b/src/dll/fuse/fuse_loop.c index ce83758d..7da22a8a 100644 --- a/src/dll/fuse/fuse_loop.c +++ b/src/dll/fuse/fuse_loop.c @@ -196,7 +196,7 @@ static NTSTATUS fsp_fuse_loop_start(struct fuse *f) f->VolumeParams.SectorSize = FSP_FUSE_SECTORSIZE_MAX; if (f->VolumeParams.SectorsPerAllocationUnit == 0) f->VolumeParams.SectorsPerAllocationUnit = 1; - if (f->VolumeParams.MaxComponentLength > 255) + if (f->VolumeParams.MaxComponentLength == 0 || f->VolumeParams.MaxComponentLength > 255) f->VolumeParams.MaxComponentLength = 255; if (0 == f->VolumeParams.VolumeCreationTime)