Mercurial > gnulib
view modules/malloc @ 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 | 440d21ed4f64 |
children |
line wrap: on
line source
Description: malloc() function that is glibc compatible. Comment: This module should not be used as a dependency from a test module, otherwise when this module occurs as a tests-related module, it will have side effects on the compilation of the main modules in lib/. Status: deprecated Notice: This module is deprecated. Use the module 'malloc-gnu' instead. Files: Depends-on: malloc-gnu configure.ac: Makefile.am: Include: <stdlib.h> License: LGPLv2+ Maintainer: Jim Meyering