
to Mdns.*. MdnsResponderInterface now explicitly requires the reference counting of created names to allow the coexistence of multiple users of the same responder where one user would not remove identical names created by others. MDns.* is also renamed to Mdns.* per the style guide. TBR=aleloi@webrtc.org Bug: webrtc:9605 Change-Id: I047fc41f34de8d4e97c980409a7f373769c4c252 Reviewed-on: https://webrtc-review.googlesource.com/c/101921 Commit-Queue: Qingsi Wang <qingsi@webrtc.org> Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25458}
27 lines
809 B
C++
27 lines
809 B
C++
/*
|
|
* Copyright 2018 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 <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "absl/memory/memory.h"
|
|
#include "p2p/base/mdns_message.h"
|
|
#include "rtc_base/message_buffer_reader.h"
|
|
|
|
namespace webrtc {
|
|
|
|
void FuzzOneInput(const uint8_t* data, size_t size) {
|
|
MessageBufferReader buf(reinterpret_cast<const char*>(data), size);
|
|
auto mdns_msg = absl::make_unique<MdnsMessage>();
|
|
mdns_msg->Read(&buf);
|
|
}
|
|
|
|
} // namespace webrtc
|