File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ PHP NEWS
13
13
- GD:
14
14
. Fixed bug #74435 (Buffer over-read into uninitialized memory). (cmb)
15
15
16
+ - IMAP:
17
+ . Fixed bug #72324 (imap_mailboxmsginfo() return wrong size).
18
+ (ronaldpoon at udomain dot com dot hk, Kalle)
19
+
16
20
- OpenSSL:
17
21
. Fixed bug #74651 (negative-size-param (-1) in memcpy in zif_openssl_seal()).
18
22
(Stas)
Original file line number Diff line number Diff line change @@ -2601,7 +2601,8 @@ PHP_FUNCTION(imap_mailboxmsginfo)
2601
2601
zval * streamind ;
2602
2602
pils * imap_le_struct ;
2603
2603
char date [100 ];
2604
- unsigned int msgno , unreadmsg , deletedmsg , msize ;
2604
+ unsigned long msgno ;
2605
+ zend_ulong unreadmsg = 0 , deletedmsg = 0 , msize = 0 ;
2605
2606
2606
2607
if (zend_parse_parameters (ZEND_NUM_ARGS (), "r" , & streamind ) == FAILURE ) {
2607
2608
return ;
@@ -2614,10 +2615,6 @@ PHP_FUNCTION(imap_mailboxmsginfo)
2614
2615
/* Initialize return object */
2615
2616
object_init (return_value );
2616
2617
2617
- unreadmsg = 0 ;
2618
- deletedmsg = 0 ;
2619
- msize = 0 ;
2620
-
2621
2618
for (msgno = 1 ; msgno <= imap_le_struct -> imap_stream -> nmsgs ; msgno ++ ) {
2622
2619
MESSAGECACHE * cache = mail_elt (imap_le_struct -> imap_stream , msgno );
2623
2620
mail_fetchstructure (imap_le_struct -> imap_stream , msgno , NIL );
You can’t perform that action at this time.
0 commit comments