Commit Graph

1 Commits

Author SHA1 Message Date
Ming Liu 399ca5da8c parted: fix several integer overflows
Integer overflows were found in libparted/labels/dvh.c, while attemptting
to assign unsigned int values to int types in some places. These overflows
only can be observed on BE platforms like MIPS, when the "WORDS_BIGENDIAN"
macro is defined in parted.

Defined by unsigned int instead.

(From OE-Core rev: 9acaa764a4df8d589011ff597bba2afc05d6e78b)

Signed-off-by: Ming Liu <ming.liu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-28 23:15:48 +00:00