[parted-devel] [PATCH 0/2] ppc64 and DVH fixes.

Brian C. Lane bcl at redhat.com
Thu Apr 10 00:25:54 UTC 2014


The "libparted: allow some common errors to be ignored" commit exposed a
pre-existing problem with DVH labels and an integer overflow that was reported
last year. It only showed up for me on ppc64 tests.

The gpt-header-move.py code was also failing on ppc64 because it didn't use
little-endian when packing and unpacking the values. I realized that the perl
gpt-header-munge had a similar problem (a couple missing LE conversions) so I
fixed those as well.

These patches make parted pass all the Fedora tests on x86_64, ppc64, i686 and
armv7hl

Brian C. Lane (1):
  testing: Use little-endian packing in gpt tests

Ming Liu (1):
  libparted: fix several integer overflows with dvh labels

 libparted/labels/dvh.h                           | 10 +++++-----
 tests/gpt-header-move.py                         | 16 ++++++++--------
 tests/gpt-header-munge                           |  6 +++---
 tests/t-lib-helpers.sh                           | 12 ++++++++++++
 tests/t0210-gpt-resized-partition-entry-array.sh |  6 ++----
 tests/t0211-gpt-rewrite-header.sh                |  6 ++----
 6 files changed, 32 insertions(+), 24 deletions(-)

-- 
1.9.0




More information about the parted-devel mailing list