Files
codeql/python/ql/src
Rasmus Wriedt Larsen 498703fc81 Python: Escaping only valid with both input/output defined
Problematic part is

```codeql
  /** A escape from string format with `markupsafe.Markup` as the format string. */
  private class MarkupEscapeFromStringFormat extends MarkupSafeEscape, Markup::StringFormat {
    override DataFlow::Node getAnInput() {
      result in [this.getArg(_), this.getArgByName(_)] and
      not result = Markup::instance()
    }

    override DataFlow::Node getOutput() { result = this }
  }
```

since the char-pred still holds even if `getAnInput` has no results...

I will say that doing it this way feels kinda dirty, and we _could_ fix
this by including the logic in `getAnInput` in the char-pred as well.
But as I see it, that would just lead to a lot of code duplication,
which isn't very nice.
2021-06-16 19:09:00 +02:00
..
2020-11-30 14:42:38 +01:00
2021-04-23 15:20:21 +01:00
2021-04-23 15:20:21 +01:00
2021-03-25 15:06:46 +01:00
2021-04-23 15:20:21 +01:00
2020-07-14 11:26:05 +02:00
2021-04-23 15:20:21 +01:00
2021-06-10 20:11:08 +01:00
2021-06-10 20:11:08 +01:00
2021-04-23 15:20:21 +01:00
2020-03-20 16:43:10 +01:00
2020-11-26 18:17:14 +01:00