mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix possible int overflow on vars used in loop with size_t counter
This commit is contained in:
parent
26f1ffbd91
commit
1bdf7abbcb
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ static zend_always_inline unsigned char *php_base64_encode_impl(const unsigned c
|
|||
|
||||
static zend_always_inline int php_base64_decode_impl(const unsigned char *in, size_t inl, unsigned char *out, size_t *outl, zend_bool strict) /* {{{ */
|
||||
{
|
||||
int ch, i = 0, padding = 0, j = *outl;
|
||||
int ch;
|
||||
size_t i = 0, padding = 0, j = *outl;
|
||||
|
||||
/* run through the whole string, converting as we go */
|
||||
while (inl-- > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue