mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 20:12:56 -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;
|
||||
|
||||
auto& catreg = categorizer_registry::instance();
|
||||
auto catmgr = std::make_shared<categorizer_manager>(lgr);
|
||||
auto& catreg = writer::categorizer_registry::instance();
|
||||
auto catmgr = std::make_shared<writer::categorizer_manager>(lgr);
|
||||
|
||||
boost::program_options::variables_map vm;
|
||||
catmgr->add(catreg.create(lgr, "pcmaudio", vm));
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include <folly/FileUtil.h>
|
||||
|
||||
#include <dwarfs/tool/main_adapter.h>
|
||||
#include <dwarfs_tool_main.h>
|
||||
|
||||
#include "test_helpers.h"
|
||||
@ -54,10 +55,7 @@ int main(int argc, char** argv) {
|
||||
auto args = test::parse_args(cmdline);
|
||||
args.insert(args.begin(), "mkdwarfs");
|
||||
|
||||
try {
|
||||
mkdwarfs_main(args, iol->get());
|
||||
} catch (const std::exception&) {
|
||||
}
|
||||
tool::main_adapter(tool::mkdwarfs_main).safe(args, iol->get());
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user