From a41abb4594d951339d3b4346251ddbc5364c0a04 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 10 Apr 2024 21:27:39 -0600 Subject: [PATCH] fix probable format bug in DerivationGoal::buildDone Either the contents of `line` could cause format errors, or this usage is Technically safe. However, I trust nothing, especially with boost::format. Change-Id: I07933b20bde3b305a6e5d61c2a7bab6ecb042ad9 --- src/libstore/build/derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index f879a580e..faebd3c43 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -1009,7 +1009,7 @@ void DerivationGoal::buildDone() if (diskFull) msg += "\nnote: build failure may have been caused by lack of free disk space"; - throw BuildError(msg); + throw BuildError("%s", msg); } /* Compute the FS closure of the outputs and register them as