{
  "kind": "actual-selected-c-webassembly-example",
  "source_repository": "https://github.com/madler/zlib",
  "source_commit": "99623ef7097352da7993ba614161fd6a311e046e",
  "source_patches": [
    {
      "path": "patches/0001-inflate-copy-pointer-equality.patch",
      "sha256": "3f6cfc505bd777a3632e679a7d71f03cb8bf62371947c5e601c32df5f7d8601c"
    },
    {
      "path": "patches/0002-gzseek-negative-position-overflow.patch",
      "sha256": "7a4483de9066053741acb45ba2c2daabc3bd1c77847adb4a46d94cf8373f7428"
    },
    {
      "path": "patches/0003-gzread-stale-next-and-position-overflow.patch",
      "sha256": "40edc059ccb5ea58991fcefb63ae39ecde48a82af4729adf2da21c2e17667b49"
    },
    {
      "path": "patches/0004-gzwrite-position-overflow.patch",
      "sha256": "0af2a5bf1d07635571303ee2a83a31cd359340f14a4e4c1cbe8eb2830e580406"
    },
    {
      "path": "patches/0005-gzoffset-negative-lseek.patch",
      "sha256": "2baf911b001f54731b09899b64382a4ce03fda0e0eb62b0d84a3db19c3732263"
    },
    {
      "path": "patches/0006-deflatebound-fixed-conservative.patch",
      "sha256": "5baa8f82d91f1372a766d73a74cc69303879a052ca8f4d9806ba4216bb895b40"
    },
    {
      "path": "patches/0007-deflatebound-gzip-extra-length.patch",
      "sha256": "2ffa8d8f3d3a96e58cf370855e036132f2548b6fa0602a55771ff00bd8fda9f0"
    }
  ],
  "compiler": "emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 6.0.12-git",
  "target": "wasm32-unknown-emscripten",
  "platform_scope": "Executable browser example; not a claim about the LP64 proof domain.",
  "compiler_flags": [
    "-O2",
    "-g0",
    "--no-entry",
    "-sMODULARIZE=1",
    "-sEXPORT_ES6=1",
    "-sENVIRONMENT=web,worker,node",
    "-sFILESYSTEM=0",
    "-sALLOW_MEMORY_GROWTH=1",
    "-sINITIAL_MEMORY=16777216",
    "-sMAXIMUM_MEMORY=67108864",
    "-sSTACK_SIZE=131072",
    "-sDYNAMIC_EXECUTION=0",
    "-sEXPORTED_RUNTIME_METHODS=[\"HEAPU8\"]",
    "-sEXPORTED_FUNCTIONS=[\"_malloc\",\"_free\",\"_codec_run\",\"_codec_reset\",\"_codec_record_count\",\"_codec_records\",\"_codec_packed\",\"_codec_packed_length\",\"_codec_restored\",\"_codec_restored_length\",\"_codec_equal\",\"_codec_error\",\"_codec_stream_size\"]"
  ],
  "compiled_sources": [
    {
      "path": "adler32.c",
      "sha256": "9cd1443a24ff2a3053961695bd432035c58347386a420d3388232376ebabe211"
    },
    {
      "path": "compress.c",
      "sha256": "5366b48da2beadd0bde7f476ed3b0adcf31a3b7f8ad6b616b32d5212cdca0980"
    },
    {
      "path": "crc32.c",
      "sha256": "dd941a0a499a27517e3be0624c2e0dc683f0591bf29dd1ed54e65443cb19beb6"
    },
    {
      "path": "deflate.c",
      "sha256": "4f79382b7613b6d9b32400ac38324a4f5afe9f965f2867a3a006758db9f12fea"
    },
    {
      "path": "trees.c",
      "sha256": "8807b9f4075fd7f0322361359bfd5001e2c3430a7f17aede8ae26c642892d5f8"
    },
    {
      "path": "zutil.c",
      "sha256": "c195fe0ff472545b231542ab6a633a97117710cea64f98c5d468775ed89eff55"
    },
    {
      "path": "inflate.c",
      "sha256": "50004434b8a091d718da994b3f13552b42017216abf8aaad0e515bec0fc04e58"
    },
    {
      "path": "inftrees.c",
      "sha256": "7ab9c04acc2e9888c8c1fddefc730a850f69a3d80a7a702433a35383e36efa9c"
    },
    {
      "path": "inffast.c",
      "sha256": "f96787a11bb7131ffd2221fb40db27f6a5a1dfb12f59c0bc388807010749c34a"
    }
  ],
  "wrapper": {
    "path": "static/examples/codec-playground.c",
    "sha256": "f8695b8994bc42c8017e44c0499bbb47db87a87493ee729c44047f84a8dc0ab7"
  },
  "artifacts": {
    "zlib-playground.js": {
      "sha256": "9740bb33a9333fe13d96124265c659b1e6d9b3bb45bcd329ba1d47de6bddb7b4",
      "bytes": 8216
    },
    "zlib-playground.wasm": {
      "sha256": "9530cb5580c277eccfa76923659555133285684a89ed30630d73dc8944baead2",
      "bytes": 60604
    }
  },
  "configuration": {
    "api": "deflateInit + inflateInit",
    "level": "Z_DEFAULT_COMPRESSION",
    "wrapper": "zlib",
    "window_bits": 15,
    "memory_level": 8,
    "strategy": "Z_DEFAULT_STRATEGY",
    "input_limit_bytes": 262144,
    "browser_stream_size_bytes": 56
  },
  "build_recipe": "Compile the wrapper and compiled_sources after applying source_patches in order, with the selected source include directory and compiler_flags; output static/vendor/zlib-playground.js.",
  "source_headers": [
    {
      "path": "crc32.h",
      "sha256": "9a2223575183ac2ee8a247f20bf3ac066e8bd0140369556bdbdffc777435749e"
    },
    {
      "path": "deflate.h",
      "sha256": "21f4ea0973dab272fb26e93305ccf8628c8dc07e6c5df09a9861825b1920ba5d"
    },
    {
      "path": "gzguts.h",
      "sha256": "db92f0a13ed8aeb65ca081dc761989259bfd6b71f296c532402f78e1a8051994"
    },
    {
      "path": "inffast.h",
      "sha256": "05cc5dc9ff1da7b8b52a4bd8bda0d8a5c236a2f39efe84b941516ea13857e6c5"
    },
    {
      "path": "inffixed.h",
      "sha256": "fd7c4b1dbdacb283421d0675744aaecda44e840e183b5131448bac94564f6adb"
    },
    {
      "path": "inflate.h",
      "sha256": "7c58a1d5b5bd553493d58431c4dac031f99fb4b6c9890cc11ceab22d08e6bc2e"
    },
    {
      "path": "inftrees.h",
      "sha256": "97897f41e5d55b426b106c230111e99fec44cd5197a71e6a3750d2e7e17b16bc"
    },
    {
      "path": "trees.h",
      "sha256": "bb0a9d3ca88ee00c81adb7c636e73b97085f6ef1b52d6d58edbe2b6dc3adeb4d"
    },
    {
      "path": "zconf.h",
      "sha256": "1e91041e94e3f13a12b770be849c4c674e37caddf94e37acddf853bb54a09adf"
    },
    {
      "path": "zlib.h",
      "sha256": "2c404dcaa08709c2a129aea18f3dad4fb5acc5cb52ef12b6223bf8e78c195801"
    },
    {
      "path": "zutil.h",
      "sha256": "a12243cc6d338ffad0c8e3500fbc05bc7fdcdc25a469393b1c2f7e5df307fff3"
    }
  ]
}
