fastboot: sparse: fix section size exceed
authorVikram Pandita <vikram.pandita@ti.com>
Mon, 28 Feb 2011 23:15:37 +0000 (15:15 -0800)
committerVikram Pandita <vikram.pandita@ti.com>
Mon, 28 Feb 2011 23:35:35 +0000 (15:35 -0800)
commit5824bf5fb9037e96d98d53dad1ab18c9696e9038
tree00227a005c27b908cdd52200d696fd832d1e815b
parentc98271da07cd3ba7bbc62086edc4928c8330686f
fastboot: sparse: fix section size exceed

GPT partition size is fixed.
While un-sparsing, the uncompressed image can exceed the partition size.

Make the sparse write safe against partition size exceeds.

Fix:
early size check failure as reported by:
Brian Swetland <swetland@google.com>

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
common/cmd_fastboot.c
cpu/omap4/sparse.c
include/sparse.h