CodeQL library for Python
codeql/python-all 0.10.5 ( changelog , source )
Search

Module Make

Classes and predicates implementing an analysis detecting suspicious character ranges.

Import path

import codeql.regex.OverlyLargeRangeQuery

Predicates

allowedWideRanges

Gets a range that should not be reported as an overly wide range.

getABadRange

Gets a char range that is overly large because of reason.

isAlphanumeric

Holds if char is an alpha-numeric character.

isRange

Holds if range spans from the unicode code points low to high (both inclusive).

overlap

Holds if the given ranges are from the same character class and there exists at least one character matched by both ranges.

overlapsWithCharEscape

Holds if range overlaps with the char class escape from the same character class.

problem

Holds if range matches suspiciously many characters.

rankRange

Gets a rank for range that is unique for ranges in the same file. Prioritizes ranges that match more characters.

toCodePoint

Gets the unicode code point for a char.

Classes

OverlyWideRange

A character range that appears to be overly wide.

Modules

RangePrinter

A module computing an equivalent character class for an overly wide range.

Parameters