Re: [PATCH] block/partitions/efi.c: ensure that the GPT header is at least the size of the structure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

On Wed, 20 Feb 2013 09:37:01 -0500 Peter Jones <pjones@xxxxxxxxxx> wrote:
>
> +	/* Check the GUID Partition Table header size is too small */
> +	if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) {
> +		pr_debug("GUID Partition Table Header size is too small: %u < %lu\n",
> +			le32_to_cpu((*gpt)->header_size),
> +			(unsigned long)sizeof(gpt_header));

Don't do this.  We have %zu to print size_t variables ...

-- 
Cheers,
Stephen Rothwell                    sfr@xxxxxxxxxxxxxxxx

Attachment: pgpauswn4_SZy.pgp
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux