Commit 549d24e9 by Ian Lance Taylor Committed by Ian Lance Taylor

ztest.c (test_large): Pass unsigned long *, not size_t *, to zlib uncompress function.

	* ztest.c (test_large): Pass unsigned long *, not size_t *, to
	zlib uncompress function.

From-SVN: r253491
parent d155a264
2017-10-06 Ian Lance Taylor <iant@golang.org>
* ztest.c (test_large): Pass unsigned long *, not size_t *, to
zlib uncompress function.
2017-10-05 Ian Lance Taylor <iant@golang.org>
* elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
......
......@@ -369,6 +369,8 @@ test_large (struct backtrace_state *state)
for (i = 0; i < trials; ++i)
{
unsigned long uncompress_sizearg;
cid = ZLIB_CLOCK_GETTIME_ARG;
if (clock_gettime (cid, &ts1) < 0)
{
......@@ -406,7 +408,8 @@ test_large (struct backtrace_state *state)
return;
}
r = uncompress (uncompressed_buf, &uncompressed_bufsize,
uncompress_sizearg = uncompressed_bufsize;
r = uncompress (uncompressed_buf, &uncompress_sizearg,
compressed_buf + 12, compressed_bufsize - 12);
if (clock_gettime (cid, &ts2) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment