Skip to content

Commit d61cbb1

Browse files
Nikita Kraiouchkinembaluda
Nikita Kraiouchkine
andauthored
Update c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.ql
Co-authored-by: Mauro Baluda <mbaluda@github.com>
1 parent 7959af7 commit d61cbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/cert/src/rules/EXP37-C/CallPOSIXOpenWithCorrectArgumentCount.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class POSIXOpenFunctionCall extends FunctionCall {
4343
*/
4444
predicate isOpenCreateCall() {
4545
hasFlagsArgBounds() and
46-
upperBound(this.getArgument(1)).toString().toInt().bitAnd(o_creat_val()) != 0
46+
upperBound(this.getArgument(1)).(int).bitAnd(o_creat_val()) != 0
4747
}
4848
}
4949

0 commit comments

Comments
 (0)