cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_escape() broken in 7.17.0

From: Alex Fishman <alex.fishman_at_gmail.com>
Date: Sun, 30 Sep 2007 18:23:15 +0300

#include "curl/curl.h"

int main()
{
        unsigned char a[] = {0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
0xe0, 0xd8, 0x7c, 0x20, 0xb7, 0xef, 0x53, 0x29, 0xfa, 0x
1d, 0x57, 0xe1};

        CURL* easy = curl_easy_init();
        char* s = curl_easy_escape(easy, (char*)a, sizeof(a));

        printf("%s\n", s);
}

7.16.4: %9C%26K%3DI%04%A1%01%E0%D8%7C%20%B7%EFS%29%FA%1DW%E1

7.17.0: %FF%26K%3DI%04%FF%01%FF%FF%7C%20%FF%FFS%29%FF%1DW%FF

-Alex

On 9/25/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Tue, 25 Sep 2007, Alex Fishman wrote:
>
> > Using libcurl for communicating with bittorrent tracker:
> >
> > Encode {0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1, 0xe0, 0xd8, 0x7c,
> > 0x20, 0xb7, 0xef, 0x53, 0x29, 0xfa, 0x1d, 0x57,
> > 0xe1}}
> >
> > Receive "%FF%26K%3DI%04%FF%01%FF%FF%7C%20%FF%FFS%29%FF%1DW%FF"
>
> Can you please provide a full source code example showing the problem
> happen?
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2007-09-30