Expand description
Specialized deep parsers and container inspection subsystem.
Implements procedural format validators ported from file:
- TAR archive checksum verification (
is_tar.c) - Fast JSON state-machine scanner (
is_json.c) - Tabular CSV/TSV consistency validator (
is_csv.c) - ELF binary header inspector (
readelf.c) - OLE2 Compound Document File (CDF) inspector (
readcdf.c) - ZIP container signature inspector (DOCX, XLSX, PPTX, EPUB, APK, JAR, HWPX)
- Transparent payload decompression probe (
compress.c)
Functionsยง
- detect_
container_ candidates - Evaluates all container, structured format, and decompression inspectors on source.
- inspect_
csv_ tsv - Inspects source for tabular consistency (CSV or TSV).
- inspect_
elf - Inspects source for ELF binary executable or library header.
- inspect_
json - Inspects source for JSON text data or NDJSON.
- inspect_
ole2_ cdf - Inspects source for OLE2 CDF containers (Word, Excel,
PowerPoint, MSI, HWP). - inspect_
simh - Inspects source for SIM-H magnetic tape image format (
is_simh.c). - inspect_
tar - Inspects source for a valid 512-byte TAR header with matching checksum.
- inspect_
zip_ container - Inspects source for ZIP archive containers and specialized package formats.
- scan_
json - Evaluates buffer with JSON state machine scanner.
Returns 1 for single JSON document, 2 for NDJSON /
JSONLines, 0 for not JSON.