From b4179919e9456784d91e3ce2766c734213fe2945 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Mar 2023 15:17:50 +0300 Subject: Fix process::path_search() calls to prevent leakage of local variable addresses --- bpkg/system-package-manager-debian.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpkg/system-package-manager-debian.cxx') 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; } -- cgit v1.1