libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

fuzz_extract.dict (1911B)


      1 # Dictionary shared by every fuzz_<plugin> target.
      2 #
      3 # libFuzzer inserts these verbatim, which is what gets a mutated input
      4 # past a magic-number test that random bytes would never satisfy.  The
      5 # chunk tags matter as much as the magic numbers: most of these parsers
      6 # are a loop over four-character tags, and a tag the loop recognises is
      7 # what opens up the code behind it.
      8 
      9 # container magic
     10 "\x89PNG\x0d\x0a\x1a\x0a"
     11 "GIF87a"
     12 "GIF89a"
     13 "\xff\xd8\xff\xe0"
     14 "\xff\xd8\xff\xe1"
     15 "RIFF"
     16 "WAVE"
     17 "AVI "
     18 "PK\x03\x04"
     19 "PK\x01\x02"
     20 "PK\x05\x06"
     21 "PK\x07\x08"
     22 "\x7fELF"
     23 "%!PS-Adobe-"
     24 "{\\rtf1"
     25 "NESM\x1a"
     26 "NSFE"
     27 "PSID"
     28 "RSID"
     29 "SCRM"
     30 "IMPM"
     31 "Extended Module: "
     32 "MThd"
     33 "MTrk"
     34 "fLaC"
     35 "OggS"
     36 "\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1"
     37 "\x1f\x8b\x08"
     38 "BZh9"
     39 "!<arch>\x0a"
     40 "debian-binary"
     41 "\xed\xab\xee\xdb"
     42 "\x00\x05\x16\x00"
     43 "\x00\x05\x16\x07"
     44 "\xf7\x02"
     45 ".RMF"
     46 "II\x2a\x00"
     47 "MM\x00\x2a"
     48 
     49 # PNG / generic big-endian chunk tags
     50 "IHDR"
     51 "PLTE"
     52 "IDAT"
     53 "IEND"
     54 "tEXt"
     55 "zTXt"
     56 "iTXt"
     57 "tIME"
     58 "pHYs"
     59 "gAMA"
     60 
     61 # RIFF / AVI / WAV
     62 "LIST"
     63 "INFO"
     64 "fmt "
     65 "data"
     66 "INAM"
     67 "IART"
     68 "ICMT"
     69 "ICRD"
     70 "IGNR"
     71 "ISFT"
     72 "avih"
     73 "strh"
     74 "strf"
     75 "movi"
     76 "JUNK"
     77 
     78 # QuickTime / MP4
     79 "moov"
     80 "mvhd"
     81 "trak"
     82 "mdia"
     83 "minf"
     84 "stbl"
     85 "udta"
     86 "meta"
     87 "ilst"
     88 "ftyp"
     89 "mdat"
     90 "cmov"
     91 "\xa9nam"
     92 "\xa9ART"
     93 "\xa9cmt"
     94 
     95 # RealMedia
     96 "PROP"
     97 "MDPR"
     98 "CONT"
     99 "DATA"
    100 "INDX"
    101 
    102 # ZIP members libextractor looks for
    103 "mimetype"
    104 "meta.xml"
    105 "content.xml"
    106 "META-INF/manifest.xml"
    107 "docProps/core.xml"
    108 "docProps/app.xml"
    109 "word/document.xml"
    110 "xl/workbook.xml"
    111 "ppt/presentation.xml"
    112 "application/vnd.oasis.opendocument."
    113 
    114 # XML / text markers
    115 "<dc:title>"
    116 "<dc:creator>"
    117 "<meta:"
    118 "<office:meta>"
    119 "%%Title:"
    120 "%%Creator:"
    121 "%%Pages:"
    122 "%%BoundingBox:"
    123 "%%EOF"
    124 ".TH "
    125 ".SH "
    126 "NAME"
    127 "SYNOPSIS"
    128 "\\info"
    129 "\\title"
    130 "\\author"
    131 "\\*\\"
    132 "\\u"
    133 "\\'"
    134 
    135 # lengths and counters that tend to be the interesting ones
    136 "\x00\x00\x00\x00"
    137 "\xff\xff\xff\xff"
    138 "\x7f\xff\xff\xff"
    139 "\x80\x00\x00\x00"
    140 "\x00\x00\x00\x01"
    141 "\xff\xff"
    142 "\x7f\xff"