LCOV - code coverage report
Current view: top level - frmts/zlib/contrib/infback9 - minified_zutil.c (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 5 5 100.0 %
Date: 2025-01-18 12:42:00 Functions: 2 2 100.0 %

          Line data    Source code
       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          20 : voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
      12             : {
      13             :     (void)opaque;
      14          20 :     return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * size) :
      15             :                               (voidpf)calloc(items, size);
      16             : }
      17             : 
      18          20 : void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
      19             : {
      20             :     (void)opaque;
      21          20 :     free(ptr);
      22          20 : }

Generated by: LCOV version 1.14