Issue 5108 in pharo: InflateStream bug with empty strings

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

Issue 5108 in pharo: InflateStream bug with empty strings

pharo
Status: Accepted
Owner: marianopeck
CC: [hidden email]
Labels: Milestone-1.4

New issue 5108 by marianopeck: InflateStream bug with empty strings
http://code.google.com/p/pharo/issues/detail?id=5108

I get a SubscriptOutOfBounds error when I evaluate:

| aStream zipStream |

aStream := ByteArray new writeStream binary.
zipStream := GZipWriteStream on: aStream.
zipStream nextStringPut: ''.
zipStream nextStringPut: ''.
zipStream close.
aStream close.
aStream := aStream contents readStream binary.
zipStream := GZipReadStream on: aStream.
zipStream nextString.
zipStream nextString.
zipStream close.
aStream close.

The error doesn't happen when I put just one string (instead of two).


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5108 in pharo: InflateStream bug with empty strings

pharo

Comment #1 on issue 5108 by marianopeck: InflateStream bug with empty  
strings
http://code.google.com/p/pharo/issues/detail?id=5108

FIx and test in inbox:

Name:  
SLICE-Issue-5108-InflateStream-bug-with-empty-strings-MarianoMartinezPeck.1
Author: MarianoMartinezPeck
Time: 16 December 2011, 10:33:50 am
UUID: 2c9e94d2-1606-4013-8a15-a2ff32d3d36f
Ancestors:
Dependencies: Compression-MarianoMartinezPeck.91,  
Tests-MarianoMartinezPeck.332

FIx to issue an test


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5108 in pharo: InflateStream bug with empty strings

pharo
Updates:
        Status: FixToInclude

Comment #2 on issue 5108 by marianopeck: InflateStream bug with empty  
strings
http://code.google.com/p/pharo/issues/detail?id=5108

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5108 in pharo: InflateStream bug with empty strings

pharo
Updates:
        Status: Integrated

Comment #3 on issue 5108 by [hidden email]: InflateStream bug with  
empty strings
http://code.google.com/p/pharo/issues/detail?id=5108

in 14260


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5108 in pharo: InflateStream bug with empty strings

pharo

Comment #4 on issue 5108 by [hidden email]: InflateStream bug with  
empty strings
http://code.google.com/p/pharo/issues/detail?id=5108

Thanks Mariano


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5108 in pharo: InflateStream bug with empty strings

pharo

Comment #5 on issue 5108 by [hidden email]: InflateStream bug with  
empty strings
http://code.google.com/p/pharo/issues/detail?id=5108

Thanks Mariano


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker