mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
aux: add QuirkKeyValuePair type
This commit is contained in:
1 parent
3215f6afac
commit
ffb64df0a0
12 files changed
+111
-120
No files matched your search
@@ -499,11 +499,11 @@ fuzz_cpp(const uint8_t* in_ptr, size_t in_len, uint64_t hash) {
|
||||
const char* json_pointer = json_pointers[hash & 15];
|
||||
hash = wuffs_base__u64__rotate_right(hash, 4);
|
||||
|
||||
std::vector<uint32_t> quirks;
|
||||
std::vector<wuffs_aux::QuirkKeyValuePair> quirks;
|
||||
for (uint32_t i = 0; g_quirks[i]; i++) {
|
||||
uint64_t bit = 1 << (i & 63);
|
||||
if (hash & bit) {
|
||||
quirks.push_back(g_quirks[i]);
|
||||
quirks.push_back({g_quirks[i], 1});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user