Protect against unknown GV2 UUIDs.

This commit is contained in:
Alan Evans
2020-05-19 15:41:48 -03:00
committed by Greyson Parrelli
parent 981676c7f8
commit ec8d5defd4
5 changed files with 71 additions and 45 deletions

View File

@@ -36,7 +36,13 @@ public final class ProfileKeySet {
@Nullable UUID changeSource)
{
for (DecryptedMember member : group.getMembersList()) {
UUID memberUuid = UuidUtil.fromByteString(member.getUuid());
UUID memberUuid = UuidUtil.fromByteString(member.getUuid());
if (UuidUtil.UNKNOWN_UUID.equals(memberUuid)) {
Log.w(TAG, "Seen unknown member UUID");
continue;
}
ProfileKey profileKey;
try {
profileKey = new ProfileKey(member.getProfileKey().toByteArray());