Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156436385
D18616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
407 B
Referenced Files
None
Subscribers
None
D18616.diff
View Options
Index: head/lib/libc/stdlib/getopt_long.c
===================================================================
--- head/lib/libc/stdlib/getopt_long.c
+++ head/lib/libc/stdlib/getopt_long.c
@@ -481,6 +481,8 @@
#endif
if (*place == '-') {
place++; /* --foo long option */
+ if (*place == '\0')
+ return (BADARG); /* malformed option */
#ifdef GNU_COMPATIBLE
dash_prefix = DD_PREFIX;
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 4:56 PM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33048105
Default Alt Text
D18616.diff (407 B)
Attached To
Mode
D18616: getopt_long: fix case of malformed long opt
Attached
Detach File
Event Timeline
Log In to Comment