summaryrefslogtreecommitdiff
path: root/src/sp_crypt.c
diff options
context:
space:
mode:
authorkkadosh2018-06-28 21:43:40 +0000
committerjvoisin2018-06-28 21:43:40 +0000
commitca3be84076521c4bb053511775c94c0b195aeac8 (patch)
tree3026bd494850086795a67d18f56264abbe4cc11c /src/sp_crypt.c
parent7832438b7abedf567ce6376f99949f419abcdff1 (diff)
Better handling of filters for builtins
Diffstat (limited to 'src/sp_crypt.c')
-rw-r--r--src/sp_crypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_crypt.c b/src/sp_crypt.c
index 55ae37b..6a46d06 100644
--- a/src/sp_crypt.c
+++ b/src/sp_crypt.c
@@ -64,9 +64,9 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) {
64 } 64 }
65 } 65 }
66 66
67 67 if (ZSTR_LEN(debase64) + (size_t)crypto_secretbox_ZEROBYTES <
68 if (ZSTR_LEN(debase64) + (size_t)crypto_secretbox_ZEROBYTES < ZSTR_LEN(debase64)) { 68 ZSTR_LEN(debase64)) {
69 if (true == simulation) { 69 if (true == simulation) {
70 sp_log_msg( 70 sp_log_msg(
71 "cookie_encryption", SP_LOG_SIMULATION, 71 "cookie_encryption", SP_LOG_SIMULATION,
72 "Integer overflow tentative detected in cookie encryption handling " 72 "Integer overflow tentative detected in cookie encryption handling "