Dear Maintainer,
The format is read thus:
int read_header(FILE *fp, Header *h)
{
uint32_t buf[3];
if (fread_wrapper(buf, sizeof(uint32_t), 3, fp) == 0)
{
return 0;
}
h->tv.tv_sec = convert_to_little_endian(buf[0]);
h->tv.tv_usec = convert_to_little_endian(buf[1]);
h->len = convert_to_little_endian(buf[2]);
return 1;
}
Naturally, this makes it susceptible to y2038.
Given that this format is produced and consumed by multiple
implementations, some sort of Reasonably Coordinated Implementation
needs to be invented here.
Best,