{"push_id":640559780,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"40b175084ff4c57468fb67600c8c66703e17cd75","before":"622be27845d00275fdf24f77918d935f13d18c2e","commits":[{"sha":"40b175084ff4c57468fb67600c8c66703e17cd75","author":{"email":"b517c2d99ca3f904174ad92ae4446c78e81c3cf1@redhat.com","name":"Karel Zak"},"message":"lib/strutils: fix string_add_to_idarray() int vs. size_t\n\nThe function uses \"int\" as argument, but for array size (and index) is better\nto use unsigned type (size_t). If we mix \"size_t\" in util (e.g. fdisk)\nand \"int\" in lib/strutils.c then result is unexpected behavior on\nppc64.\n\n\t# sfdisk --list -o DEVICE,START,SIZE /dev/sdb\n\tDisk /dev/sdb: 50 MiB, 52428800 bytes, 102400 sectors\n\tUnits: sectors of 1 * 512 = 512 bytes\n\tSector size (logical/physical): 512 bytes / 4096 bytes\n\tI/O size (minimum/optimal): 4096 bytes / 32768 bytes\n\tDisklabel type: gpt\n\tDisk identifier: 3B8559DB-33AF-43E9-BEFC-C331D829B539\n\tlt-sfdisk: libfdisk/src/label.c:178: fdisk_label_get_field: Assertion `id > 0' failed.\n\nThe patch cleanup all code to use size_t everywhere.\n\nSigned-off-by: Karel Zak <kzak@redhat.com>","distinct":true,"url":"https://api.github.com/repos/karelzak/util-linux/commits/40b175084ff4c57468fb67600c8c66703e17cd75"}]}