[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kioslave/http
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2007-07-18 22:50:50
Message-ID: 1184799050.198639.32449.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 689709 by adawit:

- Fix crash described by BUG# 130104. 

BUG:130104


 M  +3 -0      http.cc  


--- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #689708:689709
@@ -4269,6 +4269,9 @@
 
         if ( m_cpMimeBuffer )
         {
+          // Do not make any assumption about the state of the QByteArray we received.
+          // Fix the crash described by BR# 130104.
+          d.detach();
           d.resize(0);
           d.resize(m_mimeTypeBuffer.size());
           memcpy( d.data(), m_mimeTypeBuffer.data(),
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic