NeoMutt  2024-04-25-1-g3de005
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
date.c File Reference
#include "config.h"
#include <signal.h>
#include <stdint.h>
#include <sys/stat.h>
#include "mutt/lib.h"
+ Include dependency graph for date.c:

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 7 of file date.c.

8{
9 if (size > 512)
10 return -1;
11
12 struct Tz tz = { 0 };
13 time_t t = mutt_date_parse_date((const char *) data, &tz);
14 return 0;
15}
time_t mutt_date_parse_date(const char *s, struct Tz *tz_out)
Parse a date string in RFC822 format.
Definition: date.c:715
List of recognised Timezones.
Definition: date.h:50
+ Here is the call graph for this function: