bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible SIGSEGV in parted with unsupported libreiserfs version


From: Jakub Bogusz
Subject: Possible SIGSEGV in parted with unsupported libreiserfs version
Date: Sat, 27 May 2006 23:46:06 +0200
User-agent: Mutt/1.5.9i

Hello,

I found that parted (tested on 1.6.25.1, 1.7.1 code looks the same) can
crash if libreiserfs.so is present, but is not in desired version (e.g.
0.3.1-rc). In such case libreiser.so is dlclose()d, but libreiserfs_handle
is left non-null, so reiserfs_ops_done() tries to dlclose() it again.
Patch attached.

BTW: in parted 1.7.0 and 1.7.1 <parted/device.h> file is unusable
without including <parted/contraint.h>, because of
ped_device_get_constraint() prototype (which uses PedConstraint type
from constraint.h) in device.h.
As constraint.h includes device.h anyway, I suggest to move this
prototype to constraint.h, like in the second attached patch.


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/

Attachment: parted-segv.patch
Description: Text document

Attachment: parted-headers.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]