-/* $OpenBSD: db_ctf.c,v 1.31 2021/10/27 21:21:35 jasper Exp $ */
+/* $OpenBSD: db_ctf.c,v 1.32 2022/08/11 02:56:35 tb Exp $ */
/*
* Copyright (c) 2016-2017 Martin Pieuchot
goto exit;
}
- if (stream.total_out != len) {
- db_printf("decompression failed: %llu != %llu",
+ if (len < 0 || (uintmax_t)stream.total_out != (uintmax_t)len) {
+ db_printf("decompression failed: %lu != %lld",
stream.total_out, len);
goto exit;
}
-/* $OpenBSD: zlib.h,v 1.15 2022/05/08 14:05:29 tb Exp $ */
+/* $OpenBSD: zlib.h,v 1.16 2022/08/11 02:56:34 tb Exp $ */
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.12, March 11th, 2022
typedef struct z_stream_s {
z_const Bytef *next_in; /* next input byte */
uInt avail_in; /* number of bytes available at next_in */
- z_off_t total_in; /* total number of input bytes read so far */
+ uLong total_in; /* total number of input bytes read so far */
Bytef *next_out; /* next output byte will go here */
uInt avail_out; /* remaining free space at next_out */
- z_off_t total_out; /* total number of bytes output so far */
+ uLong total_out; /* total number of bytes output so far */
z_const char *msg; /* last error message, NULL if no error */
struct internal_state FAR *state; /* not visible by applications */