| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits             
             [2021-09-07 09:42 UTC] cmb@php.net
 
-Assigned To:
+Assigned To: cmb
  [2021-09-07 09:52 UTC] cmb@php.net
  [2021-09-07 10:20 UTC] git@php.net
  [2021-09-07 10:20 UTC] git@php.net
 
-Status: Assigned
+Status: Closed
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
Description: ------------ When there are multiple uuencoded parts in the file processed by mailparse_uudecode_all(), the outpath of the main file is released multiple times which can result in a double-free, possibly resulting in a segfault. Test script: --------------- <?php $data = <<<'EOD' begin 644 foo ` end begin 644 bar ` end EOD; $stream = fopen('php://memory', 'w+'); fwrite($stream, $data); rewind($stream); $parsed = mailparse_uudecode_all($stream); var_dump(count($parsed)); ?> Expected result: ---------------- int(3) Actual result: -------------- segfault