Skip to content
Commit 72749a27 authored by Dan Carpenter's avatar Dan Carpenter Committed by Boaz Harrosh
Browse files

exofs: Cap on the memcpy() size



This data comes from the device, so probably it's fairly trustworthy but
it makes the static checkers happy if we check it.

[Boaz]
  the system_id_len is zero, if not present, or always OSD_SYSTEMID_LEN.
  So always copy OSD_SYSTEMID_LEN bytes.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
parent 3e57638b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment