File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/src/Security/CWE/CWE-704 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/**
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 .
2+ * @name Cast from char* to wchar_t*
3+ * @description Casting a byte string to a wide-character string is likely
4+ * to yield a string that is incorrectly terminated or aligned.
5+ * This can lead to undefined behavior, including buffer overruns .
66 * @kind problem
77 * @id cpp/incorrect-string-type-conversion
88 * @problem.severity error
You can’t perform that action at this time.
0 commit comments