Skip to content

Commit 48e1eb4

Browse files
committed
gltfpack: Fix fuzzing interaction with meshopt_ext
We need to pass a non-NULL pointer for the meshopt extension to avoid strcmp with NULL.
1 parent 142948b commit 48e1eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gltf/gltfpack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* buffer, size_t size)
18641864

18651865
std::string json, bin, fallback;
18661866
size_t fallback_size = 0;
1867-
process(data, NULL, NULL, NULL, meshes, animations, settings, json, bin, fallback, fallback_size, NULL);
1867+
process(data, NULL, NULL, NULL, meshes, animations, settings, json, bin, fallback, fallback_size, "KHR_meshopt_compression");
18681868

18691869
cgltf_free(data);
18701870

0 commit comments

Comments
 (0)