Allow swappable memory

Most OSes and/or ulimits do not allow allocating such large amounts of
unswappable memory.

FossilOrigin-Name: 007bd9985ecb5164a06dddc9aab2d18dbc34cc5bd7914abdea0ff1cd84dfdf51
This commit is contained in:
Jonathan Schleifer 2021-03-21 11:03:01 +00:00
parent 3470477a7f
commit 6df046ff50
3 changed files with 7 additions and 7 deletions

View file

@ -155,7 +155,7 @@ showHelp(OFStream *output, bool verbose)
passphraseLength = strlen(passphraseCString);
@try {
passphrase = [OFSecureData dataWithCount: passphraseLength + 1
allowsSwappableMemory: false];
allowsSwappableMemory: true];
memcpy(passphrase.mutableItems, passphraseCString,
passphraseLength + 1);
} @finally {