mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 05:23:29 -04:00
fix: fuzzing code was broken after moving to new namespaces
This commit is contained in:
parent
099a7b3727
commit
8fb9ae880b
@ -36,8 +36,8 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
null_logger lgr;
|
null_logger lgr;
|
||||||
|
|
||||||
auto& catreg = categorizer_registry::instance();
|
auto& catreg = writer::categorizer_registry::instance();
|
||||||
auto catmgr = std::make_shared<categorizer_manager>(lgr);
|
auto catmgr = std::make_shared<writer::categorizer_manager>(lgr);
|
||||||
|
|
||||||
boost::program_options::variables_map vm;
|
boost::program_options::variables_map vm;
|
||||||
catmgr->add(catreg.create(lgr, "pcmaudio", vm));
|
catmgr->add(catreg.create(lgr, "pcmaudio", vm));
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <folly/FileUtil.h>
|
#include <folly/FileUtil.h>
|
||||||
|
|
||||||
|
#include <dwarfs/tool/main_adapter.h>
|
||||||
#include <dwarfs_tool_main.h>
|
#include <dwarfs_tool_main.h>
|
||||||
|
|
||||||
#include "test_helpers.h"
|
#include "test_helpers.h"
|
||||||
@ -54,10 +55,7 @@ int main(int argc, char** argv) {
|
|||||||
auto args = test::parse_args(cmdline);
|
auto args = test::parse_args(cmdline);
|
||||||
args.insert(args.begin(), "mkdwarfs");
|
args.insert(args.begin(), "mkdwarfs");
|
||||||
|
|
||||||
try {
|
tool::main_adapter(tool::mkdwarfs_main).safe(args, iol->get());
|
||||||
mkdwarfs_main(args, iol->get());
|
|
||||||
} catch (const std::exception&) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user