ID: 44557
User updated by: thomas dot jarosch at intra2net dot com
Reported By: thomas dot jarosch at intra2net dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5.2.5
New Comment:
--- php-5.2.5/ext/imap/php_imap.c Fri Mar 28 13:28:28 2008
+++ php-5.2.5.new/ext/imap/php_imap.c Fri Mar 28 13:58:18 2008
PHP_FUNCTION(imap_setacl)
@@ -1080,6 +1101,7 @@
ZEND_FETCH_RESOURCE(imap_le_struct, pils *,
streamind, -1, "imap", le_imap);
convert_to_string_ex(mailbox);
+ convert_to_string_ex(id);
convert_to_string_ex(rights);
RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream,
Z_STRVAL_PP(mailbox), Z_STRVAL_PP(id), Z_STRVAL_PP(rights)));
Previous Comments:
------------------------------------------------------------------------
[2008-03-28 13:20:48] thomas dot jarosch at intra2net dot com
Description:
------------
Hello together,
attached patch fixes a crash in imap_setacl if you
pass an integer as username.
Cheers,
Thomas
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44557&edit=1