Revert "Don't allow MemoryFiles of negative length."

This reverts commit 33eee995556f545e8f61f55c6afdba87d12d75f1.