/* * Copyright (c) 2025 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include #include #include "modules/rtp_rtcp/source/rtp_packetizer_h265.h" #include "test/fuzzers/fuzz_data_helper.h" #include "test/fuzzers/utils/validate_rtp_packetizer.h" namespace webrtc { void FuzzOneInput(const uint8_t* data, size_t size) { test::FuzzDataHelper fuzz_input(MakeArrayView(data, size)); RtpPacketizer::PayloadSizeLimits limits = ReadPayloadSizeLimits(fuzz_input); // Main function under test: RtpPacketizerH265's constructor. RtpPacketizerH265 packetizer(fuzz_input.ReadByteArray(fuzz_input.BytesLeft()), limits); ValidateRtpPacketizer(limits, packetizer); } } // namespace webrtc