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:
c48b996
)
telnet.c: fix possible use of non-null-terminated strings
author
Marc Hoersken
<info@marc-hoersken.de>
Sat, 19 Apr 2014 12:26:02 +0000
(14:26 +0200)
committer
Marc Hoersken
<info@marc-hoersken.de>
Sat, 19 Apr 2014 12:26:02 +0000
(14:26 +0200)
lib/telnet.c
patch
|
blob
|
history
diff --git
a/lib/telnet.c
b/lib/telnet.c
index
3206ee1
..
12a0580
100644
(file)
--- a/
lib/telnet.c
+++ b/
lib/telnet.c
@@
-822,8
+822,8
@@
static CURLcode check_telnet_options(struct connectdata *conn)
{
struct curl_slist *head;
struct curl_slist *beg;
- char option_keyword[128];
- char option_arg[256];
+ char option_keyword[128]
= ""
;
+ char option_arg[256]
= ""
;
struct SessionHandle *data = conn->data;
struct TELNET *tn = (struct TELNET *)conn->data->req.protop;
CURLcode result = CURLE_OK;