From 2f054d27f234117cd867b7be4b490f7f43ea73e8 Mon Sep 17 00:00:00 2001 From: Xavrax Date: Tue, 10 Oct 2023 12:36:59 +0200 Subject: [PATCH] fix ASAN --- core/pbcc_crypto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/pbcc_crypto.c b/core/pbcc_crypto.c index e29345b1..3222c0ac 100644 --- a/core/pbcc_crypto.c +++ b/core/pbcc_crypto.c @@ -260,7 +260,6 @@ int pbcc_legacy_decrypt(uint8_t const* cipher_key, pubnub_bymebl_t *result, pubn memmove(to_decrypt.ptr, to_decrypt.ptr + 16, to_decrypt.size - 16); to_decrypt.size = to_decrypt.size - 16; #endif - to_decrypt.ptr[to_decrypt.size] = '\0'; return pbaes256_decrypt(to_decrypt, key, iv, result); }