mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
BufferAccess must be reachable. False positives observed where accesses occur in dead code.
This commit is contained in:
@@ -14,7 +14,11 @@ int getPointedSize(Type t) {
|
||||
* BufferWrite differ.
|
||||
*/
|
||||
abstract class BufferAccess extends Expr {
|
||||
BufferAccess() { not this.isUnevaluated() }
|
||||
BufferAccess() {
|
||||
not this.isUnevaluated() and
|
||||
//A buffer access must be reachable (not in dead code)
|
||||
reachable(this)
|
||||
}
|
||||
|
||||
abstract string getName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user