Ticket #244 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

zend_mm_heap corrupted in shm.c:PHP_FUNCTION (eaccelerator_put)

Reported by: yachoor@polibuda.info Assigned to: somebody
Priority: critical Milestone: 0.9.6
Component: eAccelerator Version:
Keywords: zend_mm_heap corrupted Cc:

Description

Allocating sizeof(zval *) memory instead of sizeof(zval) causes zend_mm_heap corrupted errors Solution against revision 301 in attached file

Attachments

shm.patch (509 bytes) - added by yachoor on 03/06/07 17:43:42.

Change History

03/06/07 17:43:42 changed by yachoor

  • attachment shm.patch added.

03/07/07 12:25:09 changed by bart

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 0.9.6.

Good catch, I changed it to sizeof(zval) instead of sizeof(*result). If the person who wrote the code would have done this the first time he wouldn't have made that mistake. This should be included in [302]