ich_descriptors: Fix range checks for dumps

These explicit off-by-one calculations were... off-by-one.

BUG=chromium:478356
BRANCH=none
TEST=still builds

Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19031
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Change-Id: I4e14892f104b5bd7c08b0b4e113442e20555516e
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1672912
Reviewed-by: Sam McNally <sammc@chromium.org>
1 file changed