Coverage Report

Created: 2025-06-13 06:29

/src/gdal/frmts/zlib/contrib/infback9/minified_zutil.c
Line
Count
Source (jump to first uncovered line)
1
/* zutil.c -- target dependent utility functions for the compression library
2
 * Copyright (C) 1995-2017 Jean-loup Gailly
3
 * For conditions of distribution and use, see copyright notice in zlib.h
4
 */
5
6
7
#include "minified_zutil.h"
8
9
#include <stdlib.h>
10
11
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
12
0
{
13
0
    (void)opaque;
14
0
    return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * size) :
15
0
                              (voidpf)calloc(items, size);
16
0
}
17
18
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
19
0
{
20
0
    (void)opaque;
21
0
    free(ptr);
22
0
}