Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/fuzz/prototest.cpp
2723 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#include "src/libfuzzer/libfuzzer_macro.h"
3
#include "luau.pb.h"
4
5
std::vector<std::string> protoprint(const luau::ModuleSet& stat, bool types);
6
7
DEFINE_PROTO_FUZZER(const luau::ModuleSet& message)
8
{
9
std::vector<std::string> sources = protoprint(message, true);
10
11
for (size_t i = 0; i < sources.size(); i++)
12
{
13
printf("Module 'l%d':\n", int(i));
14
printf("%s\n", sources[i].c_str());
15
}
16
}
17
18