exit(1);
void test_sync(compr, comprLen, uncompr, uncomprLen)    Byte *compr, *uncompr;    uLong comprLen, uncomprLen;{    int err;    z_stream d_stream; /* decompression stream */    strcpy((char*)uncompr, "garbage");    d_stream.zalloc = (alloc_func)0;    d_stream.zfree = (free_func)0;    d_stream.opaque = (voidpf)0;    d_stream.next_in  = compr;    d_stream.avail_in = 2; /* just read the zlib header */    err = inflateInit(&d_stream);    CHECK_ERR(err, "inflateInit");    d_stream.next_out = uncompr;    d_stream.avail_out = (uInt)uncomprLen;    inflate(&d_stream, Z_NO_FLUSH);    CHECK_ERR(err, "inflate");    d_stream.avail_in = (uInt)comprLen-2;   /* read all compressed data */    err = inflateSync(&d_stream);           /* but skip the damaged part */    CHECK_ERR(err, "inflateSync");    err = inflate(&d_stream, Z_FINISH);    if (err != Z_DATA_ERROR) {        fprintf(stderr, "inflate should report DATA_ERROR\n");        /* Because of incorrect adler32 */	exit(1);    }    err = inflateEnd(&d_stream);    CHECK_ERR(err, "inflateEnd");    printf("after inflateSync(): hel%s\n", (char *)uncompr);}