[PATCH] fdisk: fix overflow in GPT size math

Gregory Fong gregory.0xf0 at gmail.com
Thu Jul 16 00:07:35 UTC 2015


On Wed, Jul 15, 2015 at 2:31 PM, Jody Bruchon <jody at jodybruchon.com> wrote:
> On July 15, 2015 5:27:52 PM EDT, Gregory Fong <gregory.0xf0 at 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
will be the same size, or it will be smaller.  Either way it's going
to end up being used as unsigned long long anyway.


More information about the busybox mailing list