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/Best Practices/Hiding/LocalVariableHidesGlobalVariable.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
* @name Local variable hides global variable
3
3
* @description A local variable or parameter that hides a global variable of the same name. This may be confusing. Consider renaming one of the variables.
// implementation note: this should be based on the properties of public interfaces, rather than accessing implementation classes directly. When we've done that, the three classes referenced here should be made fully private.
17
-
thisinstanceofPureStrFunctionor
18
-
thisinstanceofStrLenFunctionor
19
-
thisinstanceofPureMemFunction
16
+
// If a function does not write to any of its arguments, we consider it safe to
17
+
// pass untrusted data to it. This means that string functions such as `strcmp`
18
+
// and `strlen`, as well as memory functions such as `memcmp`, are considered safe.
// implementation note: this should be based on the properties of public interfaces, rather than accessing implementation classes directly. When we've done that, the three classes referenced here should be made fully private.
17
-
thisinstanceofPureStrFunctionor
18
-
thisinstanceofStrLenFunctionor
19
-
thisinstanceofPureMemFunction
16
+
// If a function does not write to any of its arguments, we consider it safe to
17
+
// pass untrusted data to it. This means that string functions such as `strcmp`
18
+
// and `strlen`, as well as memory functions such as `memcmp`, are considered safe.
0 commit comments