projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5c4b8
)
curl_unescape() could make a buffer overflow
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Mar 2000 10:22:12 +0000
(10:22 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Mar 2000 10:22:12 +0000
(10:22 +0000)
lib/escape.c
patch
|
blob
|
history
diff --git
a/lib/escape.c
b/lib/escape.c
index
68000cd
..
274cd2d
100644
(file)
--- a/
lib/escape.c
+++ b/
lib/escape.c
@@
-47,7
+47,7
@@
char *curl_escape(char *string)
{
- int alloc=strlen(string);
+ int alloc=strlen(string)
+1
;
char *ns = malloc(alloc);
unsigned char in;
int newlen = alloc;
@@
-83,7
+83,7
@@
char *curl_escape(char *string)
char *curl_unescape(char *string)
{
- int alloc = strlen(string);
+ int alloc = strlen(string)
+1
;
char *ns = malloc(alloc);
unsigned char in;
int index=0;