mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
onGroupReceived: Only process a group if it has a 16-byte id
This commit is contained in:
@@ -2116,6 +2116,15 @@
|
||||
const details = ev.groupDetails;
|
||||
const { id } = details;
|
||||
|
||||
const idBuffer = window.Signal.Crypto.fromEncodedBinaryToArrayBuffer(id);
|
||||
const idBytes = idBuffer.byteLength;
|
||||
if (idBytes !== 16) {
|
||||
window.log.error(
|
||||
`onGroupReceived: Id was ${idBytes} bytes, expected 16 bytes. Dropping group.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const conversation = await ConversationController.getOrCreateAndWait(
|
||||
id,
|
||||
'group'
|
||||
|
||||
Reference in New Issue
Block a user