diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 16:05:42 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 18:00:33 +0100 |
| commit | 89a77d19c9404ffde9955123cfea3b3c3aa906b2 (patch) | |
| tree | 33b7b6b4b0c0d980d2d66bc3a5174fa8617452f4 /apt-pkg | |
| parent | 8fd0ebc330bcdbced85877ff48bf40582bf983f9 (diff) | |
ReportMirrorFailureToCentral: fix use-after-free
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/acquire-item.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 3016dad59..ab3761749 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -140,10 +140,11 @@ static void ReportMirrorFailureToCentral(pkgAcquire::Item const &I, std::string if(!FileExists(report)) return; + const auto DescURI = I.DescURI(); std::vector<char const*> const Args = { report.c_str(), I.UsedMirror.c_str(), - I.DescURI().c_str(), + DescURI.c_str(), FailCode.c_str(), Details.c_str(), NULL |
