]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: Fix uninitialized structure
authorRoddy Shuler <roddy@endlessm.com>
Fri, 3 Nov 2017 04:22:51 +0000 (21:22 -0700)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Dec 2017 14:27:00 +0000 (15:27 +0100)
commit76f7b55d1d3176ee19b37984415ad02415ab95d8
treeea3275163cb1d437a8e4af35840f040db163f9bf
parent2b785cb1449c20eff5a77eacf07ef390815cd237
libfdisk: Fix uninitialized structure

Without this, 'sfdisk -d' with certain filenames would lead to
reading an 's' from the 'type' field in fdisk_reset_labelitem
and cause a crash due to prematurely freeing the 'data.str' field.

Signed-off-by: Roddy Shuler <roddy@endlessm.com>
libfdisk/src/script.c