Go to file
Brent Cook 9688ab26b9 Avoid left shift overflow in reallocarray
Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting
1UL 32-bits to the left causes an overflow. This replaces the constant
1UL with (size_t)1 so that we get the correct constant size for the
platform.

Import from OpenBSD.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
2015-09-23 07:59:34 +02:00
include Sync queue(3) from FreeBSD 2015-09-23 07:59:34 +02:00
man Sync queue(3) from FreeBSD 2015-09-23 07:59:34 +02:00
src Avoid left shift overflow in reallocarray 2015-09-23 07:59:34 +02:00
test Use reallocarray() instead of malloc() or realloc() 2015-09-23 07:59:34 +02:00
.gitignore build: Set subdir-objects automake option 2013-10-21 05:33:08 +02:00
autogen build: Switch to autotools 2012-05-29 04:35:55 +02:00
configure.ac Update closefrom() function 2015-09-23 07:59:34 +02:00
COPYING Add reallocarray() function from OpenBSD 2014-07-17 05:13:05 +02:00
get-version build: Switch to autotools 2012-05-29 04:35:55 +02:00
Makefile.am build: Handle the ChangeLog as a distributed-only file 2013-05-27 05:39:44 +02:00
README Remove blank lines at EOF 2011-05-29 02:49:37 +02:00
TODO Update libbsd header references in man pages 2011-05-14 14:16:29 +02:00

libbsd - Utility functions from BSD systems

This library provides useful functions commonly found on BSD systems,
and lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.


Releases
--------

  <http://libbsd.freedesktop.org/releases/>


Mailing List
------------

The subscription interface and web archives can be found at:

  <http://lists.freedesktop.org/mailman/listinfo/libbsd>

The mail address is:

  libbsd@lists.freedesktop.org


Source Repository
-----------------

  <http://cgit.freedesktop.org/libbsd>
  <git://anongit.freedesktop.org/git/libbsd>