Bugzilla – Attachment 2209 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]
Check for argv[0] == NULL before strcasecmp()
sftp-parse_args.diff (text/plain), 494 bytes, created by
Iain Morgan
on 2013-01-17 07:29:32 AEDT
(
hide
)
Description:
Check for argv[0] == NULL before strcasecmp()
Filename:
MIME Type:
Creator:
Iain Morgan
Created:
2013-01-17 07:29:32 AEDT
Size:
494 bytes
patch
obsolete
>Index: sftp.c >=================================================================== >RCS file: /cvs/openssh/sftp.c,v >retrieving revision 1.152 >diff -u -r1.152 sftp.c >--- sftp.c 30 Oct 2012 21:57:55 -0000 1.152 >+++ sftp.c 16 Jan 2013 20:08:27 -0000 >@@ -1145,7 +1145,7 @@ > > /* Figure out which command we have */ > for (i = 0; cmds[i].c != NULL; i++) { >- if (strcasecmp(cmds[i].c, argv[0]) == 0) >+ if (argv[0] != NULL && strcasecmp(cmds[i].c, argv[0]) == 0) > break; > } > cmdnum = cmds[i].n;
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