File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/src/Security/CWE/CWE-611 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ class Libxml2ParseCall extends FunctionCall {
196
196
197
197
Libxml2ParseCall ( ) {
198
198
exists ( string fname | this .getTarget ( ) .getName ( ) = fname |
199
- fname = [ "xmlCtxtUseOptions" ] and optionsArg = 1
199
+ fname = "xmlCtxtUseOptions" and optionsArg = 1
200
200
or
201
- fname = [ "xmlReadFile" ] and optionsArg = 2
201
+ fname = "xmlReadFile" and optionsArg = 2
202
202
or
203
203
fname = [ "xmlCtxtReadFile" , "xmlParseInNodeContext" , "xmlReadDoc" , "xmlReadFd" ] and
204
204
optionsArg = 3
@@ -207,7 +207,7 @@ class Libxml2ParseCall extends FunctionCall {
207
207
or
208
208
fname = [ "xmlCtxtReadMemory" , "xmlReadIO" ] and optionsArg = 5
209
209
or
210
- fname = [ "xmlCtxtReadIO" ] and optionsArg = 6
210
+ fname = "xmlCtxtReadIO" and optionsArg = 6
211
211
)
212
212
}
213
213
@@ -221,7 +221,7 @@ class Libxml2ParseCall extends FunctionCall {
221
221
* An `xmlParserOption` for `libxml2` that is considered unsafe.
222
222
*/
223
223
class Libxml2BadOption extends EnumConstant {
224
- Libxml2BadOption ( ) { this .getName ( ) . matches ( [ "XML_PARSE_NOENT" , "XML_PARSE_DTDLOAD" ] ) }
224
+ Libxml2BadOption ( ) { this .getName ( ) = [ "XML_PARSE_NOENT" , "XML_PARSE_DTDLOAD" ] }
225
225
}
226
226
227
227
/**
You can’t perform that action at this time.
0 commit comments