!884 fix fuzz warning

Merge pull request !884 from tangjunyuan/master
This commit is contained in:
openharmony_ci 2024-11-20 07:04:57 +00:00 committed by Gitee
commit be8de47bfa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@ namespace OHOS {
bool RegisteLogFuzz(const uint8_t *data, size_t size)
{
(void)data;
(void)size;
struct log_func_group logFunc = {
TestLogd,
TestLogd,

View File

@ -59,6 +59,8 @@ static void NativeTokenSet(const char *procName)
bool FuzzDoCallback(const uint8_t* data, size_t size)
{
(void)data;
(void)size;
NativeTokenSet("device_manager");
StubDevAuthCb *remoteObj = new(std::nothrow) StubDevAuthCb();
if (remoteObj == nullptr) {