Module container

Module container 

Source
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.