// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details1#include "Luau/Common.h"23#include <vector>45#include <stddef.h>6#include <stdint.h>7#include <string.h>89namespace Luau10{11void fuzzFormatString(const char* data, size_t size);12} // namespace Luau1314extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)15{16for (Luau::FValue<bool>* flag = Luau::FValue<bool>::list; flag; flag = flag->next)17{18if (strncmp(flag->name, "Luau", 4) == 0)19flag->value = true;20}2122// copy data to heap to make sure ASAN can catch out of bounds access23std::vector<char> str(Data, Data + Size);2425Luau::fuzzFormatString(str.data(), str.size());2627return 0;28}293031