Fix crash in SetKeystoreKeys()
There is a scenario causing crash in old implementation: 1. Client receives NigoriSpecifics with non-decryptable |keystore_decryptor_token| in backward-compatible keystore mode. 2. User provides implicit passphrase. 3. Client decrypts |pending_keys| with implicit passphrase, but continues to ask for new keystore keys. 4. Client receives keystore keys and crashes when trying to dereference |pending_keys|. Current fix is to not do anything if there is no |pending_keys|. Bug: 1042203 Change-Id: I20d607cbe349bbb6eda5ed9b85f1e91d213fbc9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002615 Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#732819}
Showing
Please register or sign in to comment