24.11.2014 05:47, zhanghailiang write: > Array index starts at 0, so the valid index of ext_queue array, > io_queue array, mchk_queue array should be MAX_EXT_QUEUE - 1, > MAX_IO_QUEUE - 1, MAX_MCHK_QUEUE - 1. > > The original checks missed the invalid bound value, which will lead > possible out of bounds read in the follow codes.
Applied to -trivial, thank you! /mjt