File tree Expand file tree Collapse file tree
csharp/ql/src/semmle/code/csharp/frameworks/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ class SystemXmlSchemaXmlSchemaValidationFlags extends EnumConstant {
138138 }
139139}
140140
141+ private Expr getBitwiseOrOperand ( Expr e ) {
142+ result = e .( BitwiseOrExpr ) .getAnOperand ( )
143+ }
144+
141145/** A creation of an instance of `System.Xml.XmlReaderSettings`. */
142146class XmlReaderSettingsCreation extends ObjectCreation {
143147 XmlReaderSettingsCreation ( ) {
@@ -157,10 +161,11 @@ class XmlReaderSettingsCreation extends ObjectCreation {
157161 /** Gets a value set for the given property in this local context. */
158162 private Expr getPropertyValue ( Property p ) {
159163 p = this .getType ( ) .( RefType ) .getAProperty ( ) and
160- exists ( PropertyCall set |
164+ exists ( PropertyCall set , Expr arg |
161165 set .getTarget ( ) = p .getSetter ( ) and
162166 DataFlow:: localFlow ( DataFlow:: exprNode ( this ) , DataFlow:: exprNode ( set .getQualifier ( ) ) ) and
163- result = set .getAnArgument ( )
167+ arg = set .getAnArgument ( ) and
168+ result = getBitwiseOrOperand * ( arg )
164169 )
165170 }
166171}
You can’t perform that action at this time.
0 commit comments