]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: do not use va_list in the Ask API
authorKarel Zak <kzak@redhat.com>
Thu, 9 May 2013 11:06:02 +0000 (13:06 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 9 May 2013 11:06:02 +0000 (13:06 +0200)
commit4fb18cde32a6cb672090762c785d89a6ed02ef57
tree69bea7d192de264264af0ea92a07fe8a0b827029
parenta21aa92fd4ba5b972c0ebd65e6b015131ca7c4e6
libfdisk: do not use va_list in the Ask API

  # fdisk /dev/sda
  Welcome to fdisk (util-linux 2.23).

  [...]

  Command (m for help): a
  Segmentation fault (core dumped)

It's too fragile, the va_list implementation is architecture specific
and it seems we need such thing in libfdisk at all.

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk-ask.c
libfdisk/src/ask.c
libfdisk/src/fdiskP.h
libfdisk/src/libfdisk.h