mirror of
https://github.com/securego/gosec.git
synced 2025-07-15 01:04:43 +02:00
Add a new rule to detect integer overflow on integer types conversion
Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
This commit is contained in:
@ -38,6 +38,7 @@ type SSAAnalyzerResult struct {
|
||||
// BuildDefaultAnalyzers returns the default list of analyzers
|
||||
func BuildDefaultAnalyzers() []*analysis.Analyzer {
|
||||
return []*analysis.Analyzer{
|
||||
newConversionOverflowAnalyzer("G115", "Type conversion which leads to integer overflow"),
|
||||
newSliceBoundsAnalyzer("G602", "Possible slice bounds out of range"),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user