Skip to content

Commit ce7d853

Browse files
committed
Assert return value of hash_copy
1 parent baefd51 commit ce7d853

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ext/hash/hash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static inline void php_hash_hmac_round(unsigned char *final, const php_hash_ops
488488
}
489489

490490
static inline void php_hash_hmac_round_with_copy(unsigned char *final, const php_hash_ops *ops, const void *base_context, void *context, const unsigned char *data, const zend_long data_size) {
491-
ops->hash_copy(ops, base_context, context);
491+
ZEND_ASSERT(SUCCESS == ops->hash_copy(ops, base_context, context));
492492
ops->hash_update(context, data, data_size);
493493
ops->hash_final(final, context);
494494
}

0 commit comments

Comments
 (0)