warn and pad/truncate on invalid file length