[Scsirastools-developers] [PATCH] support more devices in sgdiag and check devlist array bo unds
Brought to you by:
arcress
From: Dailey, N. <Nat...@st...> - 2005-05-10 19:40:00
|
I hit a segmentation fault in sgdiag on a system with more than 32 devices. It turns out that there's no bounds checking on the devlist array, so additional devices trample on memory outside the devlist. The attached patch prevents writing outside the bounds of the array, and also ups the number of devices. It looks like the same problem exists in sgdefects, sgdskfl, and sgmode, but I haven't tested them to verify. This patch is against scsirastools 1.4.14. Nate Dailey Stratus Technologies |