infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
fuzz_signature.c File Reference

Fuzzer target for the high-level signature parsing API. More...

#include <infix/infix.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "fuzz_helpers.h"
Include dependency graph for fuzz_signature.c:

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 The entry point for libFuzzer.
 

Detailed Description

Fuzzer target for the high-level signature parsing API.

Copyright (c) 2025 Sanko Robinson

This source code is dual-licensed under the Artistic License 2.0 or the MIT License. You may choose to use this code under the terms of either license.

SPDX-License-Identifier: (Artistic-2.0 OR MIT)

The documentation blocks within this file are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

SPDX-License-Identifier: CC-BY-4.0

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

The entry point for libFuzzer.

This function is called by the libFuzzer runtime for each test case. It takes the raw fuzzer data, treats it as a signature string, and passes it to the main infix parsing APIs.

Parameters
dataA pointer to the fuzzer-generated input data.
sizeThe size of the data.
Returns
0 on completion.