Searched refs:comp_strm (Results 1 – 2 of 2) sorted by relevance
24 z_stream comp_strm; in LLVMFuzzerTestOneInput() local25 comp_strm.zalloc = Z_NULL; in LLVMFuzzerTestOneInput()26 comp_strm.zfree = Z_NULL; in LLVMFuzzerTestOneInput()27 comp_strm.opaque = Z_NULL; in LLVMFuzzerTestOneInput()28 int ret = deflateInit(&comp_strm, Z_DEFAULT_COMPRESSION); in LLVMFuzzerTestOneInput()31 size_t comp_buf_cap = deflateBound(&comp_strm, size); in LLVMFuzzerTestOneInput()34 comp_strm.next_out = comp_buf; in LLVMFuzzerTestOneInput()35 comp_strm.avail_out = comp_buf_cap; in LLVMFuzzerTestOneInput()36 comp_strm.next_in = (unsigned char*)data; in LLVMFuzzerTestOneInput()37 comp_strm.avail_in = size; in LLVMFuzzerTestOneInput()[all …]
95 z_stream comp_strm, decomp_strm; in TEST() local106 comp_strm.zalloc = Z_NULL; in TEST()107 comp_strm.zfree = Z_NULL; in TEST()108 comp_strm.opaque = Z_NULL; in TEST()109 ret = deflateInit(&comp_strm, Z_BEST_COMPRESSION); in TEST()111 comp_strm.next_out = comp_buf; in TEST()112 comp_strm.avail_out = sizeof(comp_buf); in TEST()113 comp_strm.next_in = src.data(); in TEST()114 comp_strm.avail_in = src.size(); in TEST()115 ret = deflate(&comp_strm, Z_FINISH); in TEST()[all …]