git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a981b0
)
md: avoid array overflow with bad v1.x metadata
author
NeilBrown
<neilb@suse.de>
Mon, 3 Aug 2009 00:59:56 +0000
(10:59 +1000)
committer
NeilBrown
<neilb@suse.de>
Mon, 3 Aug 2009 00:59:56 +0000
(10:59 +1000)
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>
No differences found