Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153150306
D35106.id105616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
759 B
Referenced Files
None
Subscribers
None
D35106.id105616.diff
View Options
diff --git a/usr.sbin/bsdinstall/partedit/gpart_ops.c b/usr.sbin/bsdinstall/partedit/gpart_ops.c
--- a/usr.sbin/bsdinstall/partedit/gpart_ops.c
+++ b/usr.sbin/bsdinstall/partedit/gpart_ops.c
@@ -1155,11 +1155,15 @@
goto addpartform;
}
} else { /* auto partitioning */
- items[0].value = strdup(items[0].init);
- items[1].value = strdup(items[1].init);
- items[2].value = strdup(items[2].init);
+ if ((items[0].value = strdup(items[0].init)) == NULL)
+ return;
+ if ((items[1].value = strdup(items[1].init)) == NULL)
+ return;
+ if ((items[2].value = strdup(items[2].init)) == NULL)
+ return;
if (nitems > 3)
- items[3].value = strdup(items[3].init);
+ if ((items[3].value = strdup(items[3].init)) == NULL)
+ return;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 11:58 AM (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31837866
Default Alt Text
D35106.id105616.diff (759 B)
Attached To
Mode
D35106: partedit: Check allocated strings for UFS auto partitioning
Attached
Detach File
Event Timeline
Log In to Comment