Skip to content

Commit

Permalink
fix asan
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs committed Sep 1, 2023
1 parent af0a814 commit 8bd1b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/secure_channel/CheckinMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CHIP_ERROR CheckinMessage::ParseCheckinMessagePayload(Crypto::Aes128KeyHandle &

counter = Encoding::LittleEndian::Get32(appData.data());
// Shift to remove the counter from the appData
memcpy(appData.data(), sizeof(CounterType) + appData.data(), appDataSize);
memmove(appData.data(), sizeof(CounterType) + appData.data(), appDataSize);

appData.reduce_size(appDataSize);
return err;
Expand Down

0 comments on commit 8bd1b14

Please sign in to comment.