aboutsummaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorgaoshutao <1779227906@qq.com>2025-08-25 15:38:00 +0800
committerMark Adler <git@madler.net>2026-02-11 11:51:20 -0800
commit5c47755331cb7354133b82f357ed767578c95649 (patch)
treec180103b055fd1feb3e9904e61a070c3ffd8f83e /gzlib.c
parentd37e27eef65c6249631e8757601c43e813ded155 (diff)
downloadzlib-5c47755331cb7354133b82f357ed767578c95649.tar.gz
zlib-5c47755331cb7354133b82f357ed767578c95649.tar.bz2
zlib-5c47755331cb7354133b82f357ed767578c95649.zip
Check for invalid NULL pointer inputs to zlib operations.
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzlib.c b/gzlib.c
index 65a0b497..934688c5 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -93,7 +93,7 @@ local gzFile gz_open(const void *path, int fd, const char *mode) {
93#endif 93#endif
94 94
95 /* check input */ 95 /* check input */
96 if (path == NULL) 96 if (path == NULL || mode == NULL)
97 return NULL; 97 return NULL;
98 98
99 /* allocate gzFile structure to return */ 99 /* allocate gzFile structure to return */