Home
last modified time | relevance | path

Searched refs:uncompr (Results 1 – 25 of 86) sorted by relevance

1234

/external/zstd/zlibWrapper/examples/
Dexample_original.c56 Byte *uncompr, uLong uncomprLen));
58 Byte *uncompr, uLong uncomprLen));
60 Byte *uncompr, uLong uncomprLen));
63 Byte *uncompr, uLong uncomprLen));
66 Byte *uncompr, uLong uncomprLen));
98 Byte *uncompr, uLong uncomprLen));
100 Byte *uncompr, uLong uncomprLen));
105 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
106 Byte *compr, *uncompr; in test_compress()
115 strcpy((char*)uncompr, "garbage");
[all …]
Dexample.c61 Byte *uncompr, uLong uncomprLen));
63 Byte *uncompr, uLong uncomprLen));
65 Byte *uncompr, uLong uncomprLen));
68 Byte *uncompr, uLong uncomprLen));
71 Byte *uncompr, uLong uncomprLen));
106 Byte *uncompr, uLong uncomprLen));
108 Byte *uncompr, uLong uncomprLen));
113 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
114 Byte *compr, *uncompr; in test_compress()
123 strcpy((char*)uncompr, "garbage");
[all …]
/external/python/cpython2/Modules/zlib/
Dexample.c39 Byte *uncompr, uLong uncomprLen));
41 Byte *uncompr, uLong uncomprLen));
43 Byte *uncompr, uLong uncomprLen));
46 Byte *uncompr, uLong uncomprLen));
49 Byte *uncompr, uLong uncomprLen));
81 Byte *uncompr, uLong uncomprLen));
83 Byte *uncompr, uLong uncomprLen));
88 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
89 Byte *compr, *uncompr; in test_compress()
98 strcpy((char*)uncompr, "garbage");
[all …]
/external/rust/crates/libz-sys/src/zlib/test/
Dexample.c39 Byte *uncompr, uLong uncomprLen));
41 Byte *uncompr, uLong uncomprLen));
43 Byte *uncompr, uLong uncomprLen));
46 Byte *uncompr, uLong uncomprLen));
49 Byte *uncompr, uLong uncomprLen));
81 Byte *uncompr, uLong uncomprLen));
83 Byte *uncompr, uLong uncomprLen));
88 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
89 Byte *compr, *uncompr; in test_compress()
98 strcpy((char*)uncompr, "garbage");
[all …]
/external/rust/crates/libz-sys/src/zlib/contrib/pascal/
Dexample.pas57 uncompr: Pointer; uncomprLen: LongInt);
66 StrCopy(PChar(uncompr), 'garbage');
68 err := uncompress(uncompr, uncomprLen, compr, comprLen);
71 if StrComp(PChar(uncompr), hello) <> 0 then
74 WriteLn('uncompress(): ', PChar(uncompr));
83 uncompr: Pointer;
127 StrCopy(PChar(uncompr), 'garbage');
129 if gzread(zfile, uncompr, uncomprLen) <> len then
134 if StrComp(PChar(uncompr), hello) <> 0 then
136 WriteLn('bad gzread: ', PChar(uncompr));
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/test/
Dexample.c32 void test_compress (unsigned char *compr, z_size_t comprLen,unsigned char *uncompr, z_size_t u…
33 void test_gzio (const char *fname, unsigned char *uncompr, z_size_t uncomprLen);
35 void test_inflate (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t unco…
36 void test_large_deflate (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t unco…
37 void test_large_inflate (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t unco…
39 void test_sync (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t unco…
41 void test_dict_inflate (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t unco…
69 void test_compress(unsigned char *compr, z_size_t comprLen, unsigned char *uncompr, z_size_t uncomp… in test_compress() argument
76 strcpy((char*)uncompr, "garbage"); in test_compress()
78 err = PREFIX(uncompress)(uncompr, &uncomprLen, compr, comprLen); in test_compress()
[all …]
Dtest_gzio.cc26 uint8_t compr[128], uncompr[128]; in TEST()
27 uint32_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
56 strcpy((char*)uncompr, "garbages"); in TEST()
57 EXPECT_EQ(PREFIX(gzread)(file, uncompr, (unsigned)uncompr_len), (int)(hello_len + hello_len)); in TEST()
58 EXPECT_STREQ((char*)uncompr, hello); in TEST()
70 strcpy((char*)uncompr, "garbages"); in TEST()
71 PREFIX(gzgets)(file, (char*)uncompr, (int)uncompr_len); in TEST()
72 EXPECT_EQ(strlen((char*)uncompr), 7); /* " hello!" */ in TEST()
73 EXPECT_STREQ((char*)uncompr, hello + 6); in TEST()
83 strcpy((char*)uncompr, "garbages"); in TEST()
[all …]
Dtest_large_buffers.cc26 uint8_t *compr, *uncompr; in TEST() local
37 uncompr = (uint8_t *)calloc(1, UNCOMPR_BUFFER_SIZE); in TEST()
38 ASSERT_TRUE(uncompr != NULL); in TEST()
45 uncompr[i] = (uint8_t)(rand() % 256); in TEST()
52 c_stream.next_in = uncompr; in TEST()
67 d_stream.next_out = uncompr; in TEST()
73 d_stream.next_out = uncompr; /* discard the output */ in TEST()
86 free(uncompr); in TEST()
Dtest_compress.cc20 uint8_t compr[128], uncompr[128]; in TEST() local
21 z_size_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
27 strcpy((char*)uncompr, "garbage"); in TEST()
29 err = PREFIX(uncompress)(uncompr, &uncompr_len, compr, compr_len); in TEST()
32 EXPECT_STREQ((char *)uncompr, (char *)hello); in TEST()
Dtest_deflate_params.cc29 uint8_t *compr, *uncompr; in TEST() local
54 uncompr = (uint8_t *)calloc(1, UNCOMPR_BUFFER_SIZE); in TEST()
55 ASSERT_TRUE(uncompr != NULL); in TEST()
62 uncompr[i] = (uint8_t)(rand() % 256); in TEST()
69 c_stream.next_in = uncompr; in TEST()
110 c_stream.next_in = uncompr; in TEST()
128 d_stream.next_out = uncompr; /* discard the output */ in TEST()
142 free(uncompr); in TEST()
Dtest_small_buffers.cc21 uint8_t compr[128], uncompr[128]; in TEST() local
22 z_size_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
50 strcpy((char*)uncompr, "garbage"); in TEST()
53 d_stream.next_out = uncompr; in TEST()
68 EXPECT_STREQ((char*)uncompr, hello); in TEST()
Dtest_dict.cc26 uint8_t compr[128], uncompr[128]; in TEST() local
27 z_size_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
56 strcpy((char*)uncompr, "garbage garbage garbage"); in TEST()
64 d_stream.next_out = uncompr; in TEST()
95 EXPECT_TRUE(strncmp((char*)uncompr, hello, sizeof(hello)) == 0); in TEST()
Dtest_deflate_prime.cc21 uint8_t compr[128], uncompr[128]; in TEST() local
22 z_size_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
75 d_stream.next_out = uncompr; in TEST()
90 EXPECT_STREQ((char *)uncompr, hello); in TEST()
Dminigzip.c274 int uncompr = 0; in main() local
291 uncompr = 1; in main()
293 copyout = uncompr = 1; in main()
299 uncompr = 1; in main()
325 if (uncompr) { in main()
339 if (uncompr) { in main()
Dtest_inflate_sync.cc21 uint8_t compr[128], uncompr[128]; in TEST() local
22 z_size_t compr_len = sizeof(compr), uncompr_len = sizeof(uncompr); in TEST()
59 d_stream.next_out = uncompr; in TEST()
/external/oss-fuzz/projects/zlib/
Dcompress_fuzzer.c14 uint8_t *uncompr, size_t uncomprLen, in check_compress_level() argument
17 uncompress(uncompr, &uncomprLen, compr, comprLen); in check_compress_level()
21 assert(0 == memcmp(data, uncompr, dataLen)); in check_compress_level()
56 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
67 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
69 check_compress_level(compr, comprLen, uncompr, uncomprLen, 1); in LLVMFuzzerTestOneInput()
70 check_compress_level(compr, comprLen, uncompr, uncomprLen, 3); in LLVMFuzzerTestOneInput()
71 check_compress_level(compr, comprLen, uncompr, uncomprLen, 6); in LLVMFuzzerTestOneInput()
72 check_compress_level(compr, comprLen, uncompr, uncomprLen, 7); in LLVMFuzzerTestOneInput()
77 free(uncompr); in LLVMFuzzerTestOneInput()
Dexample_large_fuzzer.c27 unsigned char *uncompr, size_t uncomprLen) { in test_large_deflate() argument
44 c_stream.next_in = uncompr; in test_large_deflate()
63 c_stream.next_in = uncompr; in test_large_deflate()
81 unsigned char *uncompr, size_t uncomprLen) { in test_large_inflate() argument
96 d_stream.next_out = uncompr; /* discard the output */ in test_large_inflate()
116 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
127 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
129 test_large_deflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
130 test_large_inflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
133 free(uncompr); in LLVMFuzzerTestOneInput()
Dexample_small_fuzzer.c61 void test_inflate(unsigned char *compr, size_t comprLen, unsigned char *uncompr, in test_inflate() argument
72 d_stream.next_out = uncompr; in test_inflate()
88 if (memcmp(uncompr, data, dataLen)) { in test_inflate()
97 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
108 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
111 test_inflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
114 free(uncompr); in LLVMFuzzerTestOneInput()
Dexample_flush_fuzzer.c60 void test_sync(unsigned char *compr, size_t comprLen, unsigned char *uncompr, in test_sync() argument
75 d_stream.next_out = uncompr; in test_sync()
98 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
110 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
113 test_sync(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
116 free(uncompr); in LLVMFuzzerTestOneInput()
Dexample_dict_fuzzer.c94 unsigned char *uncompr; in test_dict_inflate() local
106 uncompr = (uint8_t *)calloc(1, dataLen); in test_dict_inflate()
107 d_stream.next_out = uncompr; in test_dict_inflate()
128 if (memcmp(uncompr, data, dataLen)) { in test_dict_inflate()
133 free(uncompr); in test_dict_inflate()
/external/rust/crates/libz-sys/src/zlib-ng/test/fuzz/
Dfuzzer_compress.c15 uint8_t *uncompr, z_size_t uncomprLen, in check_compress_level() argument
18 PREFIX(uncompress)(uncompr, &uncomprLen, compr, comprLen); in check_compress_level()
22 assert(0 == memcmp(data, uncompr, dataLen)); in check_compress_level()
57 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
68 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
70 check_compress_level(compr, comprLen, uncompr, uncomprLen, 1); in LLVMFuzzerTestOneInput()
71 check_compress_level(compr, comprLen, uncompr, uncomprLen, 3); in LLVMFuzzerTestOneInput()
72 check_compress_level(compr, comprLen, uncompr, uncomprLen, 6); in LLVMFuzzerTestOneInput()
73 check_compress_level(compr, comprLen, uncompr, uncomprLen, 7); in LLVMFuzzerTestOneInput()
78 free(uncompr); in LLVMFuzzerTestOneInput()
Dfuzzer_example_large.c28 void test_large_deflate(unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t uncom… in test_large_deflate() argument
45 c_stream.next_in = uncompr; in test_large_deflate()
64 c_stream.next_in = uncompr; in test_large_deflate()
81 void test_large_inflate(unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t uncom… in test_large_inflate() argument
96 d_stream.next_out = uncompr; /* discard the output */ in test_large_inflate()
116 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
127 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
129 test_large_deflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
130 test_large_inflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
133 free(uncompr); in LLVMFuzzerTestOneInput()
Dfuzzer_example_small.c62 void test_inflate(unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t uncomprLen)… in test_inflate() argument
72 d_stream.next_out = uncompr; in test_inflate()
88 if (memcmp(uncompr, data, dataLen)) { in test_inflate()
97 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
108 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
111 test_inflate(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
114 free(uncompr); in LLVMFuzzerTestOneInput()
Dfuzzer_example_flush.c61 void test_sync(unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t uncomprLen) { in test_sync() argument
75 d_stream.next_out = uncompr; in test_sync()
97 uint8_t *compr, *uncompr; in LLVMFuzzerTestOneInput() local
109 uncompr = (uint8_t *)calloc(1, uncomprLen); in LLVMFuzzerTestOneInput()
112 test_sync(compr, comprLen, uncompr, uncomprLen); in LLVMFuzzerTestOneInput()
115 free(uncompr); in LLVMFuzzerTestOneInput()
Dfuzzer_example_dict.c95 unsigned char *uncompr; in test_dict_inflate() local
107 uncompr = (uint8_t *)calloc(1, dataLen); in test_dict_inflate()
108 d_stream.next_out = uncompr; in test_dict_inflate()
129 if (memcmp(uncompr, data, dataLen)) { in test_dict_inflate()
134 free(uncompr); in test_dict_inflate()

1234