Package: gdisk
Version: 1.0.1-1
Severity: important

Dear Maintainer,

Here is the exact output.   The result is 100% reproducible, as you
would expect:

    [alison@bonnet u-boot (master)]$ truncate -s 16K small.raw
    [alison@bonnet u-boot (master)]$ sudo gdisk small.raw
    GPT fdisk (gdisk) version 1.0.1

    Partition table scan:
    MBR: not present
    BSD: not present
    APM: not present
    GPT: not present

    Creating new GPT entries.

    Command (? for help): o
    This option deletes all partitions and creates a new protective MBR.
    Proceed? (Y/N): Y

    Command (? for help): p
    Disk small.raw: 32 sectors, 16.0 KiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): DC622FAD-F9B3-4E0A-9433-87B4C8D3EFC2
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 18446744073709551614
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 18446744073709551581 sectors (16.0 EiB)

    Number  Start (sector)    End (sector)  Size       Code  Name

    Command (? for help): ^C
    [alison@bonnet u-boot (master)]$ ls -l small.raw
    -rw-r--r-- 1 alison alison 16384 Aug 27 15:14 small.raw

Probably 16KB is too small for a block device, but I would expect
gdisk to fail with an error rather than print nonsense.   This problem
makes me nervous about error-checking in gdisk.

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

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= 
(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.24-14
ii  libgcc1       1:7.2.0-1
ii  libncursesw5  6.0+20170715-2
ii  libpopt0      1.16-10+b2
ii  libstdc++6    7.2.0-1
ii  libtinfo5     6.0+20170715-2
ii  libuuid1      2.29.2-2

Versions of packages gdisk recommends:
ii  groff-base  1.22.3-9

gdisk suggests no packages.

-- no debconf information

Reply via email to