-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
When encryption is enabled, we write sectors of the file in a non-atomic fashion. In case the writing process is aborted (app process terminated) in the midst of such a write, the sector will only be partially written, leading to a corrupted file.
It is unclear if this bug has been observed IRL, but it is clearly possible.
This problem is even more important if/when we want to support multi-process encryption, because it allows another process to observe partial writes (by reading at the wrong moment), which will be seen as file corruption, even when the writes later complete and the file is not corrupt.
This bug has been present since our first implementation of encryption.
- is depended on by
-
RJS-1546 Crash, Error: Unable to open a realm at path '/data/user/0/xxx/files/geo.realm': Realm file initial open failed: Invalid mnemonic.
- Closed
-
RJS-1609 Decryption crash at realm version 10.12.0
- Closed
-
RCOCOA-1569 Random crashes with encrypted realm.
- Closed