Message ID | fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: send: fix buffer overflow when reversing path that is full | expand |
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 7f48ba6c1c77..0c5a62da802d 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -620,7 +620,7 @@ static void fs_path_unreverse(struct fs_path *p) len = p->end - p->start; p->start = p->buf; p->end = p->start + len; - memmove(p->start, tmp, len + 1); + memmove(p->start, tmp, len); p->reversed = 0; }