Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150297076
D37253.id112600.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
720 B
Referenced Files
None
Subscribers
None
D37253.id112600.diff
View Options
Index: crypto/openssh/sftp.c
===================================================================
--- crypto/openssh/sftp.c
+++ crypto/openssh/sftp.c
@@ -621,14 +621,14 @@
}
static char *
-make_absolute_pwd_glob(const char *p, const char *pwd)
+make_absolute_pwd_glob(char *p, const char *pwd)
{
char *ret, *escpwd;
escpwd = escape_glob(pwd);
if (p == NULL)
return escpwd;
- ret = make_absolute(xstrdup(p), escpwd);
+ ret = make_absolute(p, escpwd);
free(escpwd);
return ret;
}
@@ -641,7 +641,7 @@
glob_t g;
int i, r, err = 0;
- abs_src = make_absolute_pwd_glob(src, pwd);
+ abs_src = make_absolute_pwd_glob(xstrdup(src), pwd);
memset(&g, 0, sizeof(g));
debug3("Looking up %s", abs_src);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 31, 11:56 PM (13 h, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30655862
Default Alt Text
D37253.id112600.diff (720 B)
Attached To
Mode
D37253: sftp: avoid leaking path arg in calls to make_absolute_pwd_glob
Attached
Detach File
Event Timeline
Log In to Comment