<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.1">
</HEAD>
<BODY>
Hi Jim,<BR>
<BR>
I found a bug.<BR>
<BR>
In lib<B><FONT COLOR="#a020f0">parted</FONT></B>/arch/linux.c:333<BR>
<BR>
<BR>
next = dm_get_next_target(dmt, NULL, &start, &length,<BR>
&target_type, &params);<BR>
<BR>
arch_specific->dmtype = strdup(target_type);<BR>
<BR>
Once we have DM name with empty target, 'target_type' will be NULL and the program will crash at strdup.<BR>
<BR>
FYI: DM device with empty target could be created with command 'dmsetup create'. Once the command prompt for target input, type ctrl-D<BR>
<BR>
<PRE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-
Mike Hwang
</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>