2.2beta critical patch

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

2.2beta critical patch

Janko Mivšek
Dear Swazooers,

Just found a critical bug which causes corrupted uploaded files. This
bug was very rare and hard to detect.

Here is the patch, which will be included in next beta or final release:

HTTPPost>>blockStreamingFrom:to:until:
   ...
       nextPutAll:
         (inPrevious copyFrom: inPrevious size-1 to: inPrevious size);
       nextPutAll: (boundary copyFrom: 1 to: nrOfBoundary).
   ] "continue from the start"

Problem was in size-1, which was incorrectly size-2. This code is part
of crlf (2 characters) skipping algorithm at the end of MIME part,
before boundary.

Best regards
Janko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Swazoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swazoo-devel