ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
epub_fixture.h File Reference

Baked known-good EPUB3 fixture (tests/fuzz/corpus/fuzz_epub/seed_two_chapters.epub). More...

#include <stddef.h>
#include <stdint.h>
Include dependency graph for epub_fixture.h:

Go to the source code of this file.

Enumerations

enum  : size_t { k_epub_fixture_len = 1355U }
 Length of the baked EPUB blob, bytes. More...

Variables

static const uint8_t k_epub_fixture [k_epub_fixture_len]
 Baked seed_two_chapters.epub byte stream.

Detailed Description

Baked known-good EPUB3 fixture (tests/fuzz/corpus/fuzz_epub/seed_two_chapters.epub).

A minimal valid EPUB (mimetype + container.xml + content.opf with a 2-chapter spine + two XHTML chapters), byte-identical to the fuzzer corpus seed. Baked as a C array so the HIL opens it through the real epub parse path (miniz ZIP inflate via the epub_miniz_alloc static arena). Pure ASCII.

Definition in file epub_fixture.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : size_t

Length of the baked EPUB blob, bytes.

Enumerator
k_epub_fixture_len 

EPUB fixture length.

Definition at line 21 of file epub_fixture.h.

Variable Documentation

◆ k_epub_fixture

const uint8_t k_epub_fixture[k_epub_fixture_len]
static

Baked seed_two_chapters.epub byte stream.

Definition at line 24 of file epub_fixture.h.