We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd0a07 commit f0eeaafCopy full SHA for f0eeaaf
cpp/ql/lib/semmle/code/cpp/security/BufferAccess.qll
@@ -14,7 +14,11 @@ int getPointedSize(Type t) {
14
* BufferWrite differ.
15
*/
16
abstract class BufferAccess extends Expr {
17
- BufferAccess() { not this.isUnevaluated() }
+ BufferAccess() {
18
+ not this.isUnevaluated() and
19
+ //A buffer access must be reachable (not in dead code)
20
+ reachable(this)
21
+ }
22
23
abstract string getName();
24
0 commit comments