util-linux/disk-utils
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 cfdisk: provide extra partinfo with "x" 2015-03-27 14:04:44 +01:00
addpart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
addpart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
blockdev.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
blockdev.c Since 569d1dac7b we read device start 2015-03-17 11:10:20 +01:00
cfdisk.8 cfdisk: provide extra partinfo with "x" 2015-03-27 14:04:44 +01:00
cfdisk.c cfdisk: cleanup extra partitions info for slang 2015-03-31 13:10:17 +02:00
cramfs.h cramfs.h: coding style 2011-07-21 23:50:04 +02:00
cramfs_common.c mkfs.cramfs: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:57:30 +02:00
delpart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
delpart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
fdformat.8 docs: restore minus symbols in long opts 2015-01-20 18:15:30 -05:00
fdformat.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
fdisk-list.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
fdisk-list.h fdisk: add --output <list> for print command(s) 2014-10-07 14:55:32 +02:00
fdisk-menu.c fdisk: check return and robust label usage [coverity scan] 2015-01-28 14:40:10 +01:00
fdisk.8 fdisk: add --protect-boot 2015-04-13 17:24:45 +02:00
fdisk.c fdisk: fix typo 2015-04-13 18:11:38 +02:00
fdisk.h fdisk: move --list functionality to separated file 2014-10-07 14:55:30 +02:00
fsck.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
fsck.c fsck: fix fsck -C {fd} parsing 2015-03-25 09:26:23 +01:00
fsck.cramfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
fsck.cramfs.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
fsck.minix.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
fsck.minix.c rpmatch: use symbolic value when evaluation return codes 2015-02-24 12:42:06 +01:00
isosize.8 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
isosize.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
minix_programs.h minix: change types in header file 2012-12-19 11:38:51 +01:00
mkfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
mkfs.bfs.8 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
mkfs.bfs.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
mkfs.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
mkfs.cramfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
mkfs.cramfs.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
mkfs.minix.8 mkfs.minix: Some typographical changes in the manual 2014-04-07 12:31:48 +02:00
mkfs.minix.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
mkswap.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
mkswap.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
partx.8 docs: make the wording of the partx man page a bit more precise 2015-01-12 11:04:35 +01:00
partx.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
partx.h resizepart: add new command 2012-08-13 22:10:14 +02:00
raw.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
raw.c raw: fix raw query 2015-01-13 09:53:46 +01:00
resizepart.8 partx: don't use "hard drive" in man pages 2015-01-12 11:15:55 +01:00
resizepart.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
sfdisk.8 sfdisk: improve -N warnings 2015-04-13 12:08:50 +02:00
sfdisk.c sfdisk: don't use BLKRRPART to check loopdev usage 2015-04-17 10:32:48 +02:00
swaplabel.8 docs: update info about env debug variables 2014-11-03 13:13:54 +01:00
swaplabel.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00