mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
Mitigate 1 instance of potential integer overflow
This commit is contained in:
parent
a8c1b93610
commit
19613a3048
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ func makeArchetypalContainer(rng *rand.Rand, name string) (*Container, error) {
|
|||
}
|
||||
c = NewContainerRun(runs)
|
||||
case strings.HasPrefix(name, "BM"):
|
||||
size, err := strconv.Atoi(name[2:])
|
||||
size, err := strconv.ParseInt(name[2:], 10, 32)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't parse bitmap size: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue