pmpdec: check for EOF while reading index.