Merge pull request #1373 from billhollings/memoryless-fixes

Fix crash using memoryless storage for input attachments on Apple Silicon.