aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/progress-bar.cc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <regnat@users.noreply.github.com>2021-12-01 16:28:38 +0100
committerGitHub <noreply@github.com>2021-12-01 16:28:38 +0100
commitf3f32f0c30f197af2fd5a90702f7002ae74b2dfb (patch)
tree107325f82370f97267a422b7dc42dae667e8b3c3 /src/libmain/progress-bar.cc
parent1a9bfdc4ca0c2786b02801540432badbafa3a811 (diff)
parentd41af23a6c879fe2b5f88e40e0ad87db099a23cf (diff)
Merge pull request #5599 from fzakaria/faridzakaria/fix-progress-bar-leak
Fix heap use after free in progress-bar.cc
Diffstat (limited to 'src/libmain/progress-bar.cc')
-rw-r--r--src/libmain/progress-bar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/progress-bar.cc b/src/libmain/progress-bar.cc
index 63955eed1..f4306ab91 100644
--- a/src/libmain/progress-bar.cc
+++ b/src/libmain/progress-bar.cc
@@ -11,7 +11,7 @@
namespace nix {
-static std::string getS(const std::vector<Logger::Field> & fields, size_t n)
+static std::string_view getS(const std::vector<Logger::Field> & fields, size_t n)
{
assert(n < fields.size());
assert(fields[n].type == Logger::Field::tString);