Tk Library Source Code

View Ticket
Login
Ticket UUID: 601257
Title: fix missing content boundary workaround
Type: Patch Version: None
Submitter: nobody Created on: 2002-08-28 12:23:38
Subsystem: mime Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-08-29 02:29:35
Resolution: Accepted Closed By: mrose
    Closed on: 2002-08-28 19:29:35
Description:
In parsepart, the following code checks for end-of-
content without a boundary marker. 

    while {$moreP} {
        if {$fileP} {
            if {$pos > $last} {
        #        error "termination string missing ...
                  set line "--$boundary--
            } else {
 
Later tests on 'line' assume that 'x' contains [string 
length $line].  If the above code sets line in this way, an 
infinite loop occurs.

Need to add
                  set x [string length $line]

after 'set line'.

Attached patch does this.
User Comments: mrose added on 2002-08-29 02:29:35:
Logged In: YES 
user_id=24077

andreas - patch is good, please commit.

nobody added on 2002-08-28 19:23:39:

File Added - 29946: patch.txt

Attachments: