diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-24 15:17:50 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-24 15:17:50 +0300 |
commit | b4179919e9456784d91e3ce2766c734213fe2945 (patch) | |
tree | c0c65699c804976dc496fffadaa608b2af3cec8e /bpkg/system-package-manager-debian.cxx | |
parent | ff2ac78130e283ecacf485b5ba1b7674281dc38b (diff) |
Fix process::path_search() calls to prevent leakage of local variable addresses
Diffstat (limited to 'bpkg/system-package-manager-debian.cxx')
-rw-r--r-- | bpkg/system-package-manager-debian.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx index ca44658..b06487f 100644 --- a/bpkg/system-package-manager-debian.cxx +++ b/bpkg/system-package-manager-debian.cxx @@ -256,7 +256,7 @@ namespace bpkg try { if (apt_cache_path.empty () && !simulate_) - apt_cache_path = process::path_search (args[0]); + apt_cache_path = process::path_search (args[0], false /* init */); process_env pe (apt_cache_path, evars); @@ -476,7 +476,7 @@ namespace bpkg try { if (apt_cache_path.empty () && !simulate_) - apt_cache_path = process::path_search (args[0]); + apt_cache_path = process::path_search (args[0], false /* init */); process_env pe (apt_cache_path, evars); @@ -749,14 +749,14 @@ namespace bpkg if (!sudo_.empty ()) { if (sudo_path.empty () && !simulate_) - sudo_path = process::path_search (args[0]); + sudo_path = process::path_search (args[0], false /* init */); pp = &sudo_path; } else { if (apt_get_path.empty () && !simulate_) - apt_get_path = process::path_search (args[0]); + apt_get_path = process::path_search (args[0], false /* init */); pp = &apt_get_path; } |