Skip to content

Commit 8435f3c

Browse files
committed
Change the query in that gets excluded to the right one
1 parent a608d11 commit 8435f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/misra/src/rules/RULE-8-7-1/PointerArgumentToCstringFunctionIsInvalid.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
*/
1414

1515
import cpp
16+
import codingstandards.cpp.misra
1617
import codingstandards.cpp.OutOfBounds // for OOB::problems
1718
import codingstandards.cpp.Exclusions // for isExcluded(Element, Query)
18-
import codingstandards.cpp.exclusions.c.RuleMetadata
1919

2020
from
2121
OOB::BufferAccessLibraryFunctionCall fc, string message, Expr bufferArg, string bufferArgStr,
2222
Expr sizeOrOtherBufferArg, string otherStr
2323
where
24-
not isExcluded(fc, OutOfBoundsPackage::libraryFunctionArgumentOutOfBoundsQuery()) and
24+
not isExcluded(fc, Memory1Package::pointerArgumentToCstringFunctionIsInvalidQuery()) and
2525
OOB::problems(fc, message, bufferArg, bufferArgStr, sizeOrOtherBufferArg, otherStr)
2626
select fc, message, bufferArg, bufferArgStr, sizeOrOtherBufferArg, otherStr

0 commit comments

Comments
 (0)