aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Beltran <ryanbeltran@chromium.org>2023-08-14 20:42:40 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-14 21:44:18 +0000
commitc0306cc96bf91a8e926ae79240d7639b942de74a (patch)
treea035755955e0209cf3fbddf0442f8cd277ba3cb2
parentbba5a5cbfedfdac635827b82f02a927224baecee (diff)
downloadtoolchain-utils-c0306cc96bf91a8e926ae79240d7639b942de74a.tar.gz
compiler_wrapper: Fix infinite recursion in runWithTimeout
This CL fixes a staticanalyzer result: env.go:126:9: infinite recursive call (SA5007) BUG=b:295930281 TEST=go test Change-Id: Id7d152afe658e8e104edd4730be9890c359d2b04 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4779193 Commit-Queue: Ryan Beltran <ryanbeltran@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Ryan Beltran <ryanbeltran@chromium.org>
-rw-r--r--compiler_wrapper/env.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler_wrapper/env.go b/compiler_wrapper/env.go
index 38f07cab..5ec8ea03 100644
--- a/compiler_wrapper/env.go
+++ b/compiler_wrapper/env.go
@@ -123,7 +123,7 @@ func (env *commandRecordingEnv) exec(cmd *command) error {
}
func (env *commandRecordingEnv) runWithTimeout(cmd *command, duration time.Duration) error {
- return env.runWithTimeout(cmd, duration)
+ return runCmdWithTimeout(env, cmd, duration)
}
func (env *commandRecordingEnv) run(cmd *command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error {