Skip to content
Commit 77906a50 authored by Li Zefan's avatar Li Zefan Committed by Chris Mason
Browse files

Btrfs: copy string correctly in INO_LOOKUP ioctl



Memory areas [ptr, ptr+total_len] and [name, name+total_len]
may overlap, so it's wrong to use memcpy().

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent b783e62d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment