Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv31540/src/classes
Modified Files:
MessageView.cpp
Log Message:
fixed fatal bug in ShowPart() -- don't try to read beyond the allocated buffer
Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.95
retrieving revision 1.96
diff -b -u -2 -r1.95 -r1.96
--- MessageView.cpp 8 Sep 2002 19:23:09 -0000 1.95
+++ MessageView.cpp 12 Sep 2002 00:00:25 -0000 1.96
@@ -1786,5 +1786,6 @@
if ( CheckMessagePartSize(mimepart) )
{
- const void *data = mimepart->GetContent();
+ unsigned long len;
+ const void *data = mimepart->GetContent(&len);
if ( !data )
@@ -1794,5 +1795,5 @@
else
{
- String s(data, (const char *)data + partSize);
+ String s((const char *)data, len);
m_viewer->InsertRawContents(s);
-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates