iowatcher: Add bounds checking in find_step
authorAndrew Price <anprice@redhat.com>
Wed, 6 Nov 2013 16:11:18 +0000 (16:11 +0000)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:08 +0000 (12:02 -0700)
commit173545a6275189f7947e4473cf4dae0de74e1639
tree7b9ab6f64ccae5048f7d8a0ccf5dc4fd7aa9f144
parent9d382df04ccc0f145e7f13a23757b3d0ba5a9524
iowatcher: Add bounds checking in find_step

Check the value of cur_mini_step is sane before using it as an index to
mini_step array.

Signed-off-by: Andrew Price <anprice@redhat.com>
iowatcher/plot.c