Commits

Ruslan Osmanov  committed b0c0e96

Fix: possible heap corruption in EventListener's callback

  • Participants
  • Parent commits 882876b

Comments (0)

Files changed (2)

File classes/listener.c

 
 	if (ZEND_FCI_INITIALIZED(*pfci)) {
 		args[0] = &l->self;
+		Z_ADDREF_P(l->self);
 
 		/* Convert the socket created by libevent to PHP stream
 	 	 * and save it's resource ID in l->stream_id */
   Add: implemented get_properties property handler(is called when one casts an object to array)
   Refact: removed memory alloc for empty property hashtables
   Fix: heap corruption caused by EventBufferEvent callbacks
+  Fix: possible heap corruption in EventListener's callback
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
       Add: implemented get_properties property handler(is called when one casts an object to array)
       Refact: removed memory alloc for empty property hashtables
       Fix: heap corruption caused by EventBufferEvent callbacks
+      Fix: possible heap corruption in EventListener's callback
       ]]></notes>
     </release>
     <!--}}}-->