Import path
import semmle.go.security.IncorrectIntegerConversionLibImports
| go | Provides classes for working with Go programs. |
Predicates
| describeBitSize2 | Gets a string describing the size of the integer parsed. |
| getIntTypeBitSize | Get the size of |
| isSourceWithBitSize | Holds if |
Classes
| FlowState | Flow state for ConversionWithoutBoundsCheckConfig. |
| FlowStateTransformer | A node that blocks some flow states and transforms some others as they flow through it. |
| TypeAssertionCheck | An expression which a type assertion guarantees will have a particular integer type. |
| TypeSwitchVarFlowStateTransformer | The implicit definition of a variable with integer type for a case clause of a type switch statement which declares a variable in its guard, which has effectively had a checked type assertion. |
| UpperBoundCheck | A node that is safely guarded by an |
| UpperBoundCheckGuard | An upper bound check that compares a variable to a constant value. |
Aliases
| Flow | Tracks taint flow from an integer obtained from parsing a string that flows to a type conversion to a smaller integer type, which could cause data loss. |