zend_hash_add_or_update flaw
| From: | Sascha Schumann | Date: | Wed, 06 Dec 2000 18:16:58 +0000 |
| Subject: | zend_hash_add_or_update flaw | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40238@lists.php.net to get a copy of this message | ||
Hi,
the OnUpdateTags function exposed an apparent flaw in
zend_hash_add_or_update(). The macro INIT_DATA assumes that a
data element of the size sizeof(void *) is always a pointer
to a pointer and tries to dereference it.
The attached patch fixes that flaw and uses pDataPtr to
generally speed up storage of small elements.
Comments?
- Sascha