libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

fuzz_str.dict (2342B)


      1 # libFuzzer dictionary for fuzz_str (GNU libmicrohttpd).
      2 #
      3 # Byte 0 selects the target primitive in src/microhttpd/mhd_str.c
      4 # (hex_to_bin, bin_to_hex[_z], pct_decode strict/lenient, in-place pct
      5 # decode, unquote, quote, base64, str_to_uint64, token list handling,
      6 # equal_caseless), byte 1 is an auxiliary knob, byte 2.. is the payload
      7 # (truncated to 512 bytes by the harness).  These tokens are payload
      8 # vocabulary.
      9 
     10 # --- hex (MHD_hex_to_bin / MHD_bin_to_hex) ------------------------------
     11 hex_digits="0123456789abcdef"
     12 hex_upper="0123456789ABCDEF"
     13 hex_odd="abc"
     14 hex_32="0123456789abcdef0123456789abcdef"
     15 hex_64="0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
     16 hex_128="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
     17 hex_bad="0g"
     18 hex_0x="0x41"
     19 
     20 # --- percent-encoding ----------------------------------------------------
     21 pct="%"
     22 pct_a="%41"
     23 pct_lower="%61"
     24 pct_space="%20"
     25 pct_plus="%2B"
     26 pct_pct="%25"
     27 pct_nul="%00"
     28 pct_cr="%0D"
     29 pct_lf="%0A"
     30 pct_slash="%2F"
     31 pct_bad="%zz"
     32 pct_trunc="%4"
     33 pct_trunc2="%"
     34 pct_double="%2525"
     35 pct_utf8="%C3%A4"
     36 pct_overlong="%C0%80"
     37 pct_surrogate="%ED%A0%80"
     38 plus="+"
     39 
     40 # --- quoted-string (MHD_str_unquote / MHD_str_quote) --------------------
     41 quote="\""
     42 empty_quoted="\"\""
     43 escaped_quote="\\\""
     44 escaped_bs="\\\\"
     45 bs="\\"
     46 bs_at_end="a\\"
     47 quoted_word="\"abc\""
     48 quoted_ws="\" \""
     49 quoted_ctl="\"\x01\""
     50 quoted_cr="\"\x0d\""
     51 
     52 # --- base64 --------------------------------------------------------------
     53 b64_user_pass="dXNlcjpwYXNz"
     54 b64_pad1="YQ=="
     55 b64_pad2="YWI="
     56 b64_nopad="YWJj"
     57 b64_bad="!!!!"
     58 b64_ws="YWJj\x20"
     59 b64_lf="YWJj\x0a"
     60 b64_url="-_"
     61 b64_eq="="
     62 
     63 # --- MHD_str_to_uint64 ---------------------------------------------------
     64 n_zero="0"
     65 n_one="1"
     66 n_max64="18446744073709551615"
     67 n_over64="18446744073709551616"
     68 n_neg="-1"
     69 n_plus="+1"
     70 n_lead0="000000000000000000001"
     71 n_hex="0x10"
     72 n_ws=" 1"
     73 n_dot="1.5"
     74 
     75 # --- token lists (MHD_str_remove_token_caseless_ etc.) ------------------
     76 comma=","
     77 comma_sp=", "
     78 sp=" "
     79 tab="\x09"
     80 crlf="\x0d\x0a"
     81 semi=";"
     82 equals="="
     83 t_chunked="chunked"
     84 t_identity="identity"
     85 t_gzip="gzip"
     86 t_close="close"
     87 t_keepalive="keep-alive"
     88 t_upgrade="Upgrade"
     89 t_100="100-continue"
     90 t_md5="MD5"
     91 t_sha256="SHA-256"
     92 t_sha512_256="SHA-512-256"
     93 t_auth="auth"
     94 t_auth_int="auth-int"
     95 t_empty_item=",,"