aboutsummaryrefslogtreecommitdiff
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
parentf3260b276e30f26feb8ecb69bd628ad87e687d0a (diff)
Fix heap-buffer-overflow in evaluate_dependency
-rw-r--r--bpkg/pkg-build.cxx2
-rw-r--r--doc/manual.cli6
2 files changed, 4 insertions, 4 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;
diff --git a/doc/manual.cli b/doc/manual.cli
index 6a7e6b4..cbca17d 100644
--- a/doc/manual.cli
+++ b/doc/manual.cli
@@ -614,9 +614,9 @@ license: <licenses> [; <comment>]
[depends]: [?][*] <alternatives> [; <comment>]
[requires]: [?] [<alternatives>] [; <comment>]
-[tests]: <name> [<version-constraint>]
-[examples]: <name> [<version-constraint>]
-[benchmarks]: <name> [<version-constraint>]
+[tests]: [*] <name> [<version-constraint>]
+[examples]: [*] <name> [<version-constraint>]
+[benchmarks]: [*] <name> [<version-constraint>]
[builds]: <class-expr> [; <comment>]
[build-include]: <config>[/<target>] [; <comment>]