Skip to content

Commit

Permalink
Merge branch 'main' into cis2-client
Browse files Browse the repository at this point in the history
  • Loading branch information
parv0888 authored Jul 24, 2023
2 parents 216325f + 61dfab4 commit 5e9c13b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion concordium-std/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2141,9 +2141,9 @@ fn check_account_signature_worker(
data: &[u8],
) -> CheckAccountSignatureResult {
let mut buffer = address.0.to_vec();
signatures.serial(&mut buffer).unwrap_abort();
(data.len() as u32).serial(&mut buffer).unwrap_abort();
buffer.extend_from_slice(data);
signatures.serial(&mut buffer).unwrap_abort();

let response = unsafe {
prims::invoke(
Expand All @@ -2152,6 +2152,8 @@ fn check_account_signature_worker(
buffer.len() as u32,
)
};
// Be explicit that the buffer must survive up to here.
drop(buffer);
parse_check_account_signature_response_code(response)
}

Expand Down

0 comments on commit 5e9c13b

Please sign in to comment.