Skip to content

Panic in FUSE #1110

@mkroening

Description

@mkroening

This program

fn main() {
    std::fs::write("/root/test.txt", "important content").unwrap();
}

has an out-of-bounds panic since #1047:

[0][PANIC] panicked at src/fs/fuse.rs:528:50:
range end index 10 out of range for slice of length 0

Bisecting gives 93fc6cb as reason:

93fc6cbb2ab2432b3d895a28fd1507226823734c is the first bad commit
commit 93fc6cbb2ab2432b3d895a28fd1507226823734c
Author: Çağatay Yiğit Şahin <cyigitsahin@outlook.com>
Date:   Wed Feb 14 15:54:59 2024 +0100

    fuse: remove dependency on unstable ptr_metadata

 src/fs/fuse.rs | 28 +++++++++++-----------------
 src/lib.rs     |  1 -
 2 files changed, 11 insertions(+), 18 deletions(-)

CC: @cagatay-y

PS: I should really fix #620.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions