Skip to content

Commit

Permalink
Resolve multiple CVEs
Browse files Browse the repository at this point in the history
  • Loading branch information
RiotRobot committed Sep 28, 2022
1 parent b64a30f commit a587d7c
Show file tree
Hide file tree
Showing 30 changed files with 1,375 additions and 79 deletions.
6 changes: 6 additions & 0 deletions spec/integ/matrix-client-crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ describe("MatrixClient crypto", () => {
aliTestClient.expectKeyQuery({ device_keys: { [aliUserId]: {} }, failures: {} });
await aliTestClient.start();
await bobTestClient.start();
bobTestClient.client.crypto.deviceList.downloadKeys = () => Promise.resolve({});
await firstSync(aliTestClient);
await aliEnablesEncryption();
await aliSendsFirstMessage();
Expand All @@ -504,6 +505,7 @@ describe("MatrixClient crypto", () => {
aliTestClient.expectKeyQuery({ device_keys: { [aliUserId]: {} }, failures: {} });
await aliTestClient.start();
await bobTestClient.start();
bobTestClient.client.crypto.deviceList.downloadKeys = () => Promise.resolve({});
await firstSync(aliTestClient);
await aliEnablesEncryption();
await aliSendsFirstMessage();
Expand Down Expand Up @@ -567,6 +569,7 @@ describe("MatrixClient crypto", () => {
aliTestClient.expectKeyQuery({ device_keys: { [aliUserId]: {} }, failures: {} });
await aliTestClient.start();
await bobTestClient.start();
bobTestClient.client.crypto.deviceList.downloadKeys = () => Promise.resolve({});
await firstSync(aliTestClient);
await aliEnablesEncryption();
await aliSendsFirstMessage();
Expand All @@ -584,6 +587,9 @@ describe("MatrixClient crypto", () => {
await firstSync(bobTestClient);
await aliEnablesEncryption();
await aliSendsFirstMessage();
bobTestClient.httpBackend.when('POST', '/keys/query').respond(
200, {},
);
await bobRecvMessage();
await bobEnablesEncryption();
const ciphertext = await bobSendsReplyMessage();
Expand Down
2 changes: 2 additions & 0 deletions spec/integ/matrix-client-syncing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ describe("MatrixClient syncing", () => {
});

it("should emit RoomEvent.MyMembership for invite->leave->invite cycles", async () => {
await client.initCrypto();

const roomId = "!cycles:example.org";

// First sync: an invite
Expand Down
Loading

0 comments on commit a587d7c

Please sign in to comment.