File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
go/ql/lib/semmle/go/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ private class MaxValueState extends TMaxValueState {
235
235
predicate architectureBitSizeUnknown ( ) { this .architectureBitSize ( ) .isUnknown ( ) }
236
236
237
237
/**
238
- * Gets the bitsize we should use for a sink.
238
+ * Gets the bitsize we should use for a sink of type `uint` .
239
239
*
240
240
* If the architecture bit size is known, then we should use that. Otherwise,
241
241
* we should use 32 bits, because that will find results that only exist on
@@ -344,7 +344,7 @@ class UpperBoundCheckGuard extends DataFlow::RelationalComparisonNode {
344
344
* _ = uint16(parsed)
345
345
* }
346
346
* ```
347
- * `parsed < math.MaxInt16` is an `UpperBoundCheckGuard` and `uint16(parsed)`
347
+ * `parsed <= math.MaxInt16` is an `UpperBoundCheckGuard` and `uint16(parsed)`
348
348
* is an `UpperBoundCheck` that would be a barrier for flow states with bit
349
349
* size greater than 15 and would transform them to a flow state with bit size
350
350
* 15 and the same architecture bit size.
You can’t perform that action at this time.
0 commit comments