|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 Patchesfix_from_zval_write_control.diff (last revision 2015-05-11 07:19 UTC by herumi at nifty dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits              [2015-05-30 16:07 UTC] pollita@php.net
 
-Status: Open
+Status: Feedback
  [2015-05-30 16:07 UTC] pollita@php.net
  [2015-05-30 16:15 UTC] pollita@php.net
  [2015-05-31 22:45 UTC] cataphract@php.net
  [2015-06-07 04:22 UTC] php-bugs at lists dot php dot net
  [2015-06-07 13:59 UTC] cmb@php.net
 
-Status: No Feedback
+Status: Open
  [2015-06-13 02:20 UTC] pollita@php.net
 
-Assigned To:
+Assigned To: pollita
  [2015-06-13 02:20 UTC] pollita@php.net
  [2015-06-17 20:36 UTC] pollita@php.net
 
-Status: Assigned
+Status: Closed
  [2015-06-17 20:36 UTC] pollita@php.net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 09:00:02 2025 UTC | 
Description: ------------ The code ext/sockets/conversion.c:914 in php-5.5.24 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); // (A) memcpy(&alloc->data, *control_buf, sizeof *control_buf); // (B) } Maybe th code (B) fill alloc->data with 8-byte zeros because (A) fills *control_buf with zeros, then the value of *control_buf is lost. cf. https://github.com/php/php-src/blob/master/ext/sockets/conversions.c#L893 Is the correct code as the following? memcpy(&alloc->data, control_buf, sizeof *control_buf);