[parted-devel] fix for segfault in 1.7.1

Andrew Gaffney agaffney at gentoo.org
Fri Jun 9 21:14:18 UTC 2006


Over in Gentoo-land, we were seeing a segfault when reading partition 
information. The maintainer of the parted ebuild (John N. Laliberte) came up 
with a patch[1] to fix it.

Apparently, a pointer was being used without being assigned. People who compiled 
parted with --enable-debug wouldn't encounter this, since it *was* assigned 
inside the PED_ASSERT statement. This patch assigns a value to the pointer 
outside of the PED_ASSERT.

[1] http://dev.gentoo.org/~allanonjl/ebuilds/parted-1.7.1-fix-seg.patch

-- 
Andrew Gaffney                            http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer                                   Installer Project



More information about the parted-devel mailing list