diff options
author | NeilBrown <neilb@suse.de> | 2009-08-03 10:59:56 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-08-03 10:59:56 +1000 |
commit | 3673f305faf1bc66ead751344f8262ace851ff44 (patch) | |
tree | 4cbdd23d9af20632678e95b3e8f02ede241a3917 /fs/read_write.c | |
parent | 3a981b03f38dc3b8a69b77cbc679e66c1318a44a (diff) |
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: NeilBrown <neilb@suse.de>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions