Skip to content

Commit 6e117a1

Browse files
committed
Merge branch 'attach-nonce-codeql-fix'
2 parents f0297e2 + 819ff3e commit 6e117a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/renderide-shared/src/ipc/connection.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,12 @@ mod tests {
528528

529529
#[test]
530530
fn parse_attach_renderer_packet_rejects_nonce_mismatch() {
531+
let mut wrong_nonce = TEST_NONCE.to_vec();
532+
wrong_nonce[0] ^= 0xff;
533+
531534
let error = parse_attach_renderer_packet(
532535
&attach_packet("RenderideQueue", 8_388_608),
533-
Some(b"fedcba9876543210"),
536+
Some(&wrong_nonce),
534537
)
535538
.expect_err("wrong nonce should be rejected");
536539
assert!(matches!(error, AttachConnectionError::NonceMismatch));

0 commit comments

Comments
 (0)