#46837 [NEW]: imap. Invalid CL_EXPUNGE are not caught.
| From: | zoe dot slattery at googlemail dot com | Date: | Thu, 11 Dec 2008 14:58:36 +0000 |
| Subject: | #46837 [NEW]: imap. Invalid CL_EXPUNGE are not caught. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131916@lists.php.net to get a copy of this message | ||
From: zoe dot slattery at googlemail dot com
Operating system: Linux
PHP version: 5.3.0alpha3
PHP Bug Type: Scripting Engine problem
Bug description: imap. Invalid CL_EXPUNGE are not caught.
Description:
------------
The value of CL_EXPUNGE is checked in imap_close() but the check just
ensures that any value that ends in a 1 is treated as valid, this is a
similar issue to #46731 and the fix is similar. The value of CL_EXPUNGE
should be either 0 or 32768.
The attached patches do an explicit check for 0 or 32768.
php52: http://pastebin.ca/1282662
php53: http://pastebin.ca/1282664
php6: http://pastebin.ca/1282667
Reproduce code:
---------------
This testcase: http://pastebin.ca/1282641
Expected result:
----------------
Th expected result is shown in the test case
Actual result:
--------------
The actual result from PHP52 is: http://pastebin.ca/1282656
--
Edit bug report at http://bugs.php.net/?id=46837&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46837&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46837&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46837&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46837&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46837&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46837&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46837&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46837&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46837&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46837&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46837&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46837&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46837&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46837&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46837&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46837&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46837&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46837&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46837&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46837&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46837&r=mysqlcfg