aboutsummaryrefslogtreecommitdiff
path: root/src/urlglob.c
AgeCommit message (Collapse)Author
2011-06-02urlglob: fix zero size mallocYang Tse
2011-06-02Remove unnecessary typecastYang Tse
2011-04-27checksrc: whitespace and code style cleanupDaniel Stenberg
Make everything adhere to the standards upheld by checksrc.pl and now run checksrc from the makefile on debug builds.
2010-10-08globbing: fix crash on unballanced open braceDaniel Stenberg
Having an open brace without a closing brace caused a segfault. Having a closing brace too many caused a silent error to occur, which caused curl to bail out and return an error code but no error message was shown. It does now! All error message outputs no longer wrongly get _two_ newlines written after the error message. Reported by: Vlad Ureche Bug: http://curl.haxx.se/bug/view.cgi?id=3083942
2010-09-12glob_word: remove a check that is always falseDaniel Stenberg
2010-06-29glob: backslash escaping bugDaniel Stenberg
curl didn't properly handle escaping characters in a URL with the use of backslash. It did an attempt, but that failed as reported in bug 3022551. The described example was using the URL "http://example.com?{AB,C\,D}". I've now removed the special-handling of letters following the backslash and I also removed the bad extra check that triggered this particular bug. Bug: http://curl.haxx.se/bug/view.cgi?id=3022551 Reported by: Jon Sargeant
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2009-11-18Make usage of calloc()'s arguments consistent with rest of code baseYang Tse
2009-06-05introduction of os-specific.c and os-specific.hYang Tse
2008-10-14eeek, append 1 on the right place as otherwise we didn't fix the problemDaniel Stenberg
2008-10-13Prevent an off-by-one in a allocated buffer in glob_match_url() - detected byDaniel Stenberg
coverity.com
2008-09-06remove unnecessary typecasting of malloc()Yang Tse
2008-09-06remove unnecessary typecasting of calloc()Yang Tse
2008-09-04fix print formatting string directivesYang Tse
2007-09-20Fixed typo in error message.Dan Fandrich
2007-03-15- Nick made the curl tool accept globbing ranges that only is one number, i.eDaniel Stenberg
you can now use [1-1] without curl complaining.
2007-02-02compiler warning fixYang Tse
2007-02-01compiler warning fixYang Tse
2006-10-17Avoid typecasting a signed char to an int when using is*() functions, as thatDaniel Stenberg
could very well cause a negate number get passed in and thus cause reading outside of the array usually used for this purpose. We avoid this by using the uppercase macro versions introduced just now that does some extra crazy typecasts to avoid byte codes > 127 to cause negative int values.
2006-04-07minor re-arrange to return a value in order to avoid compiler warningsDaniel Stenberg
for not returning a value from a non-void function (even though the code never actually reached that point before)
2006-03-28converted sprintf() to snprintf() to reduce riskDaniel Stenberg
2005-11-10Introducing range stepping to the curl globbing support. Now you can specifyDaniel Stenberg
step counter by adding :[num] within the brackets when specifying a range.
2005-03-31Updated the copyright year since changes have been this year.Daniel Stenberg
2005-01-29Clear the urlglob struct when allocated, since we might otherwise useDaniel Stenberg
uninitialized variables. Pointed out to us by the friendly Valgrind.
2004-12-15fixed how backslashes are treated in glob stringsDaniel Stenberg
2004-10-06removed tabs and trailing whitespace from sourceDaniel Stenberg
2004-07-26using #[num] with -o now make it literally used if there's no globbing forDaniel Stenberg
that particular index. Reported in bug report 997536.
2004-07-02variable type cleanup to hush compilers,Daniel Stenberg
killed trailing whitespace
2004-05-12Disable memdebug for the allocs done by the app, unless CURLTOOLDEBUG isDaniel Stenberg
defined (which it never is atm). Now, we can focus on making 'runtests -t [num]' work on all test cases and we should never leak nor crash.
2004-04-06typecasts to please picky compilers checking the printf() format stringDaniel Stenberg
2004-03-23int/size_t cleanupDaniel Stenberg
2004-03-08typecast enum to int to make it printf() properlyDaniel Stenberg
2004-03-08Moved the error message buffer into the glob struct as well.Daniel Stenberg
2004-01-29make pedantic compiler options generate less warningsDaniel Stenberg
2004-01-16Gisle Vanem's patch for variables that "might be used uninitialized"Daniel Stenberg
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-08-14return failure when an alloc function failsDaniel Stenberg
2003-08-14free data on failureDaniel Stenberg
2003-08-14modified the #[num] code to be more robust, to return NULL on errors andDaniel Stenberg
to support numbers larger than 9
2003-08-06better cleaning up allocated memory in case of failuresDaniel Stenberg
2003-07-23Juan F. Codagnone's fixes to build properly on Windows againDaniel Stenberg
2003-06-26CURLDEBUG is the symbol to use, no longer MALLOCDEBUGDaniel Stenberg
2003-06-10Pass the error stream pointer to the URL globber, so that it can reportDaniel Stenberg
errors correctly to the user, if need be. Also fixed so that a missing ] in the globbing process no longer leads to core dump.
2003-01-16copyright year update in the source headerDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2002-03-06Kevin Roth nicely saved us from this backslash-removing problem!Daniel Stenberg
2001-11-29mac fixesDaniel Stenberg
2001-08-14(un)signed and const cleanupDaniel Stenberg
2001-01-23big reorg to make it not exit when it fails, but instead just not do anyDaniel Stenberg
globbing, it makes IPv6 support easier and smoother to add.