chantra / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

Blame SOURCES/0007-Re-size-includes-map-before-re-computation-RhBug1725213.patch

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