1 /***************************************************************************
3 * Project ___| | | | _ \| |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.haxx.se/docs/copyright.html.
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ***************************************************************************/
22 /* Based on Alex Fishman's bug report on September 30, 2007 */
30 static const unsigned char a[] = {
31 0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
32 0xe0, 0xd8, 0x7c, 0x20, 0xb7, 0xef, 0x53, 0x29, 0xfa,
38 CURLcode res = CURLE_OK;
41 global_init(CURL_GLOBAL_ALL);
42 easy = curl_easy_init();
44 fprintf(stderr, "curl_easy_init() failed\n");
45 return TEST_ERR_MAJOR_BAD;
48 asize = (int)sizeof(a);
50 s = curl_easy_escape(easy, (const char *)a, asize);
58 curl_easy_cleanup(easy);
59 curl_global_cleanup();