aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_cbc/tls_cbc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-04-01 08:48:19 -0400
committerJack Lloyd <[email protected]>2020-04-01 08:48:19 -0400
commita56547ef8f76ebea40f5a037f51d282c760f7a8e (patch)
treedfb58f1e46b898dde3ba94a54dc3daaf77f3bcfd /src/lib/tls/tls_cbc/tls_cbc.cpp
parent7318a40b65b3564ebf8dbfcb1c45b5934363da9e (diff)
Fix for ASan
Diffstat (limited to 'src/lib/tls/tls_cbc/tls_cbc.cpp')
-rw-r--r--src/lib/tls/tls_cbc/tls_cbc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/tls_cbc/tls_cbc.cpp b/src/lib/tls/tls_cbc/tls_cbc.cpp
index 426336ca1..3e3e4c2df 100644
--- a/src/lib/tls/tls_cbc/tls_cbc.cpp
+++ b/src/lib/tls/tls_cbc/tls_cbc.cpp
@@ -180,7 +180,7 @@ void TLS_CBC_HMAC_AEAD_Encryption::cbc_encrypt_record(
cbc().start(cbc_state());
cbc().process(&buffer[offset], buffer.size() - offset);
- cbc_state().assign(&buffer[buffer.size() - block_size()], &buffer[buffer.size()]);
+ cbc_state().assign(buffer.data() + (buffer.size() - block_size()), buffer.data() + buffer.size());
}
size_t TLS_CBC_HMAC_AEAD_Encryption::output_length(size_t input_length) const