aboutsummaryrefslogtreecommitdiff
path: root/tests/server/getpart.c
AgeCommit message (Collapse)Author
2013-07-19WIN32 MemoryTracking: require UNICODE for wide strdup code supportYang Tse
2013-07-18Reinstate "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage".Yang Tse
This reverts commit 7ed25cc, reinstating commit 8ec2cb5. As of 18-jul-2013 we still do have code in libcurl that makes use of these memory functions. Commit 8ec2cb5 comment still applies and is yet valid. These memory functions are solely used in Windows builds, so all related code is protected with '#ifdef WIN32' preprocessor conditional compilation directives. Specifically, wcsdup() _wcsdup() are used when building a Windows target with UNICODE and USE_WINDOWS_SSPI preprocessor symbols defined. This is the case when building a Windows UNICODE target with Windows native SSL/TLS support enabled. Realizing that wcsdup() _wcsdup() are used is a bit tricky given that usage of these is hidden behind _tcsdup() which is MS way of dealing with code that must tolerate UNICODE and non-UNICODE compilation. Additionally, MS header files and those compatible from other compilers use this preprocessor conditional compilation directive in order to select at compilation time whether 'wide' or 'ansi' MS API functions are used. Without this code, Windows build targets with Windows native SSL/TLS support enabled and MemoryTracking support enabled misbehave in tracking memory usage, regardless of being a UNICODE enabled build or not.
2013-05-12Revert "WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage"Daniel Stenberg
This reverts commit 8ec2cb5544b86306b702484ea785b6b9596562ab. We don't have any code anywhere in libcurl (or the curl tool) that use wcsdup so there's no such memory use to track. It seems to cause mild problems with the Borland compiler though that we may avoid by reverting this change again. Bug: http://curl.haxx.se/mail/lib-2013-05/0070.html
2013-03-25WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usageYang Tse
As of 25-mar-2013 wcsdup() _wcsdup() and _tcsdup() are only used in WIN32 specific code, so tracking of these has not been extended for other build targets. Without this fix, memory tracking system on WIN32 builds, when using these functions, would provide misleading results. In order to properly extend this support for all targets curl.h would have to define curl_wcsdup_callback prototype and consequently wchar_t should be visible before that in curl.h. IOW curl_wchar_t defined in curlbuild.h and this pulling whatever system header is required to get wchar_t definition. Additionally a new curl_global_init_mem() function that also receives user defined wcsdup() callback would be required.
2013-01-06Revert changes relative to lib/*.[ch] recent renamingYang Tse
This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
2012-12-28build: make use of 76 lib/*.h renamed filesYang Tse
76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
2012-04-10test servers: build adjustmentYang Tse
Undefine CURL_HIDDEN_SYMBOLS libcurl private preprocessor macro that might leak from lib/setup.h into source files where this should not be defined.
2011-09-03fix a bunch of MSVC compiler warningsYang Tse
2011-08-24base64: fix Curl_base64_encode and Curl_base64_decode interfacesYang Tse
Previous interfaces for these libcurl internal functions did not allow to tell apart a legitimate zero size result from an error condition. These functions now return a CURLcode indicating function success or otherwise specific error. Output size is returned using a pointer argument. All usage of these two functions, and others closely related, has been adapted to the new interfaces. Relative error and OOM handling adapted or added where missing. Unit test 1302 also adapted.
2011-04-05Changed some nonportable typesDan Fandrich
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-26fix compiler warningYang Tse
2010-02-15fix compiler warning: conversion from "long" to "size_t" may lose signYang Tse
2010-02-14Overhauled test suite getpart() function. Fixing potential out of boundsYang Tse
stack and memory overwrites triggered with huge test case definitions.
2010-02-02avoid possibility of using obsoleted stuffYang Tse
2009-04-21libcurl's memory.h renamed to curl_memory.hYang Tse
2008-10-23fix compiler warningYang Tse
2008-10-02fix compiler warning: dereferencing type-punned pointer will break ↵Yang Tse
strict-aliasing rules
2008-09-06remove unnecessary typecasting of malloc()Yang Tse
2008-08-17libcurl internal base64.h header file renamed to curl_base64.hYang Tse
2008-02-28header inclusion cleanupYang Tse
2007-01-23Ignore XML DOCTYPEs and declarations.Dan Fandrich
2007-01-23Convert (most of) the test data files into genuine XML. A handful stillDan Fandrich
are not, due mainly to the lack of support for XML character entities (e.g. & => & ). This will make it easier to validate test files using tools like xmllint, as well as edit and view them using XML tools.
2007-01-04prevent compiler warning since we use base64.h from libcurl which now hasDaniel Stenberg
function(s) using SessionHandle pointers
2006-10-27Update copyright year, since the file has been modifiedYang Tse
2006-10-23Replace is*() macros with our own IS*() ones.Yang Tse
2005-04-18Modified the FTP server to use the new 'sockfilt' program to do all the socketDaniel Stenberg
level stuff. The FTP server communicates with sockfilt using perl's open2(). This enables easier IPv6 support and hopefully FTP-SSL support in the future. Added four test cases for FTP-ipv6.
2005-03-31Updated the copyright year since changes have been this year.Daniel Stenberg
2005-02-24Fixed some compiler warnings. Fixed a low incidence memory leak in the test ↵Dan Fandrich
server.
2005-02-22Curl_base64_decode() now returns an allocated bufferDaniel Stenberg
2004-11-29include setup.h firstDaniel Stenberg
2004-11-29zero terminate the buffer spitout() returns, as the sws.c code depends onDaniel Stenberg
that!
2004-11-29Enable test cases to provide sections base64-encoded to be able to testDaniel Stenberg
with binary data.
2004-03-23minor variable type cleanupsDaniel Stenberg
2004-03-10use size_t for string lengthsDaniel Stenberg
2004-02-20fix protos to prevent warningsDaniel Stenberg
2003-09-03Peter Pentchev found two problems. One realloc problem that could allocateDaniel Stenberg
too little data, and one case of not zero-terminating the returned string. I chose a slightly different patch than the one Peter provided.
2003-08-08Gisle Vanem fixed a single-byte overflowDaniel Stenberg
2003-01-23added a default to the switch() in order to prevent a compiler warningDaniel Stenberg
2002-05-17removed compiler warningsDaniel Stenberg
2002-02-22adjusted to work on test case 11 betterDaniel Stenberg
2002-02-22hide debug output from screen, use log/ for logfilesDaniel Stenberg
2002-02-19a minor step forwardsDaniel Stenberg
2002-02-07the initial C code for the new HTTP test serverDaniel Stenberg