Skip to content

Commit 0928fa6

Browse files
committed
Give MyFlowstate a less generic name
1 parent 36b1a0d commit 0928fa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/ql/lib/semmle/go/security/IncorrectIntegerConversionLib.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,18 @@ deprecated class ConversionWithoutBoundsCheckConfig extends TaintTracking::Confi
151151
}
152152

153153
/** Flow state for ConversionWithoutBoundsCheckConfig. */
154-
newtype MyFlowState =
154+
newtype IntegerConversionFlowState =
155155
/** Keep track of info about the source and potential sinks. */
156156
TFlowstate(boolean sinkIsSigned, int sourceBitSize, int sinkBitSize) {
157157
sinkIsSigned in [true, false] and
158158
isIncorrectIntegerConversion(sourceBitSize, sinkBitSize)
159159
}
160160

161161
/** Gets the bit size of the source. */
162-
int getSourceBitSize(MyFlowState state) { state = TFlowstate(_, result, _) }
162+
int getSourceBitSize(IntegerConversionFlowState state) { state = TFlowstate(_, result, _) }
163163

164164
private module ConversionWithoutBoundsCheckConfig implements DataFlow::StateConfigSig {
165-
class FlowState = MyFlowState;
165+
class FlowState = IntegerConversionFlowState;
166166

167167
predicate isSource(DataFlow::Node source, FlowState state) {
168168
exists(

0 commit comments

Comments
 (0)