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: 2024-11-21 22:18:42 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             : /* @(#) $Id$ */
       7             : 
       8             : #include "minified_zutil.h"
       9             : 
      10             : #include <stdlib.h>
      11             : 
      12          20 : voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
      13             : {
      14             :     (void)opaque;
      15          20 :     return sizeof(uInt) > 2 ? (voidpf)malloc((size_t)items * size) :
      16             :                               (voidpf)calloc(items, size);
      17             : }
      18             : 
      19          20 : void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
      20             : {
      21             :     (void)opaque;
      22          20 :     free(ptr);
      23          20 : }

Generated by: LCOV version 1.14