Package: gdisk
Version: 0.8.10-2
Severity: normal
Tags: upstream patch

Dear Maintainer,

The header file gpt.h should include a matching pair of compiler
directives regarding packing, but only includes one.  The bug persists
in the latest version from git.  The very simple fix is appended.  (I
hope.)

-- Alison Chaiken
   ali...@she-devel.com

-- System Information:
Debian Release: 8.9
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages gdisk depends on:
ii  libc6         2.19-18+deb8u10
ii  libgcc1       1:4.9.2-10
ii  libncursesw5  5.9+20140913-1+b1
ii  libpopt0      1.16-10
ii  libstdc++6    4.9.2-10
ii  libtinfo5     5.9+20140913-1+b1
ii  libuuid1      2.25.2-6

Versions of packages gdisk recommends:
ii  groff-base  1.22.2-8

gdisk suggests no packages.

-- no debconf information
>From da96fce13c759dc17068e5a8094f5e23aa662527 Mon Sep 17 00:00:00 2001
From: Alison Chaiken <ali...@peloton-tech.com>
Date: Sat, 2 Sep 2017 12:28:55 -0700
Subject: [PATCH] turn packing back off in GPT header file

The file gpt.h includes a pragma to turn on packing, but not a
matching directive to turn it back off.

Suggested-by: Jamal Benbrahim <ja...@peloton-tech.com>
Signed-off-by: Alison Chaiken <ali...@peloton-tech.com>
---
 gpt.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gpt.h b/gpt.h
index e9afd06..7a0714b 100644
--- a/gpt.h
+++ b/gpt.h
@@ -57,6 +57,7 @@ struct GPTHeader {
    uint32_t partitionEntriesCRC;
    unsigned char reserved2[GPT_RESERVED];
 }; // struct GPTHeader
+#pragma pack()
 
 // Data in GPT format
 class GPTData {
-- 
2.1.4

Reply via email to