diff --git a/test/fuzztest/reminderhelper_fuzzer/corpus/init b/test/fuzztest/reminderhelper_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..14bec243dd1aded4ddfd0b7c75df5f7527e3189d 100644 --- a/test/fuzztest/reminderhelper_fuzzer/corpus/init +++ b/test/fuzztest/reminderhelper_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +1000000000000000100000006154306D4239744A316448357742327248307247 \ No newline at end of file diff --git a/test/fuzztest/reminderhelper_fuzzer/reminderhelper_fuzzer.cpp b/test/fuzztest/reminderhelper_fuzzer/reminderhelper_fuzzer.cpp index 0badeeea5d2eb5f3ecfa3b0332d9658c25c741a1..14389d7cbff555dd1dc8687e3bb21e6219035fef 100644 --- a/test/fuzztest/reminderhelper_fuzzer/reminderhelper_fuzzer.cpp +++ b/test/fuzztest/reminderhelper_fuzzer/reminderhelper_fuzzer.cpp @@ -32,7 +32,7 @@ namespace OHOS { std::vector validReminders; validReminders.emplace_back(valid); Notification::ReminderHelper::GetValidReminders(validReminders); - uint64_t excludeDate = static_cast(reminderId); + uint64_t excludeDate = fdp->ConsumeIntegral(); Notification::ReminderHelper::AddExcludeDate(reminderId, excludeDate); Notification::ReminderHelper::DelExcludeDates(reminderId); std::vector dates; diff --git a/test/fuzztest/reminderrequest_fuzzer/corpus/init b/test/fuzztest/reminderrequest_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..6dd3d7d948858a7222dd6cb206521d97e10d3fbc 100644 --- a/test/fuzztest/reminderrequest_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequest_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +101000000000000000100000000000000010000000000000001000000000000000100000000000000010100010000000674630765133764C336E5637624233664E316651 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestalarm_fuzzer/corpus/init b/test/fuzztest/reminderrequestalarm_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..3ba845cfe2600b7743c9b5cb32ae4115a7bfcf4b 100644 --- a/test/fuzztest/reminderrequestalarm_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequestalarm_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +1010101010 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestannex_fuzzer/corpus/init b/test/fuzztest/reminderrequestannex_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..e21041f658c479ecc0476636a9c332b05e1e2173 100644 --- a/test/fuzztest/reminderrequestannex_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequestannex_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +10000000000000001000000000000000101010000000664B39635538705A33764C357047377158327751 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestannex_fuzzer/reminderrequestannex_fuzzer.cpp b/test/fuzztest/reminderrequestannex_fuzzer/reminderrequestannex_fuzzer.cpp index 03a0f77aa6d1c2c23474d57550c918e5dac580c9..86fd5808be06a736bb733434ec90734da3f061d9 100644 --- a/test/fuzztest/reminderrequestannex_fuzzer/reminderrequestannex_fuzzer.cpp +++ b/test/fuzztest/reminderrequestannex_fuzzer/reminderrequestannex_fuzzer.cpp @@ -27,7 +27,7 @@ namespace OHOS { reminderRequest.SetSnoozeTimes(snoozeTimes); uint8_t snooziTimes = fdp->ConsumeIntegral(); reminderRequest.SetSnoozeTimesDynamic(snooziTimes); - uint64_t timeIntervalInSeconds = 1; + uint64_t timeIntervalInSeconds = fdp->ConsumeIntegral(); reminderRequest.SetTimeInterval(timeIntervalInSeconds); reminderRequest.SetTitle(stringData); reminderRequest.SetTriggerTimeInMilli(timeIntervalInSeconds); @@ -44,7 +44,7 @@ namespace OHOS { reminderRequest.GetReminderTimeInMilli(); reminderRequest.SetReminderId(reminderId); reminderRequest.SetReminderTimeInMilli(timeIntervalInSeconds); - uint64_t ringDurationInSeconds = 0; + uint64_t ringDurationInSeconds = fdp->ConsumeIntegral(); reminderRequest.SetRingDuration(ringDurationInSeconds); reminderRequest.GetSlotType(); reminderRequest.GetSnoozeContent(); diff --git a/test/fuzztest/reminderrequestannexthree_fuzzer/corpus/init b/test/fuzztest/reminderrequestannexthree_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..7a606b61bde290498e03ff77acc0da00a6d3ce0c 100644 --- a/test/fuzztest/reminderrequestannexthree_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequestannexthree_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +10100000000000000010000000 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestannexthree_fuzzer/reminderrequestannexthree_fuzzer.cpp b/test/fuzztest/reminderrequestannexthree_fuzzer/reminderrequestannexthree_fuzzer.cpp index 06db4eb5983ccf78933f73f1b4353df768299203..a328085b29180a1fb79788746a52aa1aeacd068d 100644 --- a/test/fuzztest/reminderrequestannexthree_fuzzer/reminderrequestannexthree_fuzzer.cpp +++ b/test/fuzztest/reminderrequestannexthree_fuzzer/reminderrequestannexthree_fuzzer.cpp @@ -23,7 +23,7 @@ namespace OHOS { int32_t reminderId = fdp->ConsumeIntegral(); Notification::ReminderRequest reminderRequest(reminderId); reminderRequest.GetTitle(); - uint64_t showTime = 2; + uint64_t showTime = fdp->ConsumeIntegral(); reminderRequest.ReminderRequest::GetShowTime(showTime); Notification::ReminderRequest::TimeTransferType type = Notification::ReminderRequest::TimeTransferType::YEAR; int32_t cTime = static_cast(fdp->ConsumeIntegral()); diff --git a/test/fuzztest/reminderrequestcalendar_fuzzer/corpus/init b/test/fuzztest/reminderrequestcalendar_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..01a8e0bd54d706e9f3050716453f6a734e8ac671 100644 --- a/test/fuzztest/reminderrequestcalendar_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequestcalendar_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +10101001101101010 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestcontinuate_fuzzer/corpus/init b/test/fuzztest/reminderrequestcontinuate_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..3b906d1ab6c5650f76b95336bd9c08082e5f9c21 100644 --- a/test/fuzztest/reminderrequestcontinuate_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequestcontinuate_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +10000000 \ No newline at end of file diff --git a/test/fuzztest/reminderrequestcontinuate_fuzzer/reminderrequestcontinuate_fuzzer.cpp b/test/fuzztest/reminderrequestcontinuate_fuzzer/reminderrequestcontinuate_fuzzer.cpp index 08fa581b0afc868841b5febef92542f8691f84d9..cfbfb4bc57e2bb8e6dad56fbeca66fd952974164 100644 --- a/test/fuzztest/reminderrequestcontinuate_fuzzer/reminderrequestcontinuate_fuzzer.cpp +++ b/test/fuzztest/reminderrequestcontinuate_fuzzer/reminderrequestcontinuate_fuzzer.cpp @@ -20,7 +20,6 @@ namespace OHOS { bool DoSomethingInterestingWithMyAPI(FuzzedDataProvider* fdp) { - std::string stringData = fdp->ConsumeRandomLengthString(); int32_t reminderId = fdp->ConsumeIntegral(); Notification::ReminderRequest reminderRequest(reminderId); reminderRequest.SerializeButtonInfo(); diff --git a/test/fuzztest/reminderrequesttimer_fuzzer/corpus/init b/test/fuzztest/reminderrequesttimer_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..7dac61a868bf11d56f6a9ac7e075923af0382b48 100644 --- a/test/fuzztest/reminderrequesttimer_fuzzer/corpus/init +++ b/test/fuzztest/reminderrequesttimer_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +06E4C30724B366151366254366A45336A43377257A000000000000000 \ No newline at end of file diff --git a/test/fuzztest/reminderrequesttimer_fuzzer/reminderrequesttimer_fuzzer.cpp b/test/fuzztest/reminderrequesttimer_fuzzer/reminderrequesttimer_fuzzer.cpp index a38eb921e77f78f69f76c85c54b1b2d3f17269ee..06912f837b859f69ca701112f95794ecce02489a 100644 --- a/test/fuzztest/reminderrequesttimer_fuzzer/reminderrequesttimer_fuzzer.cpp +++ b/test/fuzztest/reminderrequesttimer_fuzzer/reminderrequesttimer_fuzzer.cpp @@ -20,7 +20,7 @@ namespace OHOS { bool DoSomethingInterestingWithMyAPI(FuzzedDataProvider* fdp) { - uint64_t countDownTimeInSeconds = 0; + uint64_t countDownTimeInSeconds = fdp->ConsumeIntegral(); std::string stringData = fdp->ConsumeRandomLengthString(); Notification::ReminderRequestTimer reminderRequestTimer(countDownTimeInSeconds); reminderRequestTimer.GetInitInfo(); diff --git a/test/fuzztest/reminderservice_fuzzer/corpus/init b/test/fuzztest/reminderservice_fuzzer/corpus/init index d6a927d5409f58fd33b8e793135561bca72e8409..d6a4df5736dc9512ead9095b6392b17f7249eaf8 100644 --- a/test/fuzztest/reminderservice_fuzzer/corpus/init +++ b/test/fuzztest/reminderservice_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -100 \ No newline at end of file +100000000000000010000000100000007A5A366658376A4A386E5A39664D36634C307059 \ No newline at end of file diff --git a/test/fuzztest/reminderstoreannex_fuzzer/corpus/init b/test/fuzztest/reminderstoreannex_fuzzer/corpus/init index 1b910144fb1ff33a40a44b1d2a491b1ab05b598b..d3cf3935ac9a457bf53d8b30d0237b8b739e4e74 100644 --- a/test/fuzztest/reminderstoreannex_fuzzer/corpus/init +++ b/test/fuzztest/reminderstoreannex_fuzzer/corpus/init @@ -1,13 +1 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -FUZZ \ No newline at end of file +7A5A366658376A4A386E5A39664D36634C307059100000007053337A52336152307A4A36645735684C316B447053337A52336152307A4A36645735684C316B44 \ No newline at end of file