Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153052285
D10097.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D10097.diff
View Options
Index: head/usr.sbin/ctm/ctm/ctm_pass1.c
===================================================================
--- head/usr.sbin/ctm/ctm/ctm_pass1.c
+++ head/usr.sbin/ctm/ctm/ctm_pass1.c
@@ -114,6 +114,7 @@
}
if (name[0] == '/') {
Fatal("Absolute paths are illegal.");
+ Delete(name);
return Exit_Mess;
}
q = name;
@@ -121,6 +122,7 @@
if (q[0] == '.' && q[1] == '.')
if (q[2] == '/' || q[2] == '\0') {
Fatal("Paths containing '..' are illegal.");
+ Delete(name);
return Exit_Mess;
}
if ((q = strchr(q, '/')) == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 8:56 PM (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31797654
Default Alt Text
D10097.diff (590 B)
Attached To
Mode
D10097: Fix memory leak in ctm
Attached
Detach File
Event Timeline
Log In to Comment