diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_crypt.c | 2 | ||||
| -rw-r--r-- | src/sp_wrapper.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/sp_crypt.c b/src/sp_crypt.c index 8336973..96a0cc0 100644 --- a/src/sp_crypt.c +++ b/src/sp_crypt.c | |||
| @@ -68,6 +68,7 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) { | |||
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | // LCOV_EXCL_START | ||
| 71 | if (ZSTR_LEN(debase64) + (size_t)crypto_secretbox_ZEROBYTES < | 72 | if (ZSTR_LEN(debase64) + (size_t)crypto_secretbox_ZEROBYTES < |
| 72 | ZSTR_LEN(debase64)) { | 73 | ZSTR_LEN(debase64)) { |
| 73 | if (true == simulation) { | 74 | if (true == simulation) { |
| @@ -84,6 +85,7 @@ int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hash_key) { | |||
| 84 | return ZEND_HASH_APPLY_REMOVE; | 85 | return ZEND_HASH_APPLY_REMOVE; |
| 85 | } | 86 | } |
| 86 | } | 87 | } |
| 88 | // LCOV_EXCL_END | ||
| 87 | 89 | ||
| 88 | generate_key(key); | 90 | generate_key(key); |
| 89 | 91 | ||
diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c index 3090513..e336a87 100644 --- a/src/sp_wrapper.c +++ b/src/sp_wrapper.c | |||
| @@ -48,9 +48,11 @@ PHP_FUNCTION(sp_stream_wrapper_register) { | |||
| 48 | zif_handler orig_handler; | 48 | zif_handler orig_handler; |
| 49 | zend_string *protocol_name = NULL; | 49 | zend_string *protocol_name = NULL; |
| 50 | 50 | ||
| 51 | // LCOV_EXCL_BR_START | ||
| 51 | ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_QUIET, 2, EX_NUM_ARGS()); | 52 | ZEND_PARSE_PARAMETERS_START_EX(ZEND_PARSE_PARAMS_QUIET, 2, EX_NUM_ARGS()); |
| 52 | Z_PARAM_STR(protocol_name); | 53 | Z_PARAM_STR(protocol_name); |
| 53 | ZEND_PARSE_PARAMETERS_END_EX((void)0); | 54 | ZEND_PARSE_PARAMETERS_END_EX((void)0); |
| 55 | // LCOV_EXCL_BR_END | ||
| 54 | 56 | ||
| 55 | if (wrapper_is_whitelisted(protocol_name)) { | 57 | if (wrapper_is_whitelisted(protocol_name)) { |
| 56 | orig_handler = zend_hash_str_find_ptr( | 58 | orig_handler = zend_hash_str_find_ptr( |
