From 549d24e9f70e33aac90ddaebf95a63409b058327 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 6 Oct 2017 13:37:20 +0000 Subject: 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 --- libbacktrace/ztest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbacktrace/ztest.c') diff --git a/libbacktrace/ztest.c b/libbacktrace/ztest.c index 7226d6a..9ce4b21 100644 --- a/libbacktrace/ztest.c +++ b/libbacktrace/ztest.c @@ -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) -- cgit v1.1