bdeformatutil: Raise exception if out of range position is passed in