am aecf0e2a: am f3d3ce5e: add bounds checking for mPartMinors[]

* commit 'aecf0e2a3dd1a72e448d9df7ed69533578dda12c':
  add bounds checking for mPartMinors[]
gugelfrei
Nick Kralevich 13 years ago committed by Android Git Automerger
commit 19df18af24

@ -186,6 +186,11 @@ void DirectVolume::handlePartitionAdded(const char *devpath, NetlinkEvent *evt)
part_num = 1;
}
if (part_num > MAX_PARTITIONS || part_num < 1) {
SLOGW("Invalid 'PARTN' value");
part_num = 1;
}
if (part_num > mDiskNumParts) {
mDiskNumParts = part_num;
}

Loading…
Cancel
Save