ciniparser: Add a check that len remains within bounds.