util-linux/include
Karel Zak 40b175084f lib/strutils: fix string_add_to_idarray() int vs. size_t
The function uses "int" as argument, but for array size (and index) is better
to use unsigned type (size_t). If we mix "size_t" in util (e.g. fdisk)
and "int" in lib/strutils.c then result is unexpected behavior on
ppc64.

	# sfdisk --list -o DEVICE,START,SIZE /dev/sdb
	Disk /dev/sdb: 50 MiB, 52428800 bytes, 102400 sectors
	Units: sectors of 1 * 512 = 512 bytes
	Sector size (logical/physical): 512 bytes / 4096 bytes
	I/O size (minimum/optimal): 4096 bytes / 32768 bytes
	Disklabel type: gpt
	Disk identifier: 3B8559DB-33AF-43E9-BEFC-C331D829B539
	lt-sfdisk: libfdisk/src/label.c:178: fdisk_label_get_field: Assertion `id > 0' failed.

The patch cleanup all code to use size_t everywhere.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-04-22 11:08:05 +02:00
..
Makemodule.am build-sys: fix typo 2015-03-06 14:32:12 +01:00
all-io.h include/c.h: prefer nanosleep() over usleep() 2014-01-24 13:04:14 +01:00
at.h lib: [at.c] add readlink_at(), fix semantic for absolute paths 2011-05-18 15:57:16 +02:00
bitops.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
blkdev.h Fix typo "ioclt" in various files. 2014-07-11 22:52:09 +03:00
c.h include/c: define UL_ASAN_BLACKLIST address_sanitizer function attribute 2014-12-19 11:32:38 +01:00
canonicalize.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
carefulputc.h include/carefulputc: encode also ' and $ in fputs_quoted() output 2014-11-27 13:36:09 +01:00
closestream.h include/closestream: don't wipe errno on EPIPE 2014-03-13 12:41:03 +01:00
colors.h lib/colors: add USAGE_COLORS_DEFAULT 2015-02-25 12:35:05 +01:00
cpuset.h include: cleanup copyright headers 2013-01-08 15:10:17 +01:00
crc32.h lib: add crc64() 2013-09-11 16:40:06 +02:00
crc64.h lib: add crc64() 2013-09-11 16:40:06 +02:00
debug.h include/debug: improve and cleanup 2014-11-03 12:51:17 +01:00
env.h include/env: unify indentation 2012-10-19 15:07:44 +02:00
exec_shell.h unshare,nsenter: spawn shell by default 2013-02-14 14:42:35 +01:00
exitcodes.h include/exitcodes: clean up names, add _EX_ suffix 2012-03-20 11:22:08 +01:00
fileutils.h libmount: add new libmnt_monitor API 2014-12-05 15:30:04 +01:00
ismounted.h lib: import whole ismounted.c code from e2fsprogs 2009-10-14 01:13:18 +02:00
linux_reboot.h Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
linux_version.h lib: add linux_version.{c,h} 2007-11-06 02:40:13 +01:00
list.h include: fix compiler warnings 2014-10-01 12:33:35 +02:00
loopdev.h lib/loopdev: replace custom DBG() with include/debug.h 2014-11-04 14:08:45 +01:00
mangle.h lib/mangle: cleanup, add unhexmangle 2012-04-26 09:17:44 +02:00
match.h lib,match: split match_fstype() from libmount 2011-11-15 15:17:19 +01:00
mbsalign.h lib/mbalign: report also size in bytes 2014-04-15 15:25:18 +02:00
md5.h build-sys: check HAVE_ definitions with #ifdef [smatch scan] 2011-12-02 18:21:46 +01:00
minix.h libblkid: arch independent minix detection 2013-04-15 15:14:33 +02:00
monotonic.h lib/timer: use separate file for timers 2015-03-06 13:17:20 +01:00
namespace.h include: fix SYS_{unshare,nsenter} usage 2013-04-17 16:58:00 +02:00
nls.h lib/strutils: circumvent missing localeconv() 2012-06-05 14:54:12 +02:00
optutils.h include/optutils: fix typo 2014-08-28 08:39:54 +02:00
pager.h lib: add pager functionality 2012-04-23 11:52:39 +02:00
pamfail.h login-utils: Enable building util-linux against OpenPAM 2014-12-15 10:16:03 +01:00
path.h lib/path: add path_strdup() 2014-01-06 16:48:13 +01:00
pathnames.h agetty: support /usr/lib/os-release too 2015-03-05 12:25:28 +01:00
procutils.h lib/procutils: add simple API to scan /proc/PID/* 2013-03-12 17:24:14 +01:00
pt-bsd.h fdisk: (bsd) write/read PT code cleanup 2013-09-16 16:47:06 +02:00
pt-mbr-partnames.h libfdisk: recognize FAT32 partitions hidden by Acronis software 2015-04-08 10:24:26 +02:00
pt-mbr.h libfdisk: support bootbits protection from (p)MBR 2015-04-13 13:40:25 +02:00
pt-sgi.h fdisk: (sgi) fix unsigned integer overflow [AddressSanitizer] 2014-12-19 09:10:48 +00:00
pt-sun.h libblkid: rename in sun_disklabel for compatibility with fdisk 2013-03-11 13:00:55 +01:00
randutils.h mcookie: use lib/randutils 2014-03-26 10:36:18 +01:00
readutmp.h lslogins: add readtump.h header 2014-05-15 13:55:59 +02:00
rpmatch.h rpmatch: use symbolic value when evaluation return codes 2015-02-24 12:42:06 +01:00
setproctitle.h lib: cleanup setproctitle.c 2011-10-26 23:17:15 +02:00
statfs_magic.h include/statfs_magic: use macro rather than type for f_type 2014-11-10 11:29:42 +01:00
strutils.h lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
swapheader.h mkswap: remove unnecessary size check 2014-11-07 13:21:05 +01:00
swapprober.h swapon: split swapon-common.c 2014-09-22 13:16:25 +02:00
sysfs.h lib/sysfs: add subsystem and hotplug detection 2014-12-02 10:59:48 +01:00
timer.h lib/timer: use separate file for timers 2015-03-06 13:17:20 +01:00
timeutils.h build-sys: move all around clock_gettime() to monotonic.c 2014-11-19 11:54:47 +01:00
ttyutils.h agetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2) 2014-09-17 10:14:50 +02:00
widechar.h build-sys: fix ifdef ENABLE_WIDECHAR usage 2007-01-30 13:49:50 +01:00
xalloc.h silence compiler warning 2015-03-10 14:13:38 +01:00