github-vet / github-vet/rangeloop-pointer-findings

hjimmy/tg-origin: source/vendor/github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator/range_set.go; 5 LoC

Open
#13,819 0 comments 0 reactions 0 assignees View on GitHub
fresh tiny
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
PR metrics pending

Description

Found a possible issue in [hjimmy/tg-origin](https://www.github.com/hjimmy/tg-origin) at [source/vendor/github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator/range_set.go](https://github.com/hjimmy/tg-origin/blob/07e45cb8ec631f158f6c7c29330a9cdeae9f4a29/source/vendor/github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator/range_set.go#L80-L84)

Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.

> function call which takes a reference to r2 at line 81 may start a goroutine

[Click here to see the code in its original context.](https://github.com/hjimmy/tg-origin/blob/07e45cb8ec631f158f6c7c29330a9cdeae9f4a29/source/vendor/github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator/range_set.go#L80-L84)

Click here to show the 5 line(s) of Go which triggered the analyzer.

```go
for _, r2 := range (*s)[i+1:] {
if r1.Overlaps(&r2) {
return fmt.Errorf("subnets %s and %s overlap", r1.String(), r2.String())
}
}

```

Click here to show extra information the analyzer produced.

```
The following graphviz dot graph describes paths through the callgraph that could lead to a function calling a goroutine:
digraph G {
"(Run, 3)" -> {"(Copy, 2)";"(run, 3)";"(watch, 3)";}
"(ServeHTTP, 2)" -> {"(serveUpgrade, 2)";"(Check, 1)";"(handleHttps, 2)";"(serveStatus, 2)";"(tryUpgrade, 2)";"(RemoveMember, 2)";}
"(Download, 2)" -> {"(ServeHTTP, 2)";}
"(Destroy, 2)" -> {"(checkBricksCanBeDestroyed, 3)";}
"(SetTransportDefaults, 1)" -> {"(ConfigureTransport, 1)";}
"(newServerTransport, 4)" -> {}
"(Open, 2)" -> {"(ServeHTTP, 2)";"(newArchiveFromGuest, 1)";"(newArchiveToGuest, 1)";"(Dispatch, 3)";}
"(Execute, 2)" -> {"(Run, 3)";"(Send, 1)";"(Validate, 1)";"(Remove, 1)";}
"(checkBricksCanBeDestroyed, 3)" -> {}
"(Watch, 1)" -> {"(Watch, 2)";}
"(Copy, 4)" -> {"(Execute, 4)";}
"(Write, 1)" -> {"(wait, 1)";"(Capture, 2)";"(Copy, 2)";"(send, 1)";}
"(Build, 1)" -> {"(ForEachPackage, 2)";"(NewKubernetesSource, 1)";}
"(Watch, 2)" -> {}
"(mount, 2)" -> {"(attachScale, 4)";}
"(Register, 2)" -> {"(addEndpoint, 1)";}
"(Equals, 1)" -> {"(Equal, 1)";}
"(parseFiles, 6)" -> {}
"(RunKubelet, 4)" -> {"(startKubelet, 5)";"(CreateAndInitKubelet, 31)";}
"(tlsDialWithDialer, 4)" -> {}
"(startThinPoolWatcher, 1)" -> {}
"(removeMember, 2)" -> {"(Terminate, 1)";}
"(Get, 1)" -> {"(Set, 2)";"(Add, 2)";"(Put, 1)";"(Do, 2)";"(copy, 2)";"(New, 2)";"(get, 2)";"(getURL, 1)";"(Get, 2)";"(Parse, 1)";"(Get, 3)";"(Read, 1)";"(Remove, 1)";"(Add, 1)";"(get, 1)";"(Open, 1)";"(getTmpROC, 2)";"(hash, 1)";"(Set, 1)";"(Get, 0)";}
"(Do, 3)" -> {}
"(New, 5)" -> {"(configureKubeConfigForClientCertRotation, 2)";}
"(commitContainer, 3)" -> {"(Commit, 2)";}
"(NewListener, 2)" -> {"(NewTimeoutListener, 5)";}
"(Contains, 1)" -> {"(lookup, 1)";"(Compare, 1)";"(Equals, 1)";"(Index, 2)";"(contains, 1)";"(Offset, 1)";"(index, 1)";}
"(parse, 2)" -> {"(Open, 1)";"(Init, 1)";}
"(NewServer, 2)" -> {"(NewServer, 1)";}
"(RunSnap, 2)" -> {"(snap, 2)";}
"(addPod, 1)" -> {"(AddPod, 1)";}
"(startKubelet, 5)" -> {}
"(startZfsWatcher, 1)" -> {}
"(Overlaps, 1)" -> {"(Contains, 1)";}
"(RefreshCertificateAfterExpiry, 4)" -> {}
"(Init, 1)" -> {"(Init, 4)";}
"(Send, 1)" -> {"(send, 1)";}
"(Apply, 1)" -> {"(Apply, 3)";}
"(Parse, 1)" -> {"(Build, 0)";"(Set, 2)";"(Add, 1)";"(handle, 1)";}
"(Build, 0)" -> {"(Build, 1)";}
"(OpenFile, 2)" -> {"(Open, 2)";}
"(serverHandshake, 1)" -> {"(newServerTransport, 4)";}
"(Update, 3)" -> {"(Accept, 2)";}
"(ListenPipe, 2)" -> {}
"(Add, 1)" -> {"(watch, 3)";"(add, 1)";}
"(ConfigureTransport, 1)" -> {"(configureTransport, 1)";}
"(UpdatePod, 1)" -> {}
"(setUp, 1)" -> {"(NewUnsecuredEtcd3TestClientServer, 1)";}
"(Search, 2)" -> {"(List, 1)";"(Get, 2)";"(Parse, 1)";"(Set, 2)";"(Create, 1)";}
"(newArchiveToGuest, 1)" -> {}
"(openBackend, 1)" -> {}
"(doRequest, 2)" -> {"(Do, 3)";}
"(WaitUntilFreshAndGet, 3)" -> {"(waitUntilFreshAndBlock, 2)";}
"(watchClusterEvents, 2)" -> {"(Watch, 2)";}
"(Launch, 1)" -> {}
"(Start, 1)" -> {"(copyPipes, 7)";"(Dial, 3)";"(Run, 1)";"(Add, 1)";"(Start, 2)";"(Parse, 1)";"(SendRequest, 3)";"(Set, 2)";"(List, 1)";"(Read, 2)";"(start, 1)";"(Copy, 2)";"(start, 2)";"(NewServer, 1)";"(SetEtcdVersionKeyValue, 1)";}
"(Apply, 3)" -> {"(Copy, 2)";"(Apply, 2)";}
"(DestroyBricks, 3)" -> {"(createDestroyConcurrently, 4)";}
"(List, 2)" -> {"(Accept, 2)";"(Build, 0)";}
"(UpdatePod, 2)" -> {"(updatePod, 2)";}
"(New, 3)" -> {"(newLocalFakeStorage, 2)";}
"(Put, 3)" -> {"(Commit, 2)";}
"(newOOMCollector, 1)" -> {"(Add, 1)";}
"(Install, 1)" -> {"(Delete, 2)";"(Get, 2)";"(Download, 2)";"(Set, 2)";}
"(CreateBricks, 3)" -> {"(createDestroyConcurrently, 4)";}
"(newAuthenticator, 2)" -> {"(SetTransportDefaults, 1)";}
"(newClientTransport, 6)" -> {}
"(Sign, 1)" -> {"(Add, 1)";}
"(addReadinessCheckRoute, 3)" -> {"(Write, 1)";}
"(serveStatus, 2)" -> {}
"(UpdateTransport, 4)" -> {"(updateTransport, 5)";}
"(NewServerConn, 2)" -> {"(serverHandshake, 1)";}
"(newTLSListener, 2)" -> {}
"(ConsoleFromFile, 1)" -> {"(newMaster, 1)";}
"(Start, 2)" -> {"(initializeAndStartHeartbeat, 4)";"(callRemoteBalancer, 2)";"(NewServer, 1)";}
"(callRemoteBalancer, 2)" -> {}
"(FromURL, 2)" -> {"(Dial, 3)";}
"(Offset, 1)" -> {"(New, 1)";}
"(updateTransport, 5)" -> {}
"(StreamContainerIO, 3)" -> {}
"(snapshotPath, 4)" -> {}
"(implements, 1)" -> {"(Build, 1)";}
"(Handle, 2)" -> {"(Set, 2)";"(implements, 1)";}
"(SetEtcdVersionKeyValue, 1)" -> {"(Put, 3)";}
"(New, 1)" -> {"(copy, 2)";"(Open, 1)";"(InstallAPIGroup, 1)";"(AddOpenshiftVersionRoute, 2)";"(newAuthenticator, 2)";"(Start, 1)";"(Read, 2)";"(addReadinessCheckRoute, 3)";"(New, 5)";"(Run, 2)";"(OpenFile, 2)";"(Run, 1)";"(Verifier, 1)";"(List, 4)";"(Handle, 2)";"(Route, 3)";"(Get, 1)";"(Remove, 1)";"(NewClient, 1)";"(Ping, 1)";"(Update, 1)";"(Install, 1)";"(InstallLegacyAPIGroup, 2)";"(Sign, 1)";"(NewBroker, 3)";"(Register, 1)";"(get, 1)";"(newCollector, 1)";"(NewLocal, 1)";"(New, 2)";"(newClient, 1)";"(Parse, 1)";"(initOAuthAuthorizationServerMetadataRoute, 2)";"(Stat, 1)";"(New, 3)";"(newOOMCollector, 1)";"(initDiscovery, 1)";"(newStore, 1)";"(Get, 0)";}
"(Run, 1)" -> {"(Register, 2)";"(CreateControllerContext, 4)";"(withAggregator, 4)";"(create, 2)";"(StreamContainerIO, 3)";"(startControllers, 5)";"(NewSSHTunnelList, 4)";"(Write, 1)";"(run, 1)";"(BuildHandlerChain, 5)";}
"(NewServerTLS, 2)" -> {"(newServer, 2)";"(NewGroup, 3)";}
"(Execute, 4)" -> {"(executeExecNewPod, 4)";}
"(Snapshot, 3)" -> {"(Snapshot, 2)";}
"(newCollector, 1)" -> {"(Add, 1)";}
"(NewDynamicResourceConsumer, 12)" -> {"(newResourceConsumer, 18)";}
"(Run, 2)" -> {"(Do, 1)";"(Parse, 1)";"(StartUpdater, 2)";"(List, 1)";"(Download, 2)";"(Add, 1)";"(Copy, 2)";"(Start, 1)";"(Register, 2)";"(copy, 2)";"(List, 2)";"(Write, 1)";"(Apply, 3)";"(add, 1)";"(Create, 2)";"(whicherrs, 1)";"(Remove, 2)";"(Open, 2)";"(create, 1)";"(Prepare, 1)";"(Add, 2)";"(Handle, 2)";"(Update, 2)";"(Rename, 3)";"(callees, 1)";"(Stat, 2)";"(Update, 3)";"(callers, 1)";"(RunSnap, 2)";"(run, 1)";"(Start, 2)";"(Save, 3)";"(Import, 5)";"(peers, 1)";"(pointsto, 1)";"(RunShort, 2)";"(Execute, 3)";"(Build, 0)";"(Get, 0)";"(FromURL, 2)";"(Run, 1)";"(callstack, 1)";"(remove, 2)";"(Create, 1)";"(Create, 3)";"(implements, 1)";}
"(InstallAPIGroup, 1)" -> {"(Add, 1)";}
"(load, 1)" -> {"(parsePackageFiles, 2)";}
"(configureTransport, 1)" -> {"(addConnIfNeeded, 3)";}
"(WaitUntilFreshAndList, 2)" -> {"(waitUntilFreshAndBlock, 2)";}
"(DetailedRoundTrip, 1)" -> {"(getConn, 1)";}
"(List, 1)" -> {"(List, 2)";"(Do, 2)";"(Set, 2)";"(List, 5)";}
"(add, 1)" -> {"(post, 1)";"(newWatchBroadcast, 3)";"(newWatchBroadcasts, 1)";}
"(Get, 2)" -> {"(Set, 2)";"(Put, 3)";"(Do, 2)";"(handle, 1)";"(Accept, 2)";"(implements, 1)";"(Get, 3)";"(Stat, 2)";"(getURL, 1)";"(Open, 2)";}
"(CreateVolume, 1)" -> {}
"(Update, 1)" -> {"(Build, 0)";"(Set, 2)";"(Add, 1)";"(Get, 2)";}
"(configureKubeConfigForClientCertRotation, 2)" -> {"(RefreshCertificateAfterExpiry, 4)";}
"(RoundTrip, 1)" -> {"(DetailedRoundTrip, 1)";"(awaitOpenSlotForRequest, 1)";}
"(Do, 2)" -> {"(RoundTrip, 1)";"(Delete, 2)";"(Write, 1)";"(Put, 3)";}
"(CreateControllerContext, 4)" -> {}
"(start, 2)" -> {}
"(handle, 1)" -> {}
"(wait, 1)" -> {}
"(Stat, 2)" -> {"(Do, 3)";}
"(restartAsStandaloneNode, 2)" -> {"(RestartNode, 1)";}
"(Diff, 2)" -> {"(TarWithOptions, 2)";}
"(start, 1)" -> {"(CopyConsole, 7)";"(copyPipes, 7)";"(Accept, 2)";"(NewDaemon, 4)";"(shutdownDaemon, 1)";"(handleControlSocketChange, 2)";"(Init, 4)";}
"(contains, 1)" -> {"(Equal, 1)";}
"(addEndpoint, 1)" -> {}
"(NewKubernetesSource, 1)" -> {}
"(NewTimeoutListener, 5)" -> {"(wrapTLS, 4)";}
"(copy, 2)" -> {"(Copy, 2)";"(get, 1)";}
"(BuildHandlerChain, 5)" -> {}
"(clientHandshake, 2)" -> {"(newClientTransport, 6)";}
"(insert, 2)" -> {"(Put, 3)";}
"(NewClient, 1)" -> {"(newClient, 1)";"(Parse, 1)";"(Get, 0)";}
"(create, 2)" -> {"(Snapshot, 3)";}
"(initDiscovery, 1)" -> {"(Watch, 3)";}
"(List, 5)" -> {"(WaitUntilFreshAndList, 2)";}
"(dial, 3)" -> {"(tlsDial, 3)";}
"(newMaster, 1)" -> {"(setUp, 1)";}
"(Execute, 3)" -> {"(StreamContainerIO, 3)";}
"(Stat, 1)" -> {"(Stat, 2)";}
"(Accept, 2)" -> {}
"(callstack, 1)" -> {"(Build, 0)";}
"(Schedule, 2)" -> {"(PrioritizeNodes, 6)";}
"(newStore, 1)" -> {"(Add, 1)";}
"(run, 3)" -> {"(UpdateTransport, 4)";"(RunKubelet, 4)";}
"(Delete, 1)" -> {"(Do, 2)";"(Remove, 2)";"(Delete, 2)";"(Set, 2)";"(Get, 2)";}
"(schedule, 1)" -> {"(Schedule, 2)";}
"(Interpret, 5)" -> {"(call, 5)";}
"(Index, 2)" -> {"(Execute, 2)";"(Insert, 1)";}
"(newArchiveFromGuest, 1)" -> {}
"(NewDaemon, 4)" -> {}
"(waitUntilFreshAndBlock, 2)" -> {}
"(Rename, 3)" -> {"(Delete, 2)";}
"(whicherrs, 1)" -> {"(Build, 0)";}
"(setupProcessPipes, 3)" -> {}
"(tlsDial, 3)" -> {"(tlsDialWithDialer, 4)";}
"(pullImage, 1)" -> {"(PullImage, 7)";}
"(shutdownDaemon, 1)" -> {}
"(getTmpROC, 2)" -> {"(Write, 1)";}
"(get, 1)" -> {"(Get, 2)";"(load, 1)";"(SetTransportDefaults, 1)";}
"(NewMainKubelet, 31)" -> {}
"(Compare, 1)" -> {"(parse, 2)";}
"(Create, 3)" -> {"(Validate, 2)";"(Delete, 2)";"(CreateBricks, 3)";"(DestroyBricks, 3)";"(Destroy, 2)";}
"(newWatchBroadcasts, 1)" -> {}
"(initializeAndStartHeartbeat, 4)" -> {}
"(AddOpenshiftVersionRoute, 2)" -> {"(Route, 1)";"(Add, 1)";"(Get, 0)";}
"(WaitForRunningDeployment, 3)" -> {"(Watch, 1)";}
"(New, 2)" -> {"(Add, 1)";"(Update, 1)";"(Apply, 1)";"(Start, 1)";"(Register, 1)";"(Parse, 1)";"(copy, 2)";"(NewServer, 2)";"(NewSession, 2)";"(Put, 2)";"(Init, 1)";"(load, 1)";"(Dial, 2)";}
"(hash, 1)" -> {"(Write, 1)";"(copy, 2)";}
"(Pull, 8)" -> {"(pull, 4)";}
"(Update, 2)" -> {"(Build, 0)";}
"(Add, 2)" -> {"(add, 1)";}
"(addConnIfNeeded, 3)" -> {}
"(newLeaseUpdater, 3)" -> {}
"(Check, 1)" -> {}
"(allPackages, 3)" -> {}
"(runFrame, 1)" -> {"(visitInstr, 2)";}
"(NewBroker, 3)" -> {}
"(Remove, 1)" -> {"(Remove, 2)";"(Delete, 2)";"(Close, 1)";}
"(Ping, 1)" -> {"(doRequest, 2)";"(Get, 3)";}
"(Get, 0)" -> {"(Get, 2)";"(Get, 3)";"(Get, 5)";"(get, 1)";}
"(PullImage, 7)" -> {"(pullImageWithReference, 6)";}
"(initInformers, 1)" -> {}
"(forward, 3)" -> {}
"(recvtty, 2)" -> {"(ConsoleFromFile, 1)";}
"(newServer, 2)" -> {}
"(scaleUp, 5)" -> {"(run, 4)";}
"(NewClusterV3, 2)" -> {"(Launch, 1)";}
"(CopyConsole, 7)" -> {}
"(AddPod, 1)" -> {"(UpdatePod, 1)";}
"(ForEachPackage, 2)" -> {"(allPackages, 3)";}
"(Watch, 3)" -> {"(Watch, 1)";}
"(Put, 2)" -> {"(handle, 1)";"(Save, 3)";"(Put, 3)";}
"(peers, 1)" -> {"(Build, 0)";}
"(startNode, 3)" -> {"(StartNode, 2)";}
"(call, 5)" -> {"(callSSA, 6)";}
"(New, 9)" -> {"(CopyConsole, 7)";}
"(callees, 1)" -> {"(Build, 0)";}
"(wrapTLS, 4)" -> {"(newTLSListener, 2)";}
"(Format, 1)" -> {"(Set, 2)";}
"(NewClientConn, 3)" -> {"(clientHandshake, 2)";}
"(post, 1)" -> {}
"(awaitOpenSlotForRequest, 1)" -> {}
"(RemoveMember, 2)" -> {"(removeMember, 2)";}
"(Copy, 2)" -> {"(ServeHTTP, 2)";}
"(Capture, 2)" -> {}
"(Import, 5)" -> {"(Delete, 2)";}
"(RestartNode, 1)" -> {}
"(startControllers, 5)" -> {}
"(parsePackageFiles, 2)" -> {"(parseFiles, 6)";}
"(Route, 3)" -> {"(Add, 1)";}
"(Terminate, 1)" -> {}
"(NewUnsecuredEtcd3TestClientServer, 1)" -> {"(NewClusterV3, 2)";}
"(tryUpgrade, 2)" -> {}
"(Get, 5)" -> {"(WaitUntilFreshAndGet, 3)";}
"(updatePod, 2)" -> {"(AddPod, 1)";"(addPod, 1)";}
"(NewTCPSocket, 2)" -> {"(NewListener, 2)";}
"(index, 1)" -> {"(update, 1)";"(Search, 2)";}
"(Save, 3)" -> {"(snapshotPath, 4)";}
"(Init, 4)" -> {"(NewTCPSocket, 2)";"(ListenPipe, 2)";}
"(create, 1)" -> {"(Create, 3)";}
"(stop, 1)" -> {}
"(NewServer, 1)" -> {"(startNode, 3)";"(restartNode, 2)";"(restartAsStandaloneNode, 2)";"(openBackend, 1)";"(NewServerTLS, 2)";}
"(Dial, 3)" -> {"(NewClientConn, 3)";}
"(Validate, 2)" -> {}
"(Delete, 2)" -> {"(stop, 1)";"(Accept, 2)";}
"(WaitForRunningDeployerPod, 3)" -> {"(Watch, 1)";}
"(PrioritizeNodes, 6)" -> {}
"(NewSSHTunnelList, 4)" -> {}
"(Insert, 1)" -> {"(Delete, 1)";"(Add, 1)";}
"(Commit, 2)" -> {"(Register, 3)";}
"(attachScale, 4)" -> {"(scaleUp, 5)";}
"(newResourceConsumer, 18)" -> {}
"(newAsyncIDTokenVerifier, 3)" -> {}
"(executeExecNewPod, 4)" -> {}
"(StartNode, 2)" -> {}
"(Read, 2)" -> {"(Copy, 4)";}
"(Register, 3)" -> {"(startThinPoolWatcher, 1)";"(startZfsWatcher, 1)";}
"(NewLocal, 1)" -> {"(Add, 1)";}
"(StartUpdater, 2)" -> {"(newLeaseUpdater, 3)";}
"(update, 2)" -> {"(Get, 3)";"(add, 1)";"(Put, 3)";}
"(dial, 2)" -> {"(NewServerConn, 2)";"(NewClientConn, 3)";}
"(withAggregator, 4)" -> {"(createAggregatorServer, 3)";"(SetTransportDefaults, 1)";}
"(Route, 1)" -> {"(Build, 0)";}
"(pull, 4)" -> {}
"(newLocalFakeStorage, 2)" -> {"(NewServer, 1)";}
"(NewGroup, 3)" -> {"(newServer, 2)";}
"(lookup, 1)" -> {"(Get, 1)";"(hash, 1)";"(Search, 2)";"(Insert, 1)";}
"(copyPipes, 7)" -> {}
"(Read, 1)" -> {"(Copy, 2)";"(Write, 1)";"(add, 1)";}
"(setupIO, 6)" -> {"(recvtty, 2)";"(setupProcessPipes, 3)";}
"(SendRequest, 3)" -> {"(Do, 3)";}
"(Set, 1)" -> {"(add, 1)";}
"(Put, 1)" -> {"(Write, 1)";"(Put, 3)";}
"(remove, 2)" -> {"(Delete, 2)";}
"(update, 1)" -> {"(Remove, 2)";"(Get, 2)";"(Add, 1)";"(Update, 1)";"(UpdatePod, 2)";"(Push, 2)";"(update, 2)";"(Format, 1)";"(insert, 2)";}
"(Register, 1)" -> {"(Register, 2)";"(Validate, 1)";"(Add, 1)";"(Put, 3)";}
"(RunShort, 2)" -> {"(mount, 2)";"(create, 2)";}
"(TarWithOptions, 2)" -> {}
"(Push, 2)" -> {"(Set, 2)";"(doRequest, 2)";}
"(Equal, 1)" -> {"(Get, 1)";}
"(Set, 2)" -> {"(Do, 3)";"(Put, 3)";}
"(Prepare, 1)" -> {"(Upgrade, 7)";"(Pull, 8)";"(pullImage, 1)";}
"(handleControlSocketChange, 2)" -> {"(watchClusterEvents, 2)";}
"(InstallLegacyAPIGroup, 2)" -> {"(Add, 1)";}
"(Apply, 2)" -> {"(Diff, 3)";}
"(handleHttps, 2)" -> {}
"(Verifier, 1)" -> {"(newAsyncIDTokenVerifier, 3)";}
"(Validate, 1)" -> {"(Validate, 2)";"(Set, 2)";"(Get, 2)";}
"(Dial, 2)" -> {"(dial, 3)";"(Dial, 3)";}
"(Get, 3)" -> {"(Get, 5)";"(Do, 2)";"(Copy, 2)";"(WaitForRunningDeployerPod, 3)";"(RoundTrip, 1)";"(WaitForRunningDeployment, 3)";"(Do, 3)";"(Write, 1)";"(Build, 0)";}
"(List, 4)" -> {"(Validate, 1)";"(Set, 2)";"(List, 1)";"(Get, 0)";}
"(CreateAndInitKubelet, 31)" -> {"(NewMainKubelet, 31)";}
"(pointsto, 1)" -> {"(Build, 0)";}
"(restartNode, 2)" -> {"(RestartNode, 1)";}
"(get, 2)" -> {"(Get, 3)";"(Do, 2)";}
"(Upgrade, 7)" -> {"(pull, 4)";}
"(serveUpgrade, 2)" -> {}
"(pullImageWithReference, 6)" -> {}
"(callSSA, 6)" -> {"(runFrame, 1)";}
"(NewSession, 2)" -> {}
"(Open, 1)" -> {"(Open, 2)";}
"(Do, 1)" -> {"(Open, 2)";"(Prepare, 3)";}
"(Diff, 3)" -> {"(Diff, 2)";}
"(run, 1)" -> {"(forward, 3)";"(schedule, 1)";"(commitContainer, 3)";"(setupIO, 6)";}
"(initOAuthAuthorizationServerMetadataRoute, 2)" -> {"(Set, 2)";"(Write, 1)";}
"(getURL, 1)" -> {"(RoundTrip, 1)";"(SetTransportDefaults, 1)";}
"(snap, 2)" -> {"(Snapshot, 3)";}
"(visitInstr, 2)" -> {}
"(newClient, 1)" -> {"(dial, 2)";}
"(Remove, 2)" -> {"(Do, 2)";}
"(Snapshot, 2)" -> {}
"(watch, 3)" -> {"(Watch, 1)";}
"(run, 4)" -> {"(NewDynamicResourceConsumer, 12)";"(Interpret, 5)";}
"(Close, 1)" -> {"(Dispatch, 3)";}
"(send, 1)" -> {"(post, 1)";}
"(createAggregatorServer, 3)" -> {}
"(createDestroyConcurrently, 4)" -> {}
"(newWatchBroadcast, 3)" -> {}
"(Dispatch, 3)" -> {}
"(Prepare, 3)" -> {"(CreateVolume, 1)";}
"(callers, 1)" -> {"(Build, 0)";}
"(getConn, 1)" -> {}
"(Create, 2)" -> {"(initInformers, 1)";"(Check, 1)";"(CreateVolume, 1)";"(New, 9)";"(Create, 3)";}
"(Create, 1)" -> {"(Create, 2)";}
}

```

Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.

commit ID: 07e45cb8ec631f158f6c7c29330a9cdeae9f4a29

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with source/vendor/github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator/range_set.go at lines 80-84 and read the surrounding allocator code. Verify whether passing &r2 to Overlaps can actually lead to a goroutine or unsafe range-variable reference; completion means confirming or dismissing the analyzer finding with the reasoning recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.