• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * SPDX-License-Identifier: GPL-2.0
4  *
5  * Unless required by applicable law or agreed to in writing, software
6  * distributed under the License is distributed on an "AS IS" BASIS,
7  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8  * See the License for the specific language governing permissions and
9  * limitations under the License.
10  */
11 
12 #include <vector>
13 #include <cstddef>
14 #include <cstdint>
15 #include "__config"
16 #define CMDERROR
17 #include "accesstokenidcommon.h"
18 
19 using namespace std;
20 using namespace OHOS::Kernel::AccessToken;
21 namespace OHOS {
GetfTokenidCmdCorrectFuzzTest(const uint8_t * data,size_t size)22 bool GetfTokenidCmdCorrectFuzzTest(const uint8_t *data, size_t size)
23 {
24     bool ret = GetfTokenidCmdFuzzTest(data, size);
25     return ret;
26 }
27 }
28 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)29 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
30 {
31     OHOS::GetfTokenidCmdCorrectFuzzTest(data, size);
32     return 0;
33 }
34