mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Updating test cases.
This commit is contained in:
@@ -42,7 +42,9 @@ class BufferAccess extends ArrayExpr {
|
||||
not exists(Macro m |
|
||||
m.getName() = "strcmp" and
|
||||
m.getAnInvocation().getAnExpandedElement() = this
|
||||
)
|
||||
) and
|
||||
//A buffer access must be reachable (not in dead code)
|
||||
reachable(this)
|
||||
}
|
||||
|
||||
int bufferSize() { staticBuffer(this.getArrayBase(), _, result) }
|
||||
|
||||
@@ -26,6 +26,7 @@ from
|
||||
BufferAccess ba, string bufferDesc, int accessSize, int accessType, Element bufferAlloc,
|
||||
int bufferSize, string message
|
||||
where
|
||||
accessType != 4 and
|
||||
accessSize = ba.getSize() and
|
||||
bufferSize = getBufferSize(ba.getBuffer(bufferDesc, accessType), bufferAlloc) and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user