modify fuzz

Signed-off-by: w30042960 <wangyupan1@huawei.com>
This commit is contained in:
w30042960 2024-10-09 11:55:02 +08:00
parent b054d92659
commit 08fa8f22b0

View File

@ -21,7 +21,6 @@
#include "iremote_object.h"
#include "message_option.h"
#include "message_parcel.h"
#include "av_sync_utils.h"
namespace OHOS {
namespace DistributedHardware {
@ -32,6 +31,11 @@ std::string MarshalSharedMemory(const AVTransSharedMemory &memory)
return "";
}
AVTransSharedMemory UnmarshalSharedMemory(const std::string &jsonStr)
{
return AVTransSharedMemory{0, 0, ""};
}
void AVTransStubOnRemoteRequestFuzzTest(const uint8_t *data, size_t size)
{
if ((data == nullptr) || (size < sizeof(int32_t))) {