Skip to content
Permalink
Browse files

certify: fix possible segmentation fault at processing of command lin…

…e options

Change-Id: I7a9f524a5b95eceef16730878044b6ae01b177cd
  • Loading branch information...
riebl committed Oct 2, 2019
1 parent 7647dab commit 483c0539fd6101a6461cb70bbe957aec768579a7
Showing with 3 additions and 1 deletion.
  1. +3 −1 tools/certify/options.cpp
@@ -67,7 +67,9 @@ std::unique_ptr<Command> parse_options(int argc, const char *argv[])
}

std::vector<std::string> opts = po::collect_unrecognized(parsed.options, po::include_positional);
opts.erase(opts.begin());
if (!opts.empty()) {
opts.erase(opts.begin());
}

if (!command->parse(opts)) {
return nullptr;

0 comments on commit 483c053

Please sign in to comment.
You can’t perform that action at this time.