Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492b511 commit 3873cbdCopy full SHA for 3873cbd
1 file changed
cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql
@@ -1,8 +1,8 @@
1
/**
2
- * @name Cast between semantically different string types: char* from/to wchar_t*
3
- * @description This rule indicates a potentially incorrect cast from/to an ANSI string (char *) to/from a Unicode string (wchar_t *).
4
- * This cast might yield strings that are not correctly terminated;
5
- * including potential buffer overruns when using such strings with some dangerous APIs.
+ * @name Cast from char* to wchar_t*
+ * @description Casting a byte string to a wide-character string is likely
+ * to yield a string that is incorrectly terminated or aligned.
+ * This can lead to undefined behavior, including buffer overruns.
6
* @kind problem
7
* @id cpp/incorrect-string-type-conversion
8
* @problem.severity error
0 commit comments