You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/ql/src/Security/CWE/CWE-253/HResultBooleanConversion.ql
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
/**
2
-
* @name Cast between semantically different integer types: HRESULT to/from a Boolean type
3
-
* @description Cast between semantically different integer types: HRESULT to/from a Boolean type.
4
-
* Boolean types indicate success by a non-zero value, whereas success (S_OK) in HRESULT is indicated by a value of 0.
5
-
* Casting an HRESULT to/from a Boolean type and then using it in a test expression will yield an incorrect result.
2
+
* @name Cast between HRESULT and a Boolean type
3
+
* @description Casting an HRESULT to/from a Boolean type and then using it in a test expression will yield an incorrect result because success (S_OK) in HRESULT is indicated by a value of 0.
0 commit comments