Skip to content

Commit 3873cbd

Browse files
Chnaging the @name & @description.
1 parent 492b511 commit 3873cbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/ql/src/Security/CWE/CWE-704/WcharCharConversion.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

0 commit comments

Comments
 (0)