Fuzz-test the Command Line Parser. More...
#include "config.h"#include <ctype.h>#include <stdbool.h>#include <stdint.h>#include <string.h>#include <unistd.h>#include "mutt/lib.h"#include "cli/lib.h"
Include dependency graph for cli.c:Go to the source code of this file.
Functions | |
| static bool | parse_args (const uint8_t *data, size_t size, int *argc, char ***argv) |
| Parse fuzz input into argc/argv format. | |
| static void | free_args (int argc, char **argv) |
| Free the allocated argc/argv. | |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
Variables | |
| bool | StartupComplete = true |
Fuzz-test the Command Line Parser.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file cli.c.
|
static |
Parse fuzz input into argc/argv format.
| data | Raw input data |
| size | Size of input data |
| argc | Pointer to store argument count |
| argv | Pointer to store argument array |
| true | Success |
| false | Failure |
Input format: space-separated arguments (like command line). Each corpus file contains a command line string.
Definition at line 46 of file cli.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
| size_t | size ) |
Definition at line 132 of file cli.c.
Here is the call graph for this function: