Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156820843
D34291.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
519 B
Referenced Files
None
Subscribers
None
D34291.diff
View Options
diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c
--- a/usr.sbin/bhyve/snapshot.c
+++ b/usr.sbin/bhyve/snapshot.c
@@ -181,10 +181,10 @@
char *res;
size_t base_len, ext_len;
- base_len = strnlen(base_str, MAX_VMNAME);
- ext_len = strnlen(ext, MAX_VMNAME);
+ base_len = strnlen(base_str, NAME_MAX);
+ ext_len = strnlen(ext, NAME_MAX);
- if (base_len + ext_len > MAX_VMNAME) {
+ if (base_len + ext_len > NAME_MAX) {
fprintf(stderr, "Filename exceeds maximum length.\n");
return (NULL);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 4:46 PM (14 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33199312
Default Alt Text
D34291.diff (519 B)
Attached To
Mode
D34291: bhyve/snapshot: limit snapshot filename to NAME_MAX
Attached
Detach File
Event Timeline
Log In to Comment