commit:     35c252312d61c203deac250e5034aba5f9c706b9
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri May 24 12:25:24 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri May 24 12:25:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=35c25231

qmanifest: avoid reading uninitialised memory

this likely fixes the problem Travis found that I cannot repeat here

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qmanifest.c                             |   2 ++
 tests/qmanifest/root/.gnupg/random_seed | Bin 600 -> 600 bytes
 2 files changed, 2 insertions(+)

diff --git a/qmanifest.c b/qmanifest.c
index ed203a6..b5bbd79 100644
--- a/qmanifest.c
+++ b/qmanifest.c
@@ -1777,6 +1777,8 @@ qmanifest_main(int argc, char **argv)
                        } else {
                                snprintf(path, sizeof(path), "./%s", overlay);
                        }
+               } else {
+                       snprintf(path, sizeof(path), "%s", overlay);
                }
 
                snprintf(path2, sizeof(path2), "%s%s", portroot, path);

diff --git a/tests/qmanifest/root/.gnupg/random_seed 
b/tests/qmanifest/root/.gnupg/random_seed
index d32d054..e0d638e 100644
Binary files a/tests/qmanifest/root/.gnupg/random_seed and 
b/tests/qmanifest/root/.gnupg/random_seed differ

Reply via email to