File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ link [w]setargv.obj to your program. By default it is not enabled. For more
7
7
details see
8
8
https://learn.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments
9
9
10
+ Note that enabling wildcard expansion can have usability and security
11
+ implications:
12
+
13
+ * The program might transform the arguments you passed in, depending on the
14
+ current directory, leading to user confusion.
15
+ * The program might leak information about the existence and names of files on
16
+ the filesystem.
17
+ * Input validation might be bypassed if wildcard expansions is not taken into
18
+ account.
19
+
10
20
With mingw-w64, there are three ways wildcard expansion can be configured:
11
21
12
22
1 . You can set ` _dowildcard ` in your source code to either ` 0 ` or ` -1 ` to disable or enable wildcard expansion.
You can’t perform that action at this time.
0 commit comments