Bugzilla – Attachment 2117 Details for
Bug 1956
sftp segfaults in parse_args() when argv[0] is NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
return -1 when argv[0] is NULL instead of continuing further
sftp.c.diff (text/plain), 550 bytes, created by
Loganaden Velvindron
on 2011-12-11 07:46:51 AEDT
(
hide
)
Description:
return -1 when argv[0] is NULL instead of continuing further
Filename:
MIME Type:
Creator:
Loganaden Velvindron
Created:
2011-12-11 07:46:51 AEDT
Size:
550 bytes
patch
obsolete
>Index: sftp.c >=================================================================== >RCS file: /cvs/openssh/sftp.c,v >retrieving revision 1.145 >diff -u -p -r1.145 sftp.c >--- sftp.c 25 Nov 2011 02:53:50 -0000 1.145 >+++ sftp.c 8 Dec 2011 07:15:15 -0000 >@@ -1140,6 +1140,9 @@ parse_args(const char **cpp, int *pflag, > if ((argv = makeargv(cp, &argc, 0, NULL, NULL)) == NULL) > return -1; > >+ if (argv[0] == NULL) >+ return -1; >+ > /* Figure out which command we have */ > for (i = 0; cmds[i].c != NULL; i++) { > if (strcasecmp(cmds[i].c, argv[0]) == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1956
: 2117 |
2209