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(),