aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-20 12:22:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-20 12:23:34 +0300
commit334a10d3d707b0949b1de3260557518012e72f64 (patch)
treebef6e3dae0c2fa58761babbea080ca371f8e8743 /bpkg
parentf3260b276e30f26feb8ecb69bd628ad87e687d0a (diff)
Fix heap-buffer-overflow in evaluate_dependency
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/pkg-build.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index db8dafb..4466e76 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -2724,7 +2724,7 @@ namespace bpkg
j != deps.end ();
++j)
{
- if (j->name == nm && (i->db == nullptr || *i->db == db))
+ if (j->name == nm && (j->db == nullptr || *j->db == db))
{
if (i == deps.end () || i->db == nullptr)
i = j;