[Zlib-devel] zlib version 1.2.3.8 available for testing

Arkadiusz Miskiewicz arekm at maven.pl
Sat Feb 13 17:28:33 EST 2010


On Saturday 13 of February 2010, Mark Adler wrote:
> All,
> 
> Just in time for Valentine's Day (I know this will make your sweetie
> swoon), you can download the latest beta of zlib, 1.2.3.8 here:
> 
>     http://zlib.net/current/beta/
> 
> The changes are listed in ChangeLog.  Unless there are any significant
> issues, this will become zlib 1.2.4.  Please let me know if you have
> tested it, and on what.  Thank you for your support.

This program works on 1.2.3.3, doesn't on 1.2.3.7 and 1.2.3.8 (didn't test 
other versions).

The problem is likely with mode "w+b3".

#include <zlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

int main() {
        int fd;
        char path[1024];
        gzFile gf;

        sprintf(path, "/tmp/crap.tmpXXXXXX");

        fd = mkstemp(path);
        if (fd < 0) {
                printf("fd < 0\n");
                exit(1);
        }

        gf = gzdopen(fd, "w+b3");
        if (gf == NULL) {
                printf("gf == NULL\n");
                exit(1);
        }

        printf("OK!\n");
        exit(0);
}

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/




More information about the Zlib-devel mailing list