From 5192380549313a8994d1715dc97c0775de435d72 Mon Sep 17 00:00:00 2001 From: Ned Wright Date: Tue, 20 Jun 2023 09:31:14 +0000 Subject: [PATCH] Ignoring null packages list --- .../manifest_controller/manifest_controller.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/security_apps/orchestration/manifest_controller/manifest_controller.cc b/components/security_apps/orchestration/manifest_controller/manifest_controller.cc index 725d0b0..f48fa51 100755 --- a/components/security_apps/orchestration/manifest_controller/manifest_controller.cc +++ b/components/security_apps/orchestration/manifest_controller/manifest_controller.cc @@ -477,6 +477,13 @@ ManifestController::Impl::isIgnoreFile(const string &new_manifest_file) const manifest.get(ch); } + if (!manifest.good() || ch != ':') return false; + manifest.get(ch); + + while (manifest.good() && isspace(ch)) { + manifest.get(ch); + } + if (!manifest.good() || ch != 'n') return false; manifest.get(ch); if (!manifest.good() || ch != 'u') return false;