diff options
| author | gaoshutao <1779227906@qq.com> | 2025-08-25 15:38:00 +0800 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-02-11 11:51:20 -0800 |
| commit | 5c47755331cb7354133b82f357ed767578c95649 (patch) | |
| tree | c180103b055fd1feb3e9904e61a070c3ffd8f83e /gzlib.c | |
| parent | d37e27eef65c6249631e8757601c43e813ded155 (diff) | |
| download | zlib-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 */ |
