• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * SPDX-License-Identifier: GPL-2.0
4  *
5  * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT.
6  * Do not use in new code.
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS,
10  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  * See the License for the specific language governing permissions and
12  * limitations under the License.
13  */
14 
15 #include <cstddef>
16 #include <cstdint>
17 #include "hccommon.h"
18 
19 const char *HC_WARM_DATA_WATERLINE = "/sys/fs/f2fs/loop1/hc_warm_data_waterline";
20 
21 namespace OHOS {
HcWarmDataWaterLineFuzzTest(const uint8_t * data,size_t size)22 bool HcWarmDataWaterLineFuzzTest(const uint8_t *data, size_t size)
23 {
24     bool ret = HcFuzzTest(data, HC_WARM_DATA_WATERLINE, size);
25     return ret;
26 }
27 } // namespace OHOS
28 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)29 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
30 {
31     OHOS::HcWarmDataWaterLineFuzzTest(data, size);
32     return 0;
33 }
34