view modules/safe-alloc @ 40211:5f58d2ac35ea

unistr/u8-cmp: Fix undefined behaviour. Reported by Jeffrey Walton <noloader@gmail.com>. * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
author Bruno Haible <bruno@clisp.org>
date Fri, 08 Mar 2019 20:38:22 +0100
parents 8714c1a37024
children
line wrap: on
line source

Description:
A set of macros to make calls to alloc/calloc/realloc safer.

Files:
lib/safe-alloc.h
lib/safe-alloc.c
m4/safe-alloc.m4

Depends-on:
xalloc-oversized

configure.ac:
gl_SAFE_ALLOC

Makefile.am:
lib_SOURCES += safe-alloc.c

Include:
"safe-alloc.h"

License:
LGPLv2+

Maintainer:
David Lutterkort