28 lines
891 B
Diff
28 lines
891 B
Diff
From f1cf6f12157da3cf555e49d1b5f0af5c81d0c101 Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Mracek <jmracek@redhat.com>
|
|
Date: Fri, 28 Jun 2019 18:47:19 +0200
|
|
Subject: [PATCH] Re-size includes map before re-computation (RhBug:1725213)
|
|
|
|
It resolves problems with incorrect reads.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1725213
|
|
---
|
|
libdnf/dnf-sack.cpp | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp
|
|
index 33fbe4a..c0c1cc5 100644
|
|
--- a/libdnf/dnf-sack.cpp
|
|
+++ b/libdnf/dnf-sack.cpp
|
|
@@ -356,6 +356,7 @@ dnf_sack_recompute_considered(DnfSack *sack)
|
|
if (priv->module_excludes)
|
|
map_subtract(pool->considered, priv->module_excludes);
|
|
if (priv->pkg_includes) {
|
|
+ map_grow(priv->pkg_includes, pool->nsolvables);
|
|
Map pkg_includes_tmp;
|
|
map_init_clone(&pkg_includes_tmp, priv->pkg_includes);
|
|
|
|
--
|
|
libgit2 0.28.2
|
|
|