<!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>
&#65279;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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next = dm_get_next_target(dmt, NULL, &amp;start, &amp;length,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;target_type, &amp;params);<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arch_specific-&gt;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>