diff options
author | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-12-01 16:28:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 16:28:38 +0100 |
commit | f3f32f0c30f197af2fd5a90702f7002ae74b2dfb (patch) | |
tree | 107325f82370f97267a422b7dc42dae667e8b3c3 /src/libmain/progress-bar.cc | |
parent | 1a9bfdc4ca0c2786b02801540432badbafa3a811 (diff) | |
parent | d41af23a6c879fe2b5f88e40e0ad87db099a23cf (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.cc | 2 |
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); |