Skip to content
Commit 3673f305 authored by NeilBrown's avatar NeilBrown
Browse files

md: avoid array overflow with bad v1.x metadata



We trust the 'desc_nr' field in v1.x metadata enough to use it
as an index in an array.  This isn't really safe.
So range-check the value first.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 3a981b03
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