Skip to content

Commit b321bf3

Browse files
Updated C6277
Changed wording, acquiesced to Acrolinx's request
1 parent 31df57e commit b321bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-quality/c6277.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ Example output:
1515
1616
## Description
1717

18-
This warning indicates that the application name parameter is null and that there might be spaces in the executable path name. Unless the executable name is "fully qualified," there is likely to be a security problem. A malicious user could insert a rogue executable with the same name earlier in the path. To correct this warning, you can specify the application name instead of passing null. Alternatively, if you do pass null for the application name, use quotation marks around the executable path.
18+
This warning indicates that the application name parameter is null and that there might be spaces in the executable path name. Unless the executable name is "fully qualified," there's likely to be a security problem. A malicious user could insert a rogue executable with the same name earlier in the path. To correct this warning, you can specify the application name instead of passing null. Alternatively, if you do pass null for the application name, use quotation marks around the executable path.
1919

2020
## Example
2121

22-
The following sample code generates this warning. This issue stems from the application name parameter being NULL and from the executable path name having a space in it. Due to how the function parses spaces, there is a risk that a different executable could be run. For more information, see [CreateProcessA function (processthreadsapi.h)](/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa).
22+
The following sample code generates this warning. This issue stems from the NULL application name and from the executable path name having a space. Due to how the function parses spaces, there's a risk that a different executable could be run. For more information, see [CreateProcessA function (processthreadsapi.h)](/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa).
2323

2424
```cpp
2525
#include <windows.h>

0 commit comments

Comments
 (0)