From 19613a3048b041eb7de763503b194947addc04ef Mon Sep 17 00:00:00 2001 From: Bruce Baranowski <92940816+bruce-b-molecula@users.noreply.github.com> Date: Tue, 19 Apr 2022 11:06:25 -0400 Subject: [PATCH] Mitigate 1 instance of potential integer overflow --- roaring/container_archetypes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roaring/container_archetypes.go b/roaring/container_archetypes.go index 3993b8e79..d0d39a448 100644 --- a/roaring/container_archetypes.go +++ b/roaring/container_archetypes.go @@ -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) }