mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.6'
* PHP-5.6: Fix buffer growth in sockets/conversion.c Implements extended error messages
This commit is contained in:
commit
51a259f378
1 changed files with 2 additions and 2 deletions
|
@ -889,8 +889,8 @@ static void from_zval_write_control(const zval *arr,
|
|||
if (space_left < req_space) {
|
||||
*control_buf = safe_erealloc(*control_buf, 2, req_space, *control_len);
|
||||
*control_len += 2 * req_space;
|
||||
memset(*control_buf, '\0', *control_len - *offset);
|
||||
memcpy(&alloc->data, *control_buf, sizeof *control_buf);
|
||||
memset(*control_buf + *offset, '\0', *control_len - *offset);
|
||||
memcpy(&alloc->data, control_buf, sizeof *control_buf);
|
||||
}
|
||||
|
||||
cmsghdr = (struct cmsghdr*)(((char*)*control_buf) + *offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue