mirror of
https://github.com/github/codeql.git
synced 2025-12-26 05:36:32 +01:00
19 lines
484 B
Plaintext
19 lines
484 B
Plaintext
/**
|
|
* @name Unsupported format character
|
|
* @description An unsupported format character in a format string
|
|
* @kind problem
|
|
* @tags reliability
|
|
* correctness
|
|
* @problem.severity error
|
|
* @sub-severity low
|
|
* @precision high
|
|
* @id py/percent-format/unsupported-character
|
|
*/
|
|
|
|
import python
|
|
import semmle.python.strings
|
|
|
|
from Expr e, int start
|
|
where start = illegal_conversion_specifier(e)
|
|
select e, "Invalid conversion specifier at index " + start + " of " + repr(e) + "."
|