Fix for infinite loop when trying to decode multi-part mime attachments
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 16:16:48 +0000 (16:16 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 16:16:48 +0000 (16:16 +0000)
(Bug #710210)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4694 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php

index 5f6a040..4e7dc48 100644 (file)
@@ -486,6 +486,10 @@ class Message {
              $i = $iPos;
              break;
           }
+       $iPos++;
+       if ($iPos > strlen($read)) {
+          break;
+       }
        }
         return $s;
     }