Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

curl-7.5.1: free() still causes segfaults (x86 linux)

From: kromJx <>
Date: Mon, 11 Dec 2000 19:24:24 +0000

Hi again,

The newly distributed version has not corrected the bug reported to
you in my earlier message.

The bug appears when the --remote-name option is used and occurs at

        you increase the pointer to malloc'ed memory (++config->outfile)
        and then free(config->outfile). You are supposed to
        free memory using the original pointer to the malloc'ed memory, right?

Fixing this bug (using a temp char pointer for strrchr(), increasing it,
and then using it as the argument to strdup()) revealed yet another bug at

        failure to check for outfiles having a NULL value causes a crash
        on my system.
        Please check the argument passed to all 'strdup()' calls for
        non-zero value

- J
Received on 2000-12-12

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET