[PATCH RESEND] mdev: fix sysfs traversal with CONFIG_SYSFS_DEPRECATED_V2=y

2015-07-15 Thread Gregory Fong
From: Simon Edlund si...@edlund.nl When mdev -s traverses the /sys directory looking for dev files, it starts with the block devices under /sys/block, and will find the dev file through the symlink, and create a block device node. In the next stage it will scan the /sys/class looking for char

Re: [PATCH] fdisk: fix overflow in GPT size math

2015-07-15 Thread Gregory Fong
On Wed, Jul 15, 2015 at 2:31 PM, Jody Bruchon j...@jodybruchon.com wrote: On July 15, 2015 5:27:52 PM EDT, Gregory Fong gregory.0...@gmail.com wrote: Promote the first arg to unsigned long long to avoid this. Why not uint64_t? smart_ulltoa5() takes unsigned long long as input. Either uint64_t

Re: [PATCH 2/2] ash: use alloca to get rid of setjmp

2015-07-15 Thread Rich Felker
On Mon, Jul 13, 2015 at 04:25:02AM +0200, Denys Vlasenko wrote: On Thu, Jul 2, 2015 at 10:01 AM, Ron Yorston r...@frippery.org wrote: Rich Felker wrote: In general alloca is unsafe. It's not obvious to me what the code here is doing, so I can't tell for sure if it's safe or not, but I think

[PATCH] fdisk: fix overflow in GPT size math

2015-07-15 Thread Gregory Fong
Commit deebdf59b fdisk: fix GPT size math errors adjusted the calculation of the size to multiply the number of sectors by the sector size, but did not account for overflow: total_number_of_sectors is uint32_t, sector_size is sector_t which is uint32_t, so simply multiplying these resulted in a

Re: [PATCH] fdisk: fix overflow in GPT size math

2015-07-15 Thread Jody Bruchon
On July 15, 2015 5:27:52 PM EDT, Gregory Fong gregory.0...@gmail.com wrote: Promote the first arg to unsigned long long to avoid this. Why not uint64_t? ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox