Bug#367235: libvmime0: Crash in libvmime.so.0 when parsing a simple

2006-05-14 Thread Florin Iucha
On Sun, May 14, 2006 at 09:59:47PM +0300, Mattias Nordstrom wrote: > Florin Iucha wrote: > > Your code runs fine. Mine crashes, and the difference is... dumping the > > second header! > > [SNIP] > > > You can replace hdr->From() with hdr->To(), with no change in the observable > > behavior. > >

Bug#367235: libvmime0: Crash in libvmime.so.0 when parsing a simple

2006-05-14 Thread Mattias Nordstrom
Florin Iucha wrote: > Your code runs fine. Mine crashes, and the difference is... dumping the > second header! [SNIP] > You can replace hdr->From() with hdr->To(), with no change in the observable > behavior. The problem is probably the fact that From() does not return the same thing as a Subjec

Bug#367235: libvmime0: Crash in libvmime.so.0 when parsing a simple

2006-05-14 Thread Florin Iucha
On Sun, May 14, 2006 at 08:52:37PM +0300, Mattias Nordstrom wrote: > Have you been able to backtrace the segfault? Yes I have been able, but it is not interesting ;( [EMAIL PROTECTED]:~/work/vmime$ ./a.out hello.eml Clam Analyze Subject: Hello from VMime! Segmentation fault (gdb) set args hello

Bug#367235: libvmime0: Crash in libvmime.so.0 when parsing a simple

2006-05-14 Thread Mattias Nordstrom
Hi, Have you been able to backtrace the segfault? Running this code: #include #include #include int main() { // Read data from f i l e std::ifstream file; file.open("hello.eml", std::ios::in | std::ios::binary); vmime::utility::inputStreamAdapter is(file); vmime::string data; vmime::utility