mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Apply suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -69,8 +69,9 @@ private module XML {
|
||||
* ```
|
||||
*
|
||||
* `this` would be `xml.sax.make_parser()`, `getAnInput()` would return `StringIO(xml_content)`
|
||||
* and `mayBeDangerous()` would succeed since `xml.sax.handler.feature_external_ges` is set to
|
||||
* `False` and so it's vulnerable.
|
||||
* and `mayBeDangerous()` would not hold since `xml.sax.handler.feature_external_ges` is set to
|
||||
* `False` and so is not vulnerable.
|
||||
* see https://docs.python.org/3/library/xml.sax.handler.html#xml.sax.handler.feature_external_ges
|
||||
*/
|
||||
private class XMLSaxParser extends DataFlow::CallCfgNode, XMLParser::Range {
|
||||
DataFlow::CallCfgNode attrCall;
|
||||
|
||||
Reference in New Issue
Block a user