Dan Fandrich
c321b9f704
Fixes some more out of memory handling bugs.
2007-04-04 23:41:35 +00:00
Gisle Vanem
1c63ceb317
Suppress the "'convbuf' might be used uninitialized in this function" warning.
2007-02-01 12:23:00 +00:00
Daniel Stenberg
359d500908
- David McCreedy made changes to allow base64 encoding/decoding to work on
...
non-ASCII platforms.
2007-01-03 23:04:38 +00:00
Daniel Stenberg
44d84ac164
Avoid typecasting a signed char to an int when using is*() functions, as that
...
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-10-17 21:32:56 +00:00
Yang Tse
d157c29269
Fix compiler warnings
2006-07-19 21:14:02 +00:00
Daniel Stenberg
ab4086bc24
Updated the copyright year since changes have been this year.
2005-03-31 07:02:02 +00:00
Dan Fandrich
0ddab51ad8
Fix for a base64 decode heap buffer overflow vulnerability.
2005-02-28 23:54:17 +00:00
Daniel Stenberg
527f70e540
Curl_base64_decode() now returns an allocated buffer
2005-02-22 12:10:30 +00:00
Dan Fandrich
1ba47e7af9
Add 'const' to immutable arrays.
2004-12-15 01:38:25 +00:00
Daniel Stenberg
feb2dd2835
Replaced all uses of sprintf() with the safer snprintf(). It is just a
...
precaution to prevent mistakes to lead to buffer overflows.
2004-06-24 11:54:11 +00:00
Daniel Stenberg
8e09a389c4
make sure the returned pointer is NULL when encoding fails
2004-05-12 13:23:17 +00:00
Daniel Stenberg
bbafb2eb27
curl_global_init_mem() allows the memory functions to be replaced.
...
memory.h is included everywhere for this.
2004-05-11 11:30:23 +00:00
Daniel Stenberg
4d12be9867
removed an unnecessary shift and splut up som weird two-statements-per-line
...
code
2004-03-01 12:54:59 +00:00
Daniel Stenberg
99bc7e5fd3
oops, the decode() function got its arguments reversed in my cleanup
...
operation!
2004-02-23 11:39:21 +00:00
Daniel Stenberg
e1b5e15431
More size_t cleanups in the base64 functions.
2004-02-23 08:22:43 +00:00
Daniel Stenberg
1aba4c519b
The base64 encode function now takes a size_t for size, not an int as
...
previously.
2004-02-23 08:07:55 +00:00
Daniel Stenberg
053f6c85ef
updated year in the copyright string
2004-01-07 09:19:33 +00:00
Daniel Stenberg
204f03912f
We noe use CURLDEBUG instead of MALLOCDEBUG
2003-06-26 06:45:15 +00:00
Daniel Stenberg
52c5b57200
made a nicer output for the decode test, as it served as a nice tool for me ;-)
2003-06-11 15:31:06 +00:00
Daniel Stenberg
73c5f24fa4
Initial take at NTLM authentication. It doesn't really work at this point
...
but the infrastructure is there.
2003-06-11 13:38:55 +00:00
Daniel Stenberg
3ddc7b9390
Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the
...
data to encode.
2003-02-13 18:30:10 +00:00
Daniel Stenberg
a7c72b7abf
removed the local variables for emacs and vim, use the new sample.emacs
...
way for emacs, and vim users should provide a similar non-polluting style
2003-01-29 10:14:20 +00:00
Daniel Stenberg
f26a338a54
copyright year update in the source header
2003-01-16 21:08:12 +00:00
Daniel Stenberg
ed22f75241
proper indent
2003-01-09 11:31:49 +00:00
Daniel Stenberg
2912537533
indent fix
2003-01-06 12:41:33 +00:00
Daniel Stenberg
1698015e3c
Curl_base64_decode() fixed by Matthew B
2002-12-19 16:02:51 +00:00
Daniel Stenberg
ba4e69bebc
updated source code boilerplate/header
2002-09-03 11:52:59 +00:00
Daniel Stenberg
974f314f57
copyright string (year) update
2002-03-19 07:54:55 +00:00
Sterling Hughes
8e91d5de8e
looks nicer and is better compatible with older vim versions
2001-10-11 09:32:19 +00:00
Sterling Hughes
6147879837
Added formatting sections for emacs and vim
2001-09-07 04:01:32 +00:00
Daniel Stenberg
d5112c0dec
include setup.h properly, not config.h
2001-08-24 07:39:50 +00:00
Daniel Stenberg
1ad7023758
#include <curl/mprintf.h>
2001-08-14 09:25:15 +00:00
Daniel Stenberg
00b00c6931
Andrew Francis base64 decode, my previous base64 encoder, new source header.
...
No BSD-style license.
2001-08-03 13:51:44 +00:00
Daniel Stenberg
4031104404
Internal symbols that aren't static are now prefixed with 'Curl_'
2001-01-05 10:11:41 +00:00
Daniel Stenberg
0f8facb49b
added memory debugging include file
2000-10-09 11:12:34 +00:00
Daniel Stenberg
221f1c2ca2
replaced the old base64 stuff with the new ones
2000-09-28 08:01:52 +00:00
Daniel Stenberg
37249c3a41
new interface to the base64 encoder
2000-09-21 08:46:44 +00:00
Daniel Stenberg
1ef3600a07
haxx.nu => haxx.se
2000-06-20 15:31:26 +00:00
Daniel Stenberg
ae1912cb0d
Initial revision
1999-12-29 14:20:26 +00:00