mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 21:55:06 +01:00
externals: Update fmt to v7.0.3
Keeps the library up to date.
This commit is contained in:
commit
63802395c7
61 changed files with 3833 additions and 3091 deletions
4
externals/fmt/test/fuzzing/main.cpp
vendored
4
externals/fmt/test/fuzzing/main.cpp
vendored
|
|
@ -4,7 +4,7 @@
|
|||
#include <vector>
|
||||
#include "fuzzer_common.h"
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, std::size_t Size);
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size);
|
||||
int main(int argc, char* argv[]) {
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
std::ifstream in(argv[i]);
|
||||
|
|
@ -13,7 +13,7 @@ int main(int argc, char* argv[]) {
|
|||
const auto pos = in.tellg();
|
||||
assert(pos >= 0);
|
||||
in.seekg(0, std::ios_base::beg);
|
||||
std::vector<char> buf(static_cast<std::size_t>(pos));
|
||||
std::vector<char> buf(static_cast<size_t>(pos));
|
||||
in.read(buf.data(), static_cast<long>(buf.size()));
|
||||
assert(in.gcount() == pos);
|
||||
LLVMFuzzerTestOneInput(fmt_fuzzer::as_bytes(buf.data()), buf.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue