From kde-commits Wed Jul 18 22:50:50 2007 From: Dawit Alemayehu Date: Wed, 18 Jul 2007 22:50:50 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kioslave/http Message-Id: <1184799050.198639.32449.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=118479906703224 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(),