[OE-core] [PATCH V1] parted: fix several integer overflows

2013-02-25 Thread Ming Liu
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.

Re: [OE-core] [PATCH V1] parted: fix several integer overflows

2013-02-25 Thread Otavio Salvador
On Mon, Feb 25, 2013 at 10:19 PM, Ming Liu ming@windriver.com wrote: 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

Re: [OE-core] [PATCH V1] parted: fix several integer overflows

2013-02-25 Thread Ming Liu
On 02/26/2013 10:27 AM, Otavio Salvador wrote: On Mon, Feb 25, 2013 at 10:19 PM, Ming Liu ming@windriver.com wrote: 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