www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - std.zlib uncompress bug (dmd win32)

reply zwang <nehzgnaw gmail.com> writes:
import std.zlib;
void main(){
	try{
		uncompress(x"42");
		assert(0);
	}catch(ZlibException e){
	}
}


//instead of throwing a ZlibException, std.zlib.uncompress runs forever.
Oct 06 2005
parent "Walter Bright" <newshound digitalmars.com> writes:
"zwang" <nehzgnaw gmail.com> wrote in message
news:di3bqr$p2u$1 digitaldaemon.com...
 import std.zlib;
 void main(){
 try{
 uncompress(x"42");
 assert(0);
 }catch(ZlibException e){
 }
 }


 //instead of throwing a ZlibException, std.zlib.uncompress runs forever.

This appears to be a problem with inflate() in the C zlib library from info-zip.com.
Oct 15 2005