2022-10-12 03:44:06 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2024-06-10 20:04:03 +00:00
|
|
|
#include <LibMedia/Containers/Matroska/Reader.h>
|
2022-10-12 03:44:06 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
|
|
|
|
{
|
2023-11-03 17:49:54 +00:00
|
|
|
AK::set_debug_enabled(false);
|
2024-06-10 20:04:03 +00:00
|
|
|
auto matroska_reader_result = Media::Matroska::Reader::from_data({ data, size });
|
2022-11-11 23:14:27 +00:00
|
|
|
if (matroska_reader_result.is_error())
|
2022-12-05 01:08:04 +00:00
|
|
|
return 0;
|
|
|
|
(void)matroska_reader_result.value().segment_information();
|
|
|
|
(void)matroska_reader_result.value().track_count();
|
2022-10-12 03:44:06 +00:00
|
|
|
return 0;
|
|
|
|
}
|