summaryrefslogtreecommitdiff
path: root/src/urlglob.c
Commit message (Collapse)AuthorAgeFilesLines
* urlglob: fix zero size mallocYang Tse2011-06-021-7/+17
|
* Remove unnecessary typecastYang Tse2011-06-021-1/+1
|
* checksrc: whitespace and code style cleanupDaniel Stenberg2011-04-271-28/+28
| | | | | Make everything adhere to the standards upheld by checksrc.pl and now run checksrc from the makefile on debug builds.
* globbing: fix crash on unballanced open braceDaniel Stenberg2010-10-081-3/+6
| | | | | | | | | | | | | | 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
* glob_word: remove a check that is always falseDaniel Stenberg2010-09-121-2/+0
|
* glob: backslash escaping bugDaniel Stenberg2010-06-291-21/+2
| | | | | | | | | | | | | | 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
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Make usage of calloc()'s arguments consistent with rest of code baseYang Tse2009-11-181-1/+1
|
* introduction of os-specific.c and os-specific.hYang Tse2009-06-051-1/+2
|
* eeek, append 1 on the right place as otherwise we didn't fix the problemDaniel Stenberg2008-10-141-2/+2
|
* Prevent an off-by-one in a allocated buffer in glob_match_url() - detected byDaniel Stenberg2008-10-131-2/+5
| | | | coverity.com
* remove unnecessary typecasting of malloc()Yang Tse2008-09-061-1/+2
|
* remove unnecessary typecasting of calloc()Yang Tse2008-09-061-1/+1
|
* fix print formatting string directivesYang Tse2008-09-041-9/+9
|
* Fixed typo in error message.Dan Fandrich2007-09-201-1/+1
|
* - Nick made the curl tool accept globbing ranges that only is one number, i.eDaniel Stenberg2007-03-151-1/+1
| | | | you can now use [1-1] without curl complaining.
* compiler warning fixYang Tse2007-02-021-1/+2
|
* compiler warning fixYang Tse2007-02-011-2/+2
|
* Avoid typecasting a signed char to an int when using is*() functions, as thatDaniel Stenberg2006-10-171-4/+6
| | | | | | | | | 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.
* minor re-arrange to return a value in order to avoid compiler warningsDaniel Stenberg2006-04-071-3/+5
| | | | | for not returning a value from a non-void function (even though the code never actually reached that point before)
* converted sprintf() to snprintf() to reduce riskDaniel Stenberg2006-03-281-11/+19
|
* Introducing range stepping to the curl globbing support. Now you can specifyDaniel Stenberg2005-11-101-47/+71
| | | | step counter by adding :[num] within the brackets when specifying a range.
* Updated the copyright year since changes have been this year.Daniel Stenberg2005-03-311-1/+1
|
* Clear the urlglob struct when allocated, since we might otherwise useDaniel Stenberg2005-01-291-1/+1
| | | | uninitialized variables. Pointed out to us by the friendly Valgrind.
* fixed how backslashes are treated in glob stringsDaniel Stenberg2004-12-151-7/+23
|
* removed tabs and trailing whitespace from sourceDaniel Stenberg2004-10-061-55/+55
|
* using #[num] with -o now make it literally used if there's no globbing forDaniel Stenberg2004-07-261-2/+7
| | | | that particular index. Reported in bug report 997536.
* variable type cleanup to hush compilers,Daniel Stenberg2004-07-021-22/+24
| | | | killed trailing whitespace
* Disable memdebug for the allocs done by the app, unless CURLTOOLDEBUG isDaniel Stenberg2004-05-121-3/+2
| | | | | | | 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.
* typecasts to please picky compilers checking the printf() format stringDaniel Stenberg2004-04-061-4/+4
|
* int/size_t cleanupDaniel Stenberg2004-03-231-18/+20
|
* typecast enum to int to make it printf() properlyDaniel Stenberg2004-03-081-1/+2
|
* Moved the error message buffer into the glob struct as well.Daniel Stenberg2004-03-081-23/+16
|
* make pedantic compiler options generate less warningsDaniel Stenberg2004-01-291-0/+3
|
* Gisle Vanem's patch for variables that "might be used uninitialized"Daniel Stenberg2004-01-161-2/+2
|
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* return failure when an alloc function failsDaniel Stenberg2003-08-141-4/+10
|
* free data on failureDaniel Stenberg2003-08-141-0/+1
|
* modified the #[num] code to be more robust, to return NULL on errors andDaniel Stenberg2003-08-141-39/+33
| | | | to support numbers larger than 9
* better cleaning up allocated memory in case of failuresDaniel Stenberg2003-08-061-5/+14
|
* Juan F. Codagnone's fixes to build properly on Windows againDaniel Stenberg2003-07-231-0/+5
|
* CURLDEBUG is the symbol to use, no longer MALLOCDEBUGDaniel Stenberg2003-06-261-1/+1
|
* Pass the error stream pointer to the URL globber, so that it can reportDaniel Stenberg2003-06-101-27/+45
| | | | | | | errors correctly to the user, if need be. Also fixed so that a missing ] in the globbing process no longer leads to core dump.
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|
* copyright string (year) updateDaniel Stenberg2002-03-191-1/+1
|
* Kevin Roth nicely saved us from this backslash-removing problem!Daniel Stenberg2002-03-061-6/+10
|
* mac fixesDaniel Stenberg2001-11-291-1/+4
|
* (un)signed and const cleanupDaniel Stenberg2001-08-141-3/+3
|
* big reorg to make it not exit when it fails, but instead just not do anyDaniel Stenberg2001-01-231-48/+119
| | | | globbing, it makes IPv6 support easier and smoother to add.