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 reinterpret_cast
11 static_cast
12 */
13
14 #include <vector>
15 #include <cstddef>
16 #include <cstdint>
17 #include "__config"
18 #include "accesstokenidcommon.h"
19
20 using namespace std;
21 using namespace OHOS::Kernel::AccessToken;
22 namespace OHOS {
GetTokenidCmdCorrectFuzzTest(const uint8_t * data,size_t size)23 bool GetTokenidCmdCorrectFuzzTest(const uint8_t *data, size_t size)
24 {
25 bool ret = GetTokenidCmdFuzzTest(data, size);
26 return ret;
27 }
28 }
29
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)30 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
31 {
32 OHOS::GetTokenidCmdCorrectFuzzTest(data, size);
33 return 0;
34 }
35