Bug #80239 [NEW]: imap_rfc822_write_address() leaks memory

From: Date: Thu, 15 Oct 2020 10:43:08 +0000
Subject: Bug #80239 [NEW]: imap_rfc822_write_address() leaks memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229635@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: 7.3Git-2020-10-15 (Git) Package: IMAP related Bug Type: Bug Bug description:imap_rfc822_write_address() leaks memory Description: ------------ imap_rfc822_write_address() unconditionally leaks memory. Test script: --------------- <?php imap_rfc822_write_address('me', 'example.com', 'My Name'); ?> Expected result: ---------------- Actual result: -------------- Detected memory leaks! Dumping objects -> {45185} normal block at 0x0000022C26FCA820, 8 bytes long. Data: <My Name > 4D 79 20 4E 61 6D 65 00 {45184} normal block at 0x0000022C26FC9420, 12 bytes long. Data: <example.com > 65 78 61 6D 70 6C 65 2E 63 6F 6D 00 {45183} normal block at 0x0000022C2706F730, 3 bytes long. Data: <me > 6D 65 00 {45182} normal block at 0x0000022C2701EE20, 64 bytes long. Data: < &, > 20 A8 FC 26 2C 02 00 00 00 00 00 00 00 00 00 00 Object dump complete. -- Edit bug report at https://bugs.php.net/bug.php?id=80239&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80239&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80239&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80239&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80239&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80239&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80239&r=support Expected behavior: https://bugs.php.net/fix.php?id=80239&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80239&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80239&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80239&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80239&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80239&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80239&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80239&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80239&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80239&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80239&r=mysqlcfg

« previous php.bugs (#229635) next »